Skip to content

Conversation

RonnyPfannschmidt
Copy link
Contributor

When setuptools-scm is used only for its file finder functionality
(no version inference), it's valid to use tool.setuptools.dynamic.version
for versioning. The warning should only be issued when setuptools-scm
is actually performing version inference.

Changes:

  • Modified pyproject_reading.py to only warn when should_infer() is True
  • Added test for file-finder-only case (no warning expected)
  • Updated existing test with clarifying documentation

Fixes #1231

… file finder

When setuptools-scm is used only for its file finder functionality
(no version inference), it's valid to use tool.setuptools.dynamic.version
for versioning. The warning should only be issued when setuptools-scm
is actually performing version inference.

Changes:
- Modified pyproject_reading.py to only warn when should_infer() is True
- Added test for file-finder-only case (no warning expected)
- Updated existing test with clarifying documentation

Fixes pypa#1231
@RonnyPfannschmidt RonnyPfannschmidt merged commit e56b78f into pypa:main Oct 19, 2025
22 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.

How to disable version guessing?

1 participant