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

Automate the release procedure. #5

Open
rainwoodman opened this issue Apr 21, 2019 · 3 comments
Open

Automate the release procedure. #5

rainwoodman opened this issue Apr 21, 2019 · 3 comments

Comments

@rainwoodman
Copy link

rainwoodman commented Apr 21, 2019

The instructions are at:

https://docs.travis-ci.com/user/deployment/pypi/

You can refer to the example in bigfile:

https://github.com/rainwoodman/bigfile/blob/1a2d05977fc8edebd8ddf9e81fdb97648596266d/.travis.yml#L47

The basic idea is run the auto deployment on tags and builds that ends with .0. Then when you do

git tag 1.0.0
git push --tags

Then very first build in the build matrix will run auto deployment and create a release on PyPI. In bigfile I added a script (check_tag.sh) to assert the tag agrees with the version number before sending the release to PyPI, since it is a common mistake the claimed version in the package disagrees with the tag name.

You do need to compute your encrypted pypi password via the travis CLI command. The procedure is described in their guide (I don't think they have a web interface for that).

@rainwoodman
Copy link
Author

rainwoodman commented Apr 21, 2019

This is blocking bccp/nbodykit#579, which appears to require the new version of mcfit, which is not yet released on PyPI nor tagged on github.

@eelregit
Copy link
Owner

Thanks! I think fixed that after CI failed and now there is a new version.

I will spend some time to understand all the automation stuff.
For now, do you know how to simply restart travis in bccp/nbodykit#579?

@rainwoodman
Copy link
Author

You can probably force push with a trivial change to restart th build. I can also manually restart it from the travis site.

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

No branches or pull requests

2 participants