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

Release package on PyPI automatically when a Git tag is pushed #18

Open
bittner opened this issue Sep 27, 2019 · 0 comments
Open

Release package on PyPI automatically when a Git tag is pushed #18

bittner opened this issue Sep 27, 2019 · 0 comments

Comments

@bittner
Copy link

bittner commented Sep 27, 2019

To remove the burden on the maintainer(s) I'd suggest to make it easier to release a new package version on PyPI. Pushing a Git tag to the repository may trigger an automatic release.

That can be achieved by adding a deploy: section to the Travis CI configuration, the same way the Pylint project has done it:

deploy:
  distributions: sdist bdist_wheel
  provider: pypi
  user: <maintainer-pypi-username-here>
  password:
    secure: <maintainer-pypi-password-here>
  on:
    tags: true

This approach has several advantages:

  • You don't need to install and configure software locally to trigger releases
  • You don't accidentally release from the wrong branch (:hankey: happens!)
  • Everyone who has permissions to push a tag on the repository directly can effortlessly trigger a release
  • Releases, since they are tagged commits, automatically show up in the "releases" tab of the GitHub repo
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

1 participant