aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | Merge pull request #1847 from pypa/bugfix/1787-python-requires-invalidJason R. Coombs2019-10-061-0/+34
|\ \ \ \ | | | | | | | | | | Crash when invalid python_requires indicated in setup.cfg
| * | | | Add more tests for valid behavior. Expand exception, any should do.Jason R. Coombs2019-09-111-1/+23
| | | | |
| * | | | Add test capturing failure. Ref #1787.Jason R. Coombs2019-09-111-0/+12
| | |_|/ | |/| |
* | | | Allow 'long_description_content_type' warnings for new versions of ↵Jason R. Coombs2019-10-061-0/+1
| | | | | | | | | | | | | | | | packaging. Fixes #1858.
* | | | Merge branch 'master' into feature/deterministic-provides-extrasJason R. Coombs2019-09-118-31/+257
|\| | |
| * | | tests: fix `test_pip_upgrade_from_source` on Python 3.4Benoit Pierre2019-07-231-1/+6
| | | | | | | | | | | | | | | | Do not test pip's master on 3.4, as support for it has been dropped.
| * | | improve `package_data` checkDaniel Himmelstein2019-07-161-1/+52
| | | | | | | | | | | | | | | | | | | | | | | | Ensure the dictionary values are lists/tuples of strings. Fix #1459.
| * | | Added test for metadata-version 1.2Bastian Venthur2019-05-161-0/+1
| |/ /
| * | tests: fix_test_build_deps_on_distutilsBenoit Pierre2019-05-141-2/+3
| | | | | | | | | | | | | | | * ignore distutils' warning (`Unknown distribution option: 'python_requires'`) * fix test on Windows
| * | build_meta: fix 2 issues with `build_wheel` / `build_sdist`Benoit Pierre2019-04-221-17/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix the following cases: * `build_sdist` is called with another sdist already present in the destination directory * `build_wheel` is called with the destination directory not already created
| * | Merge pull request #1745 from shashanksingh28/masterPaul Ganssle2019-04-221-1/+6
| |\ \ | | | | | | | | Fix error with PEP 517 builds when wheel exists (GH #1761)
| | * | Fix error when wheels already exist in dist/Shashank Singh2019-04-221-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `build_meta.build_wheel` assumes that the only wheel in its output directory is the one it builds, but prior to this, it also used the `dist/` folder as its working output directory. This commit uses a temporary directory instead, preventing an error that was triggered when previously-generated wheel files were still sitting in `dist/`. Fixes GH #1671
| * | | Limit workers in ProcessPoolExecutorPaul Ganssle2019-04-221-1/+1
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As a mitigation for #1730, this commit limits the number of workers in the ProcessPoolExecutor to 1 (default is the number of CPUs). On PyPy, having a higher number of available workers dramatically increases the number of concurrent processes, leading to some resource exhaustion issues. This does not address the root issue, but should improve the situation until the root issue is addressed.
| * | 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
| |/ /