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
Fix issue #1022: version_keyword should override infer_version when config differs
When infer_version sets a version first, version_keyword should be able to
override it if it brings additional configuration (like a different version_scheme).
This commit implements a marker system:
- infer_version sets _setuptools_scm_version_set_by_infer=True when it sets a version
- version_keyword checks this marker and:
- If no overrides: uses infer_version result (no warning)
- If overrides present: clears version and recalculates with new config
- If version set by other means: warns as before
This allows proper integration behavior where version_keyword can override
infer_version when the user provides specific configuration like calver schemes.
0 commit comments