Skip to content

Rebuild Python package for PyPi and republish

Louis Maddox edited this page Dec 30, 2019 · 12 revisions

After incrementing the package version number in setup.py, run the following to remove old distribution archives, regenerate them, and then reupload them to PyPi:

rm -rf build/ dist/ mvdef.egg-info/
python3 setup.py sdist bdist_wheel
python3 -m twine upload dist/*

Source: https://packaging.python.org/tutorials/packaging-projects/

Clone this wiki locally