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

[ ENH ] Auto push to PyPi on merged pull request #12

Closed
shawndwells opened this issue Dec 8, 2020 · 3 comments · Fixed by #109 or #106
Closed

[ ENH ] Auto push to PyPi on merged pull request #12

shawndwells opened this issue Dec 8, 2020 · 3 comments · Fixed by #109 or #106
Assignees
Labels
enhancement 🌟 New feature or request package Pull requests that update the core package pipeline CI/CD related

Comments

@shawndwells
Copy link
Contributor

There are multiple GitHub Action plugins for PyPi. Let's chose one/setup something that:

  • For every merged PR, generates a TEST PyPi package
  • For every pushed release tag, generates an official PyPi package.

This way release engineering can be fully automated via GitOps.

@jshcodes will require API keys to PyPi. Have not used PyPi before -- is it better to create a bot account vs use personal keys? Looks like packages are static to specific users.... is that accurate? Can multiple people be added in PyPi to a package, akin to how multiple people can be added to a GitHub repo?

@shawndwells shawndwells added the enhancement 🌟 New feature or request label Dec 8, 2020
@jshcodes
Copy link
Member

jshcodes commented Dec 8, 2020

There is collaboration on PyPI projects. We should test multiple owners, but it looks supported. (There are two roles, maintainer and owner. Maintainers cannot invite other collaborators, delete files, releases or the project.)

API tokens are supported, we can test this with my account to confirm.

From what I can tell, we should be able to go either way. I like the idea of there being an automation account.

@jshcodes jshcodes changed the title [Feature] Auto push to PyPi on merged pull request [ ENH ] Auto push to PyPi on merged pull request Feb 18, 2021
@jshcodes
Copy link
Member

jshcodes commented Apr 1, 2021

PR #106 - Adds the release workflow for production package publishing. I will test it after unit testing clears using the v0.4.3 release.

@jshcodes
Copy link
Member

jshcodes commented Apr 1, 2021

PR #106 - Adds the release workflow for production package publishing. I will test it after unit testing clears using the v0.4.3 release.

Release v0.4.3 published to the index without issue. This workflow is now in place. All that remains for this issue is to figure out the versioning for pushes to the test index on successful merges to main.

@jshcodes jshcodes mentioned this issue Apr 2, 2021
1 task
@jshcodes jshcodes linked a pull request Apr 2, 2021 that will close this issue
2 tasks
@jshcodes jshcodes added pipeline CI/CD related package Pull requests that update the core package labels Aug 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement 🌟 New feature or request package Pull requests that update the core package pipeline CI/CD related
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants