| Commit message (Collapse) | Author | Age | Files | Lines |
|\ |
|
| |
| |
| |
| |
| | |
As discussed in #2855, using an actual warning instead of the logger
allow users to control what gets displayed via warning filters.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
According to #2849, some projects, including important data-science
packages rely on `distutils` when creating custom commands, instead of
extending the ones provided by setuptools.
This change should accomodate this use case, while also warning the
users to migrate.
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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).
|
|\ \
| |/ |
|
| |
| |
| |
| |
| | |
* needed for 'License-File' metadata, as this is written
before MANIFEST is read
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
This reverts commit ef457b2e4eb215ab9d730afbd61a10ed3b118d3c, reversing
changes made to d2b1f7ebd6ebd57b4a50bc6660e93b31129bacb4.
|
| |\
| | |
| | | |
Enable McCabe complexity check in flake8
|
| | | |
|
| | | |
|
| |/ |
|
|/ |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|\ |
|
| |
| |
| |
| | |
Fixes GH issue #1506
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
`DeprecationWarning` is not visible by default in the latest versions of
CPython, so this switches the deprecation warnings in setuptools and
pkg_resources over to custom classes derived from `Warning` instead.
Fixes issue github issue #159
Co-authored-by: Junhan Huang <robin.j.huang@gmail.com>
Co-authored-by: Marton Pono <marci93@gmail.com>
|
|/
|
|
|
|
|
|
|
| |
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>
|
|\
| |
| | |
Touch 'egg-info' directory
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
'tox' determines whether a package should be rebuilt by comparing the
timestamp of the package's 'egg-info' directory and its 'setup.py' or
'setup.cfg' files [1][2]. Unfortunately this checks the 'egg-info'
directory itself, which is not updated, unlike the contents of that
directory. This means that 'tox' will always rebuild the package once
one of the two setup files has been updated.
While this is clearly a bug in 'tox' that should be fixed separately,
there is merit in using this as a heuristic so enable it.
[1] https://github.com/tox-dev/tox/blob/3.1.0/src/tox/venv.py#L253-L257
[2] https://github.com/tox-dev/tox/blob/3.1.0/src/tox/venv.py#L221-L244
Signed-off-by: Stephen Finucane <stephen@that.guru>
|
|/
|
|
| |
Ensure version is tagged only once.
|
| |
|
|
|
|
| |
dist-info command. Ref #1386.
|
|
|
|
| |
pyparsing). Ref #1296.
|
|\
| |
| | |
Add setup.cfg support for long_description_content_type
|
| | |
|
| | |
|
|/ |
|
|\ |
|
| |
| |
| |
| |
| |
| |
| | |
This is used to populate the new `Description-Content-Type` field.
`Description-Content-Type` is described at
https://github.com/pypa/python-packaging-user-guide/pull/258
|
| |\ |
|
| | |
| | |
| | |
| | | |
syntax revealed in #1015.
|
| | |
| | |
| | |
| | | |
This reverts commit 1955e5b0df67cc1aa389b8c655199958a6fcc6a0.
|
| | | |
|
| |/
| |
| |
| |
| | |
This reverts commit 089cdeb489a0fa94d11b7307b54210ef9aa40511, reversing
changes made to aaec654d804cb78dbb6391afff721a63f26a71cd.
|
| | |
|
| | |
|
| |\ |
|
| | |
| | |
| | |
| | | |
distutils attempts to detect and set these values based on settings in setup.cfg as found in sdists built by earlier versions of setuptools. Ref #619.
|
| | |
| | |
| | |
| | | |
egg_info. Ref #619.
|
| |/ |
|
| | |
|
| |
| |
| |
| | |
This reverts commit 23aba916e1070d3cf9723af85a6ce07c89053931.
|
|/
|
|
| |
leaner, cleaner codebase. Fixes #878.
|