Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add setuptools_scm for dynamic zero-config Python versioning #1690

Merged
merged 2 commits into from
Nov 1, 2023

Conversation

nicholasjng
Copy link
Contributor

This removes the need for manually bumping versions in the Python bindings.

For the wheel uploads, the correct semver version is inferred in the case of tagged commits, which is exactly the case in GitHub CI.

The docs were updated to reflect the changes in the release workflow.

We also add a runtime-useable version, which is the best practice mentioned in the setuptools_scm docs, see https://setuptools-scm.readthedocs.io/en/latest/usage/#version-at-runtime.

This removes the need for manually bumping versions in the Python
bindings.

For the wheel uploads, the correct semver version is inferred in the case
of tagged commits, which is exactly the case in GitHub CI.

The docs were updated to reflect the changes in the release workflow.
@dmah42
Copy link
Member

dmah42 commented Nov 1, 2023

much better. thank you!

@dmah42 dmah42 merged commit 3623765 into google:main Nov 1, 2023
53 of 60 checks passed
@nicholasjng nicholasjng deleted the add-setuptools-scm branch November 1, 2023 10:06
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.

None yet

2 participants