Add github releases pypi auto upload action #5
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi @dbstein!
First, thank you for writing
fast_interp
! I've made a frequent use of it and find it very useful. We're currently using it in a project called advtraj and at the time I included the source-code directly into our tool because it wasn't working with python3 (and I found a small bug, but I think @ReadingClouds has been in touch with you about that). Because we would like to putadvtraj
on pypi, it would be really great if you would putfast_interp
on pypi too.To help with that this pull-request adds a Github Action which automatically builds and publishes any releases
tagged on github to pypi.org. All you need to do is add 1) add a pypi API key to a "repository secret" for this github repository called
PYPI_TOKEN
, 2) merge this pull-request and 3) create a release here on github.Alternatively, if you I could do all this for you if you would trust me to be a collaborator on your repository :)
I use this way of publishing to pypi in many places, you can see an example here: https://github.com/convml/convml-data. It makes it really easy to put new changes on pypi.
You can get a pypi upload token at https://pypi.org/manage/account/token/ and here are instructions on adding this to your repo's secrets: https://docs.github.com/en/actions/security-guides/encrypted-secrets#creating-encrypted-secrets-for-a-repository