Skip to content

Instantly share code, notes, and snippets.

@MohamedElashri
Last active March 11, 2021 08:17
Show Gist options
  • Save MohamedElashri/41395d9b2e25f76cd7f6466db03e19ef to your computer and use it in GitHub Desktop.
Save MohamedElashri/41395d9b2e25f76cd7f6466db03e19ef to your computer and use it in GitHub Desktop.
[Publish python package] how to publish python package on pypi #python

create the wheel files

python setup.py sdist bdist_wheel

submit to pypi using your credentials directly

--repository take [testpypi,pypi] for testing server and actual one

python -m twine upload -u <username> -p <password> --repository pypi dist/*

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment