pylint-plugin-utils icon indicating copy to clipboard operation
pylint-plugin-utils copied to clipboard

Release package on PyPI automatically when a Git tag is pushed

Open bittner opened this issue 6 years ago • 0 comments

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

bittner avatar Sep 27 '19 06:09 bittner