summaryrefslogtreecommitdiff
path: root/setuptools/command/sdist.py
Commit message (Collapse)AuthorAgeFilesLines
* sdist: Add files from build subcommands (get_source_files)Anderson Bravalheri2022-06-251-0/+14
|
* Migrate remainder of 'iter_entry_points' to importlib_metadata.Jason R. Coombs2022-02-061-2/+2
|
* Fix 1461: Better loop breaker for `manifest_maker`Anderson Bravalheri2021-11-011-5/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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).
* sdist: Accept -u/--owner and -g/--group optionsJohn Marshall2021-09-221-0/+4
| | | | | | | | | Controlling the file ownership recorded in tar archives is useful for those striving towards reproducible builds. These options are already understood by distutils.command.sdist.sdist, so just need to be accepted by setuptools.command.sdist.sdist to be propagated. Fixes #1893.
* Add License-File field to package metadataMarc Mueller2021-05-231-46/+0
|
* Small changesMarc Mueller2021-04-031-0/+3
|
* Change deprecation warningMarc Mueller2021-04-031-4/+3
|
* license_files - Add support for glob patterns + add default patternsMarc Mueller2021-04-031-21/+32
|
* Remove Python 2 compatibilityJason R. Coombs2020-08-161-38/+8
|
* Fix for Python 4: replace unsafe six.PY3 with PY2Hugo2020-01-081-1/+1
|
* Merge branch 'master' into feature/include-pyproject.tomlJason R. Coombs2019-12-291-9/+53
|\
| * Extract methods to separate _safe_data_files behavior and _add_data_files.Jason R. Coombs2019-12-211-8/+21
| |
| * Filter out missing files and use extend()Mick Koch2019-10-281-2/+2
| |
| * Use an OrderedSet for accumulating license filesMick Koch2019-10-281-2/+2
| |
| * Add support for `license_files` option in metadataMick Koch2019-10-281-8/+18
| |
| * Address review commentsDeniz Taneli2018-11-101-6/+6
| |
| * `check_license` no longer needs to parse `setup.cfg`Deniz Taneli2018-10-281-17/+13
| |
| * Setuptools will install licenses if included in setup.cfgDeniz Taneli2018-10-271-0/+25
| | | | | | | | | | | | | | | | | | Addressing #357 `python setup.py sdist` now includes the license file if `license_file` is included in `setup.cfg` unless it is explicitly excluded in `MANIFEST.in`. Co-Authored-By: Poyzan Nur Taneli <31743851+ptaneli@users.noreply.github.com>
* | do not change py36compat, put changes into sdist commandAlexander Duryagin2019-01-111-0/+8
|/
* Remove spurious executable permissionsMiro Hrončok2018-07-271-0/+0
|
* Merge branch 'master' into drop-py26Jason R. Coombs2017-09-031-1/+2
|\
| * Fix Python 2.6 supportBenoit Pierre2017-09-031-1/+1
| |
| * Improve README file list handling and add Markdown to the current listSamuel Gaist2017-09-011-1/+2
| | | | | | | | | | | | Markdown is a widely used format to write README files and documentation. This patch aims to simplify adding new formats and at the same time adds that one to the list.
| * Revert "Merge pull request #933 from pypa/feature/581-depend-not-bundle"Jason R. Coombs2017-02-241-1/+1
| | | | | | | | | | This reverts commit 089cdeb489a0fa94d11b7307b54210ef9aa40511, reversing changes made to aaec654d804cb78dbb6391afff721a63f26a71cd.
| * Strip out vendored packages and require them instead. Ref #581.Jason R. Coombs2017-01-011-1/+1
| |
* | Drop support for Python 2.6, removing lots of compatibility code for a ↵Jason R. Coombs2016-12-091-7/+0
|/ | | | leaner, cleaner codebase. Fixes #878.
* Use super to resolve the superclass, but fall back to direct access on ↵Jason R. Coombs2016-12-011-1/+4
| | | | Python 2 where old style classes are used. Ref #843.
* Change _add_defaults_data_files override and add unittestThiebaud Weksteen2016-11-211-3/+4
|
* Backed out changeset e12256c4d32e. Fixes #833. Reopens #274 and reopens #521.Jason R. Coombs2016-10-291-0/+5
|
* Remove _add_defaults_data_files overrideThiebaud Weksteen2016-10-261-5/+0
|
* Fix quantity of blank lines.stepshal2016-10-181-0/+2
|
* Update sdist to use sdist_add_defaults forward compatibility.Jason R. Coombs2016-10-141-43/+8
|
* Move READMES definition into class attribute.Jason R. Coombs2016-10-141-5/+5
|
* Always use iterator-based filterJason R. Coombs2016-10-141-0/+1
|
* Rely on degenerate behavior in list.extend, as found in distutils.Jason R. Coombs2016-10-141-3/+2
|
* Default to gztar for sdists on all platforms. Ref #748.Jason R. Coombs2016-08-201-0/+11
|
* Use 'except Exception:' instead of 'except:'.stepshal2016-07-221-1/+1
|
* Disable os.link during make_distribution. Fixes #516.Jason R. Coombs2016-07-211-0/+27
| | | | Note that better would be if sdist provided some sort of hooks to better control the file copying, but since it does not, this technique will suffice for now.
* Fix quantity of blank lines after code object.stepshal2016-07-131-0/+1
|
* Don't use deprecated 'U' flag to read manifestVictor Stinner2016-06-291-1/+1
| | | | | | | | The universal newlines mode ('U' flag) is deprecated since Python 3.4. It only replaces "\r\n" with "\n", but it doesn't split lines at "\r" (Mac newline). In practice, the flag was useless, the sdist.read_manifest() method already uses line.strip() and so removes newline characters.
* 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/+6
| | | | | --HG-- branch : feature/issue-229
* Merge with master. Ref #229.Jason R. Coombs2015-12-311-5/+4
|\ | | | | | | | | --HG-- branch : feature/issue-229
| * Use io.open for future compatibility and consistencyJason R. Coombs2015-12-091-4/+2
| |
| * Use except/as, now supported by Python 2.6Jason R. Coombs2015-01-041-1/+2
| |
* | Merge with 10.2.1Jason R. Coombs2015-01-021-58/+2
|\ \ | |/ | | | | | | --HG-- branch : feature/issue-229
| * Remove superfluous parenthesesJason R. Coombs2014-12-311-1/+1
| |
| * Restore _default_revctrl implementation (stubbed). Fixes #320.Jason R. Coombs2014-12-311-0/+1
| |
| * Removed svn support from setuptools. Ref #313.Jason R. Coombs2014-12-241-57/+0
| |
* | Merge with 6.0.2Jason R. Coombs2014-09-291-3/+5
|\ \ | |/ | | | | | | --HG-- branch : feature/issue-229