s4hri / pykron

Other
0 stars 2 forks source link

How to automatize the release of pip packages ? #11

Open ddetommaso opened 3 years ago

ddetommaso commented 3 years ago

We want to find a way to automatize the release of pip packages for each release candidate.

In the following we will discuss possible solutions to address this issue.

adamlukomski commented 3 years ago

(full proposed procedure https://adamlukomski.github.io/pykron/developer/release.html, a simplification from networkx/networkx repo)

Proposition:

git commit -m "Release x.y.z"
git tag -s [-u <key-id>] pykron-<major>.<minor> -m 'signed <major>.<minor> tag'
git push --tags upstream master

git clean -fxd
pip install -r requirements/release.txt   # optional step
python setup.py sdist bdist_wheel
twine upload -s dist/*
ddetommaso commented 3 years ago

PROPOSAL: Publishing package distribution releases using GitHub Actions CI/CD workflows

https://packaging.python.org/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/