See: https://packaging.python.org/tutorials/packaging-projects/
- Update
setup.py
to new version number - Commit this change and push it
- Tag and upload
cd Projects/ git clone https://github.com/fgnt/nara_wpe.git nara_wpe_pypi_version cd nara_wpe_pypi_version ~/anaconda3/bin/pip install --upgrade setuptools ~/anaconda3/bin/pip install --upgrade wheel ~/anaconda3/bin/pip install --upgrade twine git tag # Lists existing tags git tag -a 0.0.5 -m "Pypi version update 0.0.5" git tag # Lists existing tags git push origin --tags ~/anaconda3/bin/python setup.py sdist bdist_wheel twine upload --repository-url https://test.pypi.org/legacy/ dist/* twine upload dist/*
Delete tags:
git tag -d 0.0.2 git push origin :refs/tags/0.0.2
Delete local copy again