Skip to content

Update PEP 561 packaging guidance - #21790

Open
nightcityblade wants to merge 1 commit into
python:masterfrom
nightcityblade:docs/issue-16551
Open

Update PEP 561 packaging guidance#21790
nightcityblade wants to merge 1 commit into
python:masterfrom
nightcityblade:docs/issue-16551

Conversation

@nightcityblade

Copy link
Copy Markdown

Fixes #16551.

Update the PEP 561 packaging guidance to:

  • explain that setuptools 69 and later automatically include .pyi and py.typed files inside package directories
  • recommend pyproject.toml for new projects
  • identify the existing setup.py, package_data, and MANIFEST.in examples as compatibility guidance for older setuptools versions

This is a documentation-only change, so no runtime test was added.

Verification:

  • .venv/bin/sphinx-build -n -d /tmp/mypy-docs-doctree docs/source /tmp/mypy-docs-out --color -W -bhtml
  • .venv/bin/pre-commit run --files docs/source/installed_packages.rst --show-diff-on-failure

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.

Setuptools includes type info by default now, update docs accordingly

1 participant