summaryrefslogtreecommitdiff
path: root/setuptools/tests/test_sdist.py
Commit message (Collapse)AuthorAgeFilesLines
* Account for windows paths in testsAnderson Bravalheri2023-01-201-1/+5
|
* Capture expectations of issue 3781Anderson Bravalheri2023-01-201-4/+15
|
* Capture expectations about 'project.license.file' in pyproject.tomlAnderson Bravalheri2023-01-191-3/+7
| | | | … to be automatically added to the sdist
* Refactor tests for file directiveAnderson Bravalheri2023-01-191-35/+22
|
* Expand test to account for pyproject's readmeAnderson Bravalheri2023-01-191-14/+15
|
* Capture expectation about file directive in pyproject.toml to be in the sdistAnderson Bravalheri2023-01-191-1/+27
|
* Capture expectation about file: directive in setup.cfg to be in the sdistAnderson Bravalheri2023-01-191-0/+24
|
* Skip an additional test under xdist. Ref pypa/distutils#183. Expanded ↵Jason R. Coombs2022-11-131-4/+8
| | | | workaround for pytest-dev/pytest-xdist#843.
* Skip test under xdist as it fails after migrating to Python logging. Ref ↵Jason R. Coombs2022-11-131-0/+4
| | | | pypa/distutils#183. Workaround for pytest/pytest-xdist#843.
* ⚫ Fade to black.Jason R. Coombs2022-11-131-6/+10
|
* sdist: Add files from build subcommands (get_source_files)Anderson Bravalheri2022-06-251-0/+41
|
* Update test_sdist not to rely on pkg_resources.Jason R. Coombs2022-02-061-4/+6
|
* Use warning instead of log for distutils commandAnderson Bravalheri2021-11-051-16/+4
| | | | | As discussed in #2855, using an actual warning instead of the logger allow users to control what gets displayed via warning filters.
* Make sure user gets warned when using distutilsAnderson Bravalheri2021-11-041-1/+15
|
* Add regression test for #2849Anderson Bravalheri2021-11-041-10/+47
|
* Trim docstring and remove comment.Jason R. Coombs2021-11-021-6/+4
|
* Fix 1461: Better loop breaker for `manifest_maker`Anderson Bravalheri2021-11-011-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The inconsistency for the `package_data` configuration in sdists when `include_package_data=True` in #1461 have been causing some problems for the community for a while, as also shown in #2835. As pointed out by [@jaraco](https://github.com/pypa/setuptools/issues/1461#issuecomment-749092366), this was being caused by a mechanism to break the recursion between the `egg_info` and `sdist` commands. In summary the loop is caused by the following behaviour: - the `egg_info` command uses a subclass of `sdist` (`manifest_maker`) to calculate the MANIFEST, - the `sdist` class needs to know the MANIFEST to calculate the data files when `include_package_data=True` Previously, the mechanism to break this loop was to simply ignore the data files in `sdist` when `include_package_data=True`. The approach implemented in this change was to replace this mechanism, by allowing `manifest_maker` to override the `_safe_data_files` method from `sdist`. --- Please notice [an extensive experiment] (https://github.com/abravalheri/experiment-setuptools-package-data) was carried out to investigate the previous confusing behaviour. There is also [a simplified theoretical analysis] (https://github.com/pyscaffold/pyscaffold/pull/535#issuecomment-956296407) comparing the observed behavior in the experiment and the expected one. This analysis point out to the same offender indicated by [@jaraco](https://github.com/pypa/setuptools/issues/1461#issuecomment-749092366) (which is being replaced in this change).
* Remove Python 2 compatibilityJason R. Coombs2020-08-161-52/+25
|
* Fix for Python 4: replace unsafe six.PY3 with PY2Hugo2020-01-081-16/+16
|
* Fix latin1 and utf8 tests on Python 2Jason R. Coombs2020-01-011-2/+11
|
* Restore Python 2.7 compatibilityJason R. Coombs2020-01-011-5/+1
|
* Remove unused importJason R. Coombs2019-12-311-1/+0
|
* Remove instance attribute; rely on tmpdir fixture; re-use touch helper.Jason R. Coombs2019-12-311-8/+7
|
* Rewrite TestSdistTest setup/teardown_method as pytest fixture.Jason R. Coombs2019-12-311-18/+17
|
* Restore Python 2.7 compatibilityfeature/include-pyproject.tomlJason R. Coombs2019-12-311-0/+2
|
* Add test for exclusion expectation. Ref #1650.Jason R. Coombs2019-12-311-0/+16
|
* include pyproject.toml in sdist (#1632)Alexander Duryagin2019-01-111-0/+14
|
* Add tests for setup.py inclusionShashank Singh2018-11-021-3/+43
| | | | | | 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/+1
| | | | | Also reuse pre-defined py2_only and py3_only decorators where appropriate.
* Move filename fixtures to a 'text' module so they can use unicode literals.Jason R. Coombs2017-10-111-15/+8
|
* Expect failure on macOS 10.13 and other operating systems where writing ↵Jason R. Coombs2017-10-111-0/+18
| | | | latin-1 encoded filenames is prohibited. Fixes #1169.
* Feed the hobgoblins (delint).Jason R. Coombs2017-10-111-3/+5
|
* Collapse encoding detectionJason R. Coombs2017-10-111-4/+3
|
* Use natural byte literals in test_sdistJason R. Coombs2017-10-111-17/+11
|
* Remove meaningless commendJason R. Coombs2017-10-111-1/+0
|
* Revert "Merge pull request #933 from pypa/feature/581-depend-not-bundle"Jason R. Coombs2017-02-241-2/+2
| | | | | This reverts commit 089cdeb489a0fa94d11b7307b54210ef9aa40511, reversing changes made to aaec654d804cb78dbb6391afff721a63f26a71cd.
* Strip out vendored packages and require them instead. Ref #581.Jason R. Coombs2017-01-011-2/+2
|
* Change _add_defaults_data_files override and add unittestThiebaud Weksteen2016-11-211-2/+7
|
* Fix quantity of blank lines.stepshal2016-10-181-5/+0
|
* Fix quantity of blank lines after code object.stepshal2016-07-131-1/+0
|
* Always use Python 3 version of mapJason R. Coombs2016-01-161-0/+1
|
* Modeling after Astropy's technique for bundling libraries, the imports are ↵Jason R. Coombs2015-12-311-6/+1
| | | | | | | now much cleaner. Thanks @embray. Ref #229. --HG-- branch : feature/issue-229
* Update vendoring technique to match that used for packaging. Ref #229.Jason R. Coombs2015-12-311-1/+7
| | | | | --HG-- branch : feature/issue-229
* Merge with master. Ref #229.Jason R. Coombs2015-12-311-128/+114
|\ | | | | | | | | --HG-- branch : feature/issue-229
| * Use io.open for future compatibility and consistencyJason R. Coombs2015-12-091-9/+9
| |
| * Expect fail when LC_ALL=CJason R. Coombs2015-12-011-0/+1
| |
| * Expect failure running Python 3 only tests on Python 2Jason R. Coombs2015-12-011-104/+106
| |
| * Try setting LC_CTYPE alsoJason R. Coombs2015-12-011-6/+2
| |
| * WTFJason R. Coombs2015-12-011-0/+1
| |
| * Try inlining the xfail marker.Jason R. Coombs2015-12-011-2/+2
| |