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

bug: fix normalization of versions when setting toml #737

Merged
merged 1 commit into from
Sep 5, 2023

Conversation

jordanrfrazier
Copy link
Collaborator

I believe we only want the normalized versions when using them in the wheels. When we set them in the toml files, we want to retain the non-normalized format.

@cla-bot cla-bot bot added the cla-signed Set when all authors of a PR have signed our CLA label Sep 5, 2023
@github-actions github-actions bot added bug Something isn't working build labels Sep 5, 2023
@@ -54,15 +54,14 @@ jobs:
if: github.event_name != 'release'
run: |
pip install tomlkit packaging
VERSION=$(python ../scripts/version.py get --normalize pyproject.toml project.version)
VERSION=$(python ../scripts/version.py get pyproject.toml project.version)
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Determine version (release)
if: github.event_name == 'release'
run: |
echo "GITHUB_REF=${GITHUB_REF}"
VERSION=${GITHUB_REF#refs/tags/v}
pip install tomlkit packaging
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I can probably remove this line then too?

@jordanrfrazier jordanrfrazier merged commit 317c2d0 into main Sep 5, 2023
34 checks passed
@jordanrfrazier jordanrfrazier deleted the fix-normalization-of-versioning branch September 5, 2023 23:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working build cla-signed Set when all authors of a PR have signed our CLA
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant