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
{{ message }}
Repository navigation
vcs-versioning does not register a discover_workdir hook for PKG-INFO #1507
project(
'pycxxfilt',
'c', 'cpp',
meson_version: '>=1.6.0',
# Derive the version from the latest git tag via setuptools-scm; it falls# back to the sdist's PKG-INFO when building outside a git checkout.version: run_command(
'python3', '-m', 'vcs_versioning',
check: true,
).stdout().strip(),
)
However this approach does not work with version 2.3.1. vcs-versioning does not register a fallback discovery hook for PkgInfoWorkdir. Without the discovery workdir hook, vcs-versioning is unable to get dynamic versions from an sdist, so sdists are broken. The hook is only registered when setuptools-scm is installed as well.
Activity
Derive version from git tags with vcs-versioning
Derive version from git tags with vcs-versioning
fix: register PKG-INFO discovery in vcs-versioning
tiran commentedon Sep 1, 2026
Thanks for the quick fix!
fix(discovery): prefer fallback metadata nearest the project