Skip to content

Publishing a module to PyPi

Soumyajit Basu (C0r3f!nd3r) edited this page Apr 13, 2019 · 1 revision

Creating Binary Distribution For Package

python3 setup.py sdist bdist_wheel

Note: Before creating a tag do remember to change the version and the file version as well

Create a tag using git

git tag -a <version_release> -m <comment>

Push tag to GitHub

git push origin <tag>

Use twine to upload package to PyPi

python3 -m twine upload --repository-url https://upload.pypi.org/legacy/ dist/*