Skip to content

Commit

Permalink
Add news fragments
Browse files Browse the repository at this point in the history
  • Loading branch information
abravalheri committed Dec 25, 2021
1 parent 01d99ce commit 281e51d
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 0 deletions.
2 changes: 2 additions & 0 deletions changelog.d/2970.breaking.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Removed public class ``SetupRequirementsError`` from the
``setuptools.build_meta`` module.
13 changes: 13 additions & 0 deletions changelog.d/2970.change.1.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Added **experimental** support for ``pyproject.toml`` configuration
(as introduced by :pep:`621`). Configuration parameters not covered by
standards are handled in the ``[tool.setuptools]`` sub-table.

In the future, existing ``setup.cfg`` configuration
may be automatically converted into the ``pyproject.toml`` equivalent before taking effect
(as proposed in :issue:`1688`). Meanwhile users can use automated tools like
:pypi:`ini2toml` to help in the transition.

Please note that the legacy backend is not guaranteed to work with
``pyproject.toml`` configuration.

-- by :user:`abravalheri`.
3 changes: 3 additions & 0 deletions changelog.d/2970.change.2.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Added vendored dependencies for :pypi:`tomli`, :pypi:`validate-pyproject`.

These dependencies are used to read ``pyproject.toml`` files and validate them.
3 changes: 3 additions & 0 deletions changelog.d/2970.change.3.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Changed the means of interaction between ``setuptools.build_meta`` and
``setuptools.setup``. Instead of simply executing the script, the backend now
relies on ``distutils.core.run_setup`` to obtain a distribution object.
8 changes: 8 additions & 0 deletions changelog.d/2970.deprecation.1.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Deprecated ``setuptools.config.read_configuration``,
``setuptools.config.parse_configuration`` and other functions or classes
from ``setuptools.config``.

Users that still need to parse and process configuration from ``setup.cfg`` can
import a direct replacement from ``setuptools.config.setupcfg``, however this
module is transitional and might be removed in the future
(the ``setup.cfg`` configuration format itself is likely to be deprecated in the future).
4 changes: 4 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,12 @@
# Add support for linking usernames
github_url = 'https://github.com'
github_sponsors_url = f'{github_url}/sponsors'
repository = f'{github_url}/pypa/setuptools'
extlinks = {
'user': (f'{github_sponsors_url}/%s', '@'), # noqa: WPS323
'issue': (f'{repository}/issues/%s', 'issue #%s'), # noqa: WPS323
'pr': (f'{repository}/pull/%s', 'PR #%s'), # noqa: WPS323
'pypi': ('https://pypi.org/project/%s', '%s'), # noqa: WPS323
}
extensions += ['sphinx.ext.extlinks']

Expand Down

0 comments on commit 281e51d

Please sign in to comment.