-
Notifications
You must be signed in to change notification settings - Fork 72
How to deploy to PyPi
Kazuma Mikami edited this page Dec 25, 2018
·
4 revisions
https://packaging.python.org/tutorials/packaging-projects/
To create files to distribute, run the following command on the repository home directory:
rm -rf dist/ build/ atcoder_tools.egg-info/
python3 -m pip install --user --upgrade setuptools wheel
python3 setup.py sdist bdist_wheel
To check whether your deploy is okay, upload the files to PyPi by the command:
python3 -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*
To install the test package, you can run this:
pip install --index-url https://test.pypi.org/simple/ atcoder-tools
Deploy your package to the real PyPi after confirming your package works correctly with the test package:
python3 -m twine upload dist/*