Skip to content
Carlos Kidman edited this page Mar 24, 2020 · 4 revisions

GitBook docs

https://app.gitbook.com/@elsnoman

Local Python Package

Once you have the setup.py, you can create the distribution package using twine.

# if you don't have twine installed yet
$ pip install twine

Create the source or binary (wheel) distribution:

# source
$ python setup.py sdist

# wheel
$ python setup.py bdist_wheel

This will create a tar.gz file which can be installed in any local Python project. Place a copy of the tar file in your project and run:

$ pip install ./Package-1.0.4.tar.gz

Upload Package

Upload to TestPyPi:

$ twine upload --repository-url https://test.pypi.org/legacy/ dist/*

Upload to PyPi

$ twine upload dist/*
Clone this wiki locally