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

Publish to PyPi on Git Tag #591

Merged
merged 1 commit into from
Dec 15, 2022
Merged

Conversation

AbdBarho
Copy link
Contributor

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.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Dec 15, 2022
Copy link
Contributor

@danthe3rd danthe3rd left a 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 :)

@@ -4,6 +4,8 @@ on:
push:
branches:
- main
tags:
- "*"
Copy link
Contributor

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?

Copy link
Contributor Author

@AbdBarho AbdBarho Dec 15, 2022

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

Copy link
Contributor

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

@danthe3rd
Copy link
Contributor

I'll merge once the CPU tests pass :)

@danthe3rd
Copy link
Contributor

Awesome! Thanks a lot - a lot of users will be thankful that we finally can have binary wheels - and also with windows supported :)
I'll see internally when we are ready to bump to 0.0.16 - hopefully soon

@danthe3rd danthe3rd merged commit e93689f into facebookresearch:main Dec 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants