You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Use pyproject.toml for PyPI README metadata - #2146
Good question. The reason is standardization of the metadata declaration, not that setup.py has stopped working. PEP 621 defines the [project].readme field in pyproject.toml independently of a particular build backend; a compliant backend derives the distribution’s core Description and Description-Content-Type from it. This keeps a common README path in declarative project metadata instead of requiring project-specific Python code to read the file and populate long_description/long_description_content_type. It also lets the same guide work for projects using different modern backends. Existing projects can continue to use setup.py and its long_description options, and backends must support the relevant metadata field before a project adopts it—so I do not intend to imply that old configurations are invalid or must be migrated. The guide previously centered the legacy setuptools-specific example; my intent is to make the backend-neutral path the default for new packaging examples while keeping the core-metadata references for readers. If you would prefer an explicit legacy-configuration note in the guide as well, I can add that without suggesting a mandatory migration.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Addresses #971.
Summary
setup.pyREADME metadata guidance with[project].readmeinpyproject.tomltwine checkvalidationValidation
📚 Documentation preview 📚: https://python-packaging-user-guide--2146.org.readthedocs.build/en/2146/