Skip to content

Support date-based PyPI versioning and dev packages#2806

Merged
j2kun merged 1 commit intogoogle:mainfrom
j2kun:pypi-date
Mar 25, 2026
Merged

Support date-based PyPI versioning and dev packages#2806
j2kun merged 1 commit intogoogle:mainfrom
j2kun:pypi-date

Conversation

@j2kun
Copy link
Copy Markdown
Collaborator

@j2kun j2kun commented Mar 24, 2026

This PR changes the PyPI workflow from a manual semver-based versioning format to a date-based one. The main constraint here is that we can't require any commits during the release process (due to google/copybara limitations). So we replace the hard-coded version number with a dynamic config, and use setuptools-scm to extract the release label from the release workflow to use as a PyPI version label.

Created scripts/get_version.py to support logic for finding the right label and release name from the existing PyPI releases, which further supports a *.dev2 style of pushing dev wheels for testing.

Copy link
Copy Markdown
Collaborator

@AlexanderViand AlexanderViand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@j2kun j2kun added the pull_ready Indicates whether a PR is ready to pull. The copybara worker will import for internal testing label Mar 25, 2026
copybara-service bot pushed a commit that referenced this pull request Mar 25, 2026
…neric

When canonicalizing, secret.generic ops are hoisted when they are fully plaintext. But this doesn't copy the attributes of the op onto the new hoisted generic's result attrs, and then those aren't copied to the old generic's new input.

This results in a segfault when running in debug mode, due to a segfault in printing secret.generic arg attributes (that expect the arg attr dict to have arg attrs for each i in the arg list).

FUTURE_COPYBARA_INTEGRATE_REVIEW=#2806 from j2kun:pypi-date ae711c5
PiperOrigin-RevId: 889323354
@j2kun j2kun merged commit 23e2143 into google:main Mar 25, 2026
14 checks passed
@AlexanderViand
Copy link
Copy Markdown
Collaborator

Looks like pypi is STILL not happy? :(

@j2kun
Copy link
Copy Markdown
Collaborator Author

j2kun commented Mar 26, 2026

Looks like pypi is STILL not happy? :(

I think #2817 will get past that next bump.

Welcome to my life circa late 2025. Packaging is very annoying.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:wheels pull_ready Indicates whether a PR is ready to pull. The copybara worker will import for internal testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants