Skip to content

Fix the wheel build by updating setuptools-scm to 10.2.0#1439

Merged
shsms merged 1 commit into
frequenz-floss:v1.x.xfrom
shsms:fix-sdist-build-version
Jul 20, 2026
Merged

Fix the wheel build by updating setuptools-scm to 10.2.0#1439
shsms merged 1 commit into
frequenz-floss:v1.x.xfrom
shsms:fix-sdist-build-version

Conversation

@shsms

@shsms shsms commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

setuptools-scm == 10.0.5 asks for vcs-versioning >= 1.0.0.dev0 with no upper bound. vcs-versioning 2.x came out at the end of June 2026, and with it the build of the wheel from the sdist fails: in the unpacked sdist there is no git repository, and reading the version from PKG-INFO no longer works. So python -Im build fails with LookupError: setuptools-scm was unable to detect version.

setuptools-scm == 10.2.0 asks for vcs-versioning >= 2.0.0.dev0, < 3, so it works with the new version again.

`setuptools-scm == 10.0.5` asks for `vcs-versioning >= 1.0.0.dev0`
with no upper bound.  `vcs-versioning` 2.x came out at the end of June
2026, and with it the build of the wheel from the sdist fails: in the
unpacked sdist there is no git repository, and reading the version
from `PKG-INFO` no longer works.  So `python -Im build` fails with
`LookupError: setuptools-scm was unable to detect version`.

`setuptools-scm == 10.2.0` asks for `vcs-versioning >= 2.0.0.dev0,
< 3`, so it works with the new version again.

Signed-off-by: Sahas Subramanian <sahas.subramanian@proton.me>
@shsms
shsms requested a review from a team as a code owner July 20, 2026 11:05
@shsms
shsms requested review from Marenz and removed request for a team July 20, 2026 11:05
@github-actions github-actions Bot added the part:tooling Affects the development tooling (CI, deployment, dependency management, etc.) label Jul 20, 2026
@shsms
shsms force-pushed the fix-sdist-build-version branch from 831b693 to b30aa37 Compare July 20, 2026 11:06
@github-project-automation github-project-automation Bot moved this from To do to Review approved in Python SDK Roadmap Jul 20, 2026
@shsms
shsms added this pull request to the merge queue Jul 20, 2026
Merged via the queue into frequenz-floss:v1.x.x with commit e6a5059 Jul 20, 2026
9 checks passed
@shsms
shsms deleted the fix-sdist-build-version branch July 20, 2026 11:14
@github-project-automation github-project-automation Bot moved this from Review approved to Done in Python SDK Roadmap Jul 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

part:tooling Affects the development tooling (CI, deployment, dependency management, etc.)

Projects

Development

Successfully merging this pull request may close these issues.

2 participants