Skip to content

doc: list all four fields accepted in project.dynamic - #825

Merged
takluyver merged 1 commit into
pypa:mainfrom
hxperl:docs-dynamic-fields
Sep 15, 2026
Merged

takluyver merged 1 commit into
pypa:mainfrom
hxperl:docs-dynamic-fields

Conversation

@hxperl

@hxperl hxperl commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

doc/pyproject_toml.rst says dynamic accepts only "version" and "description". It has accepted four since 4fdd194 (PEP 794 support), which widened allowed_dynamic_fields without touching the docs.

With dynamic = ["version", "description", "import-names"]:

>>> read_flit_config(Path("pyproject.toml")).dynamic_metadata
['description', 'import-names', 'version']

And flit's own error already lists all four:

ConfigError: flit only supports dynamic metadata for:description, import-names, import-namespaces, version

Doc line updated to match. Sphinx builds clean with -W; flit_core/tests_core 218 passed, 1 skipped on macOS arm64 / CPython 3.14.

4fdd194 (PEP 794) added import-names and import-namespaces to
allowed_dynamic_fields; pyproject_toml.rst still says only version and
description are accepted.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019zkQEGBfqqomF5tanu383Q
@takluyver takluyver added this to the 4.1 milestone Sep 15, 2026
@takluyver
takluyver merged commit 04cfa08 into pypa:main Sep 15, 2026
16 checks passed
@takluyver

Copy link
Copy Markdown
Member

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants