-
Notifications
You must be signed in to change notification settings - Fork 651
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
Publish to PyPi on Git Tag #591
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot! This looks great - just a small nit on tags that should trigger this, and we can finalize the trilogy :)
.github/workflows/wheels.yml
Outdated
@@ -4,6 +4,8 @@ on: | |||
push: | |||
branches: | |||
- main | |||
tags: | |||
- "*" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we have a sort of regexp here to ensure we only match tags that look like a version number?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Assuming semantic versioning, so something like [0-9]+.[0-9]+.[0-9]+
With or without v
at the beginning? I might have to check again if pypi accepts versions prefixed with v
.
Edit: it does not
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need the "v" prefix
I'll merge once the CPU tests pass :) |
Awesome! Thanks a lot - a lot of users will be thankful that we finally can have binary wheels - and also with windows supported :) |
The final piece in the pip trilogy #533.
Continuation of #588 and #590.
This should hopefully be all the work needed to have pip wheels always up-to-date.
I added a check to see if the version in
version.txt
matches the git tag, not sure if necessary, maybe it is okay if they are different?After this, I intend to do a clean up of the workflow code since it is starting to get a bit messy, especially with all the os specific stuff.
Also, there was a mention of having scripts that cleans up old releases from PyPi, @danthe3rd ping me if needed.