A new GitHub action workflow that runs when a new GitHub release is made. It builds the dist and pushes it to PyPI automatically. Two special considerations:
It checks the repository name, so only runs if the repo is BIONITIO_GITHUB_USERNAME/bionitio
This is to avoid trying to push releases on forks, though I'm not sure why people would make GitHub releases on their fork.
It requires a secret called PYPI_PASSWORD to work
This must be set by the user in the GitHub repository settings. See GitHub docs
Two things in this PR:
A bit of a clean-up on
setup.py
setuptools
instead ofdistutils
(not sure if you had a specific reason to usedistutils
?)licence
field toMIT
as that is what is in theLICENSE
filesetuptools.find_packages()
instead of manually supplying the package name(s)Automated releases on PyPI
A new GitHub action workflow that runs when a new GitHub release is made. It builds the dist and pushes it to PyPI automatically. Two special considerations:
BIONITIO_GITHUB_USERNAME/bionitio
PYPI_PASSWORD
to work