Skip to content

Commit

Permalink
Add news fragment
Browse files Browse the repository at this point in the history
  • Loading branch information
abravalheri committed Feb 8, 2022
1 parent 1f1976e commit b37747b
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
13 changes: 13 additions & 0 deletions changelog.d/3068.change.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`
8 changes: 8 additions & 0 deletions changelog.d/3068.deprecation.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).
8 changes: 7 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,16 @@

# Add support for linking usernames
github_url = 'https://github.com'
github_repo_org = 'pypa'
github_repo_name = 'setuptools'
github_repo_slug = f'{github_repo_org}/{github_repo_name}'
github_repo_url = f'{github_url}/{github_repo_slug}'
github_sponsors_url = f'{github_url}/sponsors'
extlinks = {
'issue': (f'{github_repo_url}/issues/%s', 'issue #%s'), # noqa: WPS323
'pr': (f'{github_repo_url}/pull/%s', 'PR #%s'), # noqa: WPS323
'user': (f'{github_sponsors_url}/%s', '@'), # noqa: WPS323
'pypi': ('https://pypi.org/project/%s', '%s'),
'pypi': ('https://pypi.org/project/%s', '%s'), # noqa: WPS323
}
extensions += ['sphinx.ext.extlinks']

Expand Down

0 comments on commit b37747b

Please sign in to comment.