aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/tests/test_build_meta.py
Commit message (Collapse)AuthorAgeFilesLines
* 👹 Feed the hobgoblins (delint).Jason R. Coombs2020-01-191-0/+1
|
* Merge branch 'sys_argv' of https://github.com/aimileus/setuptools into ↵Jason R. Coombs2020-01-141-0/+28
|\ | | | | | | maint/44.x
| * Add testsEmiel Wiedijk2019-05-151-0/+28
| |
* | Add test ensuring pyproject.toml is included during PEP 517 build.Tzu-ping Chung2019-12-291-0/+21
|/
* 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
* 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.
* 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
|
* Add test capturing failure. Ref #1623.Jason R. Coombs2019-01-021-0/+19
|
* Feed the hobgoblins (delint).Jason R. Coombs2019-01-021-4/+6
|
* Fix the testsPaul Moore2018-11-141-2/+2
|
* Merge pull request #1572 from pganssle/import_futures_test_reqsPaul Ganssle2018-11-041-2/+3
|\ | | | | Add futures and backport to Python 2.7 test requirements
| * Add futures backport to test reqsPaul Ganssle2018-11-021-2/+3
| | | | | | | | | | | | | | | | `setuptools.tests.test_build_meta` relies on the Python 3 feature `concurrent.futures` to run, and as a result has been silently skipped in Python 2.7. This adds the `futures` backport to the 2.7 test requirements and turns the `pytest.importorskip` invocations in test_build_meta into standard import statements.
* | Test that manifest can exclude setup.pyPaul Ganssle2018-11-031-0/+21
| |
* | Add tests for setup.py inclusionShashank Singh2018-11-021-0/+12
|/ | | | | | This tests that `setup.py` is included by default in the distribution with the egg_info command and when an sdist is built with build_meta.build_sdist
* Mark Py 2/3-only tests as skip instead of xfailNikolaus Waxweiler2018-10-271-1/+2
| | | | | Also reuse pre-defined py2_only and py3_only decorators where appropriate.
* Add tests exposing the issues with sdist_directory not being --dist-dirBernat Gabor2018-09-161-1/+35
|
* build_meta.get_requires_for_build_sdist does not include wheelBernat Gabor2018-09-131-0/+6
| | | | | | the wheel package is not required to build a source distribution Resolves #1474.
* Reindent to avoid hanging indent.Jason R. Coombs2018-08-211-44/+46
|
* Adapt test to only run on Python 2, as it's redundant on Python 3.Jason R. Coombs2018-08-211-2/+3
|
* Use unicode literals throughout.Jason R. Coombs2018-08-211-1/+3
|
* Add a test for a Unicode metadata directoryPaul Moore2018-08-211-0/+9
|
* Use Python 3 syntax for new-style clasessJason R. Coombs2018-06-031-1/+3
|
* FIX: remove thexoviat2017-10-161-1/+1
|
* TST: add more for build_metaxoviat2017-10-161-16/+49
|
* Renamed 'pep517' to 'build_meta'Jason R. Coombs2017-10-121-0/+93