Skip to content

Fix build-system.requires cross-reference to dependency specifiers (#1644) - #2156

Merged
henryiii merged 1 commit into
python:mainfrom
paneendrakumar0:docs-build-system-dependency-specifiers-1644
Oct 26, 2026
Merged

henryiii merged 1 commit into
python:mainfrom
paneendrakumar0:docs-build-system-dependency-specifiers-1644

Conversation

@paneendrakumar0

@paneendrakumar0 paneendrakumar0 commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Summary

In source/specifications/pyproject-toml.rst, the specification for the [build-system] table previously stated:

This key must have a value of a list of strings representing dependencies required to execute the build system. The strings in this list follow the :ref:version specifier specification <version-specifiers>.

In packaging standards, PEP 518 specifies that build-system.requires contains PEP 508 dependencies (package name + version constraint + markers, e.g., "setuptools>=61.0", "wheel"). These are dependency specifiers, not PEP 440 version specifiers (which solely define version comparison operators like >=61.0).

This PR corrects the text and the Sphinx cross-reference to point to the dependency specifier specification (dependency-specifiers.rst), matching PEP 518, the example given directly beneath it (requires = ["setuptools"]), and the rest of the pyproject.toml specification.

Fixes #1644

Verification

  • Built documentation with sphinx-build -n -W source build (0 warnings, 0 errors).
  • Verified that the rendered HTML link points to dependency-specifiers.html#dependency-specifiers.
  • Verified that pre-commit run --all-files passes all formatting and linting checks cleanly.

📚 Documentation preview 📚: https://python-packaging-user-guide--2156.org.readthedocs.build/en/2156/

…ython#1644)

Signed-off-by: paneendrakumar0 <paneendra100@gmail.com>
@henryiii
henryiii force-pushed the docs-build-system-dependency-specifiers-1644 branch from 40f41e7 to 2b15e65 Compare October 26, 2026 23:20
@henryiii
henryiii added this pull request to the merge queue Oct 26, 2026
Merged via the queue into python:main with commit 277b5f8 Oct 26, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PEP518: dependency specification mismatch

2 participants