summaryrefslogtreecommitdiff
path: root/setuptools/tests
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Add test for pre-existing wheels in build_metaFloris Lambrechts2019-04-201-0/+38
| | | | | | | | | | | | | | | | | | | | | Currently, this will fail because setuptools.build_meta.build_wheel assumes that no wheels already exist in the `dist/` directory. See GH #1671
| * | Updated test to check for changed git rev checkout2xB2019-04-121-1/+1
| | | | | | | | | Checking for new implementation solving issue #1740
| * | Correct cyrillic to match preferred pronunciation.Jason R. Coombs2019-04-051-2/+2
| | |
| * | Add compatibility for Python 2Jason R. Coombs2019-04-051-3/+3
| | |
| * | Add test for setopt to demonstrate that edit_config retains non-ASCII ↵Jason R. Coombs2019-04-051-0/+36
| | | | | | | | | | | | characters.
| * | When reading config files, require them to be encoded with UTF-8. Fixes #1702.Jason R. Coombs2019-04-051-22/+9
| | |
| * | Feed the hobgoblins (delint).Jason R. Coombs2019-04-051-4/+7
| | |
| * | Extend requirement parsing tests to sdistsPaul Ganssle2019-03-161-3/+12
| | |
| * | Add requirement parsing in setuptools.build_metaPaul Ganssle2019-03-161-13/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes GH #1682 by porting the pkg_resources requirement parsing logic into setuptools.build_meta, so that all valid requirement specifiers passed to setup_requires will be added to the get_requires_for_build_* function outputs. Fixes GH #1682
| * | Add failing test for setup_requiresPaul Ganssle2019-03-161-0/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | Per GH #1682, with setuptools.build_meta we are not properly handling the situation where setup_requires is actually a newline-delimited string rather than a list, which is supported by setup.py interface. This adds several failing (and some passing) tests for how setup_requires is handled by setuptools.build_meta.
| * | Automatically skip tests that require networkPaul Ganssle2019-02-231-10/+41
| | |
| * | tests: improve `test_pip_upgrade_from_source`Benoit Pierre2019-02-221-1/+15
| | | | | | | | | | | | | | | Parametrize the test to check different versions of pip (including master) are correctly supported.
* | | In tests, force deterministic ordering on extras_require so tests pass.Jason R. Coombs2019-02-171-5/+7
| | |
* | | Add test capturing expectation that provides_extras are ordered.Jason R. Coombs2019-02-171-0/+13
|/ /
* | Add support for setup.cfg-only projectsPaul Ganssle2019-02-071-2/+21
| | | | | | | | | | | | Many projects can get away with an empty `setup.py` and use *only* the declarative `setup.cfg`. With the new PEP 517 backend, we can supply a default empty `setup.py` if one is not provided.
* | Rename build_meta:legacy to build_meta:__legacy__Paul Ganssle2019-02-051-1/+1
| |
* | Move build_meta_legacy to build_meta:legacyPaul Ganssle2019-02-031-3/+14
| | | | | | | | | | | | Rather than exposing a top-level module for the legacy backend, we will move the legacy backend into the `setuptools.build_meta` module and specify it using the module:object syntax.
* | Add build_meta_legacy backendPaul Ganssle2019-02-031-1/+0
| | | | | | | | | | | | | | This is part of the solution to GH #1642, it is a backwards-compatibility backend that can be used as a default PEP 517 backend for projects that use setuptools but haven't opted in to build_meta.
* | Add failing test suite for build_meta_legacyPaul Ganssle2019-02-031-0/+13
| | | | | | | | | | | | This runs all build_meta tests, plus a test that it is possible to import from the directory containing `setup.py` when using the build_meta_legacy backend.
* | Add test for relative path imports in build_metaPaul Ganssle2019-02-031-0/+20
| | | | | | | | | | | | Failing test adapted from PR #1643 Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
* | Wrap build_meta tests in a reusable test classPaul Ganssle2019-02-031-134/+134
| |
* | Merge branch '40.7-maintenance'Jason R. Coombs2019-01-282-0/+72
|\ \
| * | test: add a simple regression test for `build_ext`Benoit Pierre2019-01-282-0/+72
| | |
* | | tests: minor cleanupBenoit Pierre2019-01-281-9/+1
| | |
* | | Merge branch 'master' into license-fix-357Jason R. Coombs2019-01-2725-157/+862
|\ \ \ | |/ /
| * | Merge pull request #1180 from ↵Jason R. Coombs2019-01-272-2/+119
| |\ \ | | | | | | | | | | | | | | | | benoit-pierre/fix_889_and_non-ascii_in_setup.cfg_take_2 improve encoding handling for `setup.cfg`
| | * \ Merge branch 'master' into fix_889_and_non-ascii_in_setup.cfg_take_2Jason R. Coombs2019-01-2526-187/+2415
| | |\ \ | | | |/
| | * | improve encoding handling for `setup.cfg`Benoit Pierre2017-10-252-2/+109
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Support the same mechanism as for Python sources for declaring the encoding to be used when reading `setup.cfg` (see PEP 263), and return the results of reading it as Unicode. Fix #1062 and #1136.
| | * | add test to ensure `setup.cfg` interpolation behavior remain unchangedBenoit Pierre2017-10-251-0/+10
| | | |
| * | | Feed the hobgoblins (delint).Jason R. Coombs2019-01-2622-140/+183
| | |/ | |/|
| * | Add test capturing failure. Ref #1623.Jason R. Coombs2019-01-021-0/+19
| | |
| * | Feed the hobgoblins (delint).Jason R. Coombs2019-01-021-4/+6
| | |
| * | Merge pull request #1559 from RajdeepRao/BUG-1551Paul Ganssle2018-12-312-2/+53
| |\ \ | | | | | | | | Disallow files for license inputs
| | * | Add explicit test for license in setup.cfgPaul Ganssle2018-12-291-0/+20
| | | |
| | * | Change how license field ValueError is testedPaul Ganssle2018-12-291-6/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Both the old and new approaches are deeply unsatisfying to me, but without reworking how these test commands are run, I think this is about as close as we can get to enforcing that this specific call raises ValueError.
| | * | Disallow files for license inputsrajdeep2018-12-291-1/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The ability to handle files was originally added and documented based on a misunderstanding of what the `license` field should include. The field should be the name of the license, not the full text. It is likely that anyone actually using this was outputing malformed PKG-INFO files, because most license files contain newlines. See GH issue #1551
| * | | Remove unused importJason R. Coombs2018-12-291-1/+0
| |/ /
| * | Assert that warning is raised with svn downloadsPaul Ganssle2018-12-281-2/+4
| | | | | | | | | | | | | | | This both prevents the warning from surfacing during the tests and ensures that no regressions occur.
| * | Add test for download_svn, improving coverage on patchJason R. Coombs2018-12-151-0/+16
| | |
| * | Merge pull request #1544 from kanikas3/added-unittest-download-gitJason R. Coombs2018-12-141-0/+39
| |\ \ | | | | | | | | added unittest for _download_git
| | * | Call index.download, covering more code. Split test into two.Jason R. Coombs2018-12-141-25/+28
| | | |
| | * | added unittest for _download_gitKanika Sabharwal2018-10-271-0/+36
| | | |
| * | | Fix the testsPaul Moore2018-11-141-2/+2
| | | |
| * | | add a test to catch unvendored dependenciesBenoit Pierre2018-11-131-0/+12
| | | |
| * | | import internal version of sixOleg Sharov2018-11-132-3/+2
| | | |
| * | | Fix issue with missing author metadataPaul Ganssle2018-11-121-0/+16
| | | | | | | | | | | | | | | | | | | | Prior to this patch, if the author or author_email were omitted from `setup`, a malformed `PKG-INFO` would be created.
| * | | Remove bdist_rpm and bdist_dumb commentPaul Ganssle2018-11-121-20/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This comment is not used anywhere and `platform.dist()` is deprecated. See CPython PR #10414: https://github.com/python/cpython/pull/10414 and bpo-35186: https://bugs.python.org/issue35186
| * | | Fix show_response behavior on Python 2Paul Ganssle2018-11-071-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The `upload.show_response` feature was not added until Python 3. Rather than backport it, it is now enabled only if supported. This also adds a "smoke test" for the feature.
| * | | Fix bdist_rpm and bdist_dumb in upload_filePaul Ganssle2018-11-071-0/+21
| | | | | | | | | | | | | | | | | | | | This fixes uploads when bdist_rpm or bdist_dumb are the command, both of which insert a comment about what platform they are built for.
| * | | Fix gpg signature code in upload_filePaul Ganssle2018-11-071-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes an issue where `distutils.spawn.spawn` was not available in the ported upload_file, which is only used when signing the data. This also adds a test that the gpg signature command is invoked and included in the uploaded data.