Skip to content
tazitoo edited this page May 8, 2022 · 8 revisions

Manually Publish Artifact to PyPi

# From the root directory

python3 -m pip install --upgrade setuptools wheel twine

python3 setup.py sdist bdist_wheel

# test your newly built package and ability to upload on test.pypi.org 
python3 -m twine upload --repository testpypi dist/* --verbose

# if all went well in the step above, repeat with the __real__ pypi.org
python3 -m twine upload  dist/*  

# continue with PyPi credentials

Source documentation: https://packaging.python.org/tutorials/packaging-projects/#uploading-the-distribution-archives

Clone this wiki locally