summaryrefslogtreecommitdiff
path: root/setuptools/command/build_py.py
Commit message (Collapse)AuthorAgeFilesLines
* Apply suggestions from code reviewAnderson Bravalheri2023-03-191-2/+2
| | | Co-authored-by: Ed Morley <501702+edmorley@users.noreply.github.com>
* Use new warnings in setuptools/command/build_py.pyAnderson Bravalheri2023-03-071-27/+45
|
* Import SetuptoolsDeprecationWarning from setuptools.warningsAnderson Bravalheri2023-03-061-1/+1
|
* Filter out temporary source files from being added to sdistAnderson Bravalheri2022-08-121-13/+20
|
* Avoid mentioning project names in CHANGELOGAnderson Bravalheri2022-08-111-1/+0
| | | | ... since they may change implementantion
* Filter external egg_info filesAnderson Bravalheri2022-08-111-3/+17
|
* Revert addition of use_links to build_libAnderson Bravalheri2022-06-241-4/+2
|
* Fix linting errorsAnderson Bravalheri2022-06-201-5/+2
|
* Make it possible for build_py to export the output mappingAnderson Bravalheri2022-06-191-8/+41
|
* build_py: Allow get_outputs() to work without re-running egg-infoAnderson Bravalheri2022-06-181-3/+14
|
* Add LinkTree strategy for build executableAnderson Bravalheri2022-06-151-0/+11
|
* Change warning about namespace packages and data filesAnderson Bravalheri2022-06-091-3/+4
| | | | This follows a suggestion given by users to improve clarity.
* Improve warning message for package data abuseAnderson Bravalheri2022-06-051-5/+6
|
* Update setuptools/command/build_py.pyAnderson Bravalheri2022-05-181-1/+1
| | | Co-authored-by: Michał Górny <mgorny@gentoo.org>
* Improve warning message for _IncludePackageDataAbuseAnderson Bravalheri2022-05-181-1/+4
|
* Warn about deprecation of behaviour that considers modules/packages as data ↵Anderson Bravalheri2022-05-161-2/+52
|\ | | | | | | when include_package_data=True (#3308)
| * Simplify checks for abuse of include_package_dataAnderson Bravalheri2022-05-061-19/+17
| | | | | | | | | | | | | | Previously, the checks would result in a warning per module additionally to the parent package. Now only one warning per parent package is issued.
| * Warn about packages/modules included as package dataAnderson Bravalheri2022-05-051-2/+54
| |
* | Allow recursive globs for package_datanullableVoidPtr2022-05-071-1/+2
|/
* Remove data_files avoidance code.Jason R. Coombs2021-11-021-3/+0
|
* Fix 1461: Better loop breaker for `manifest_maker`Anderson Bravalheri2021-11-011-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 lib2to3 usageThomas Grainger2021-09-041-32/+12
|
* Use unique_everseen from more_itertools.Jason R. Coombs2021-05-221-20/+2
|
* ignore any exception when loading 2to3Thomas Grainger2020-10-041-1/+1
|
* Remove Python 2 compatibilityJason R. Coombs2020-08-161-7/+1
|
* When copying package data, make sure it's writable, but otherwise preserve ↵Jason R. Coombs2020-03-251-2/+7
| | | | the mode. Fixes #2041.
* 👹 Feed the hobgoblins (delint).Jason R. Coombs2020-03-211-1/+2
|
* Don't keep file modes for package data.Dmitry Kuznetsov2018-12-121-1/+1
|
* 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
|
* Spelling fixesVille Skyttä2016-12-071-1/+1
|
* Fix quantity of blank lines.stepshal2016-10-191-1/+1
|
* Fix quantity of blank lines after code object.stepshal2016-07-131-0/+1
|
* Fixing #190 following proposal by @jaracoBenjamin Bach2016-06-021-0/+4
|
* Re-use unique_everseen from itertools recipes.Jason R. Coombs2016-05-221-7/+24
|
* Extract duplicate code into a single method.Jason R. Coombs2016-05-221-20/+28
|
* Rewrite find_data_files and exclude_data_files to follow the same pattern ↵Jason R. Coombs2016-05-221-17/+24
| | | | for building platform_patterns.
* Allow files to be iterable in exclude_data_filesJason R. Coombs2016-05-221-2/+3
|
* Rewrite globs as chain of iterables.Jason R. Coombs2016-05-221-3/+3
|
* Filter non-files in find_data_files. Fixes #261.Jason R. Coombs2016-05-221-2/+2
|
* Refactor build_py.find_data_files to use iterables, constructing the files ↵Jason R. Coombs2016-05-221-3/+11
| | | | list directly. Ref #261.
* Use itertools.chain for more lenient support of any iterable types and also ↵Jason R. Coombs2016-05-221-2/+4
| | | | more uniform indentation.
* Always use Python 3 version of mapJason R. Coombs2016-01-161-0/+1
|
* Prefer relpath to string slicing for computing a path relative to a base. ↵Jason R. Coombs2016-01-161-4/+2
| | | | Fixes #341.
* ReindentJason R. Coombs2016-01-161-11/+11
|
* Extract function for getting data files for package.Jason R. Coombs2016-01-161-4/+4
|
* Remove superfluous local variableJason R. Coombs2016-01-161-2/+2
|
* Move trailing comment to docstringJason R. Coombs2016-01-161-1/+2
|
* Use io.open for future compatibility and consistencyJason R. Coombs2015-12-091-1/+1
|
* Remove unused importJason R. Coombs2015-12-091-1/+0
|