[bumpversion]
-current_version = 58.3.0
+current_version = 58.4.0
commit = True
tag = True
[*.py]
indent_style = space
+max_line_length = 88
[*.{yml,yaml}]
indent_style = space
- pypy3
- 3.6
- 3.9
- - 3.10.0-alpha - 3.10.99
- platform: [ubuntu-latest, macos-latest, windows-latest]
+ - "3.10"
+ platform:
+ - ubuntu-latest
+ - macos-latest
+ - windows-latest
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
- python-version: 3.9
+ python-version: "3.10"
- name: Install tox
run: |
python -m pip install tox
+v58.4.0
+-------
+
+
+Changes
+^^^^^^^
+* #2497: Officially deprecated PEP 440 non-compliant versions.
+
+Documentation changes
+^^^^^^^^^^^^^^^^^^^^^
+* #2932: Removed the deprecated ``data_files`` option from the example in the
+ declarative configuration docs -- by :user:`abravalheri`
+* #2932: Change type of ``data_files`` option from ``dict`` to ``section`` in
+ declarative configuration docs (to match previous example) -- by
+ :user:`abravalheri`
+
+
v58.3.0
-------
* #917: ``setup.py install`` and ``easy_install`` commands are now officially deprecated. Use other standards-based installers (like pip) and builders (like build). Workloads reliant on this behavior should pin to this major version of Setuptools.
* #1988: Deprecated the ``bdist_rpm`` command. Binary packages should be built as wheels instead.
-- by :user:`hugovk`
-* #2785: Replace confirparser's readfp with read_file, deprecated since Python 3.2.
+* #2785: Replace ``configparser``'s ``readfp`` with ``read_file``, deprecated since Python 3.2.
-- by :user:`hugovk`
* #2823: Officially deprecated support for ``setup_requires``. Users are encouraged instead to migrate to PEP 518 ``build-system.requires`` in ``pyproject.toml``. Users reliant on ``setup_requires`` should consider pinning to this major version to avoid disruption.
# Be strict about any broken references:
nitpicky = True
+# Include Python intersphinx mapping to prevent failures
+# jaraco/skeleton#51
+extensions += ['sphinx.ext.intersphinx']
intersphinx_mapping = {
- 'pypa-build': ('https://pypa-build.readthedocs.io/en/latest/', None)
+ 'python': ('https://docs.python.org/3', None),
}
+intersphinx_mapping.update({
+ 'pypa-build': ('https://pypa-build.readthedocs.io/en/latest/', None)
+})
+
# Add support for linking usernames
github_url = 'https://github.com'
github_sponsors_url = f'{github_url}/sponsors'
extlinks = {
'user': (f'{github_sponsors_url}/%s', '@'), # noqa: WPS323
}
-extensions += ['sphinx.ext.extlinks', 'sphinx.ext.intersphinx']
+extensions += ['sphinx.ext.extlinks']
# Ref: https://github.com/python-attrs/attrs/pull/571/files\
# #diff-85987f48f1258d9ee486e3191495582dR82
PEP 517/518 reach ubiquitous adoption, but for now, Setuptools
cannot declare dependencies other than through
``setuptools/_vendor/vendored.txt`` and
-``pkg_resources/_vendor/vendored.txt`` and refreshed by way of
-``paver update_vendored`` (pavement.py).
+``pkg_resources/_vendor/vendored.txt``.
+
+All the dependencies specified in these files are "vendorized" using Paver_, a
+simple Python-based project scripting and task running tool.
+
+To refresh the dependencies, you can run the following command (defined in
+``pavement.py``)::
+
+ $ paver update_vendored
+
+.. _Paver: https://pythonhosted.org/Paver/
src.subpackage1
src.subpackage2
- [options.data_files]
- /etc/my_package =
- site.d/00_default.conf
- host.d/00_default.conf
- data = data/img/logo.png, data/svg/icon.svg
- fonts = data/fonts/*.ttf, data/fonts/*.otf
-
Metadata and options are set in the config sections of the same name.
* Keys are the same as the keyword arguments one provides to the ``setup()``
exclude_package_data section
namespace_packages list-comma
py_modules list-comma 34.4.0
-data_files dict 40.6.0
+data_files section 40.6.0 [#opt-4]_
======================= =================================== =============== =========
**Notes**:
The ``find_namespace:`` directive is supported since Python >=3.3.
+.. [#opt-4] ``data_files`` is deprecated and should be avoided.
+ Please check :doc:`/userguide/datafiles` for more information.
+
Compatibility with other tools
==============================
try:
return packaging.version.Version(v)
except packaging.version.InvalidVersion:
+ warnings.warn(
+ f"{v} is an invalid version and will not be supported in "
+ "a future release",
+ PkgResourcesDeprecationWarning,
+ )
return packaging.version.LegacyVersion(v)
[build-system]
-requires = [
- "wheel",
-]
+requires = []
build-backend = "setuptools.build_meta"
backend-path = ["."]
--doctest-glob=pkg_resources/api_tests.txt
-r sxX
doctest_optionflags=ALLOW_UNICODE ELLIPSIS
-# workaround for warning pytest-dev/pytest#6178
-junit_family=xunit2
filterwarnings=
# Fail on warnings
error
# https://github.com/pypa/setuptools/issues/917
ignore:setup.py install is deprecated.
ignore:easy_install command is deprecated.
+
+ # https://github.com/pypa/setuptools/issues/2497
+ ignore:.* is an invalid version and will not be supported::pkg_resources
[metadata]
name = setuptools
-version = 58.3.0
+version = 58.4.0
author = Python Packaging Authority
author_email = distutils-sig@python.org
description = Easily download, build, install, upgrade, and uninstall Python packages
[options.extras_require]
testing =
# upstream
- pytest >= 4.6
+ pytest >= 6
pytest-checkdocs >= 2.4
pytest-flake8
pytest-black >= 0.3.7; \
def skip_network(param):
return param if network else mark(param, pytest.mark.skip(reason="no network"))
- issue2599 = pytest.mark.skipif(
- sys.version_info > (3, 10),
- reason="pypa/setuptools#2599",
- )
-
network_versions = [
- mark('pip==9.0.3', issue2599),
- mark('pip==10.0.1', issue2599),
- mark('pip==18.1', issue2599),
mark('pip==19.3.1', pytest.mark.xfail(reason='pypa/pip#6599')),
'pip==20.0.2',
'https://github.com/pypa/pip/archive/main.zip',