-
Notifications
You must be signed in to change notification settings - Fork 52
Home
Carlos Kidman edited this page Mar 24, 2020
·
4 revisions
https://app.gitbook.com/@elsnoman
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 to TestPyPi:
$ twine upload --repository-url https://test.pypi.org/legacy/ dist/*
Upload to PyPi
$ twine upload dist/*