-
Notifications
You must be signed in to change notification settings - Fork 50
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 twineCreate the source or binary (wheel) distribution:
# source
$ python setup.py sdist
# wheel
$ python setup.py bdist_wheelThis 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.gzUpload to TestPyPi:
$ twine upload --repository-url https://test.pypi.org/legacy/ dist/*Upload to PyPi
$ twine upload dist/*