I registered a Python package with PyPI. This is a summary for myself, because the procedure was old and there were some confusing parts such as not being updated.
-PyPI registration procedure for those who want to make a PyPI debut --Package Python library
Twine is recommended for PyPI Upload. I used bdist_wheel instead of sdist. (Correction: I will use both.)
pip3 install twine
python3 setup.py sdist bdist_wheel --python-tag=py3
twine register dist/xxx-1.0.0-py3-none-any.whl
twine upload dist/*
In the Japanese commentary article, whether to use sdist or bdist_wheel was different depending on the article. Therefore, I was confused. If you look at the PyPI site, upload both, but the answer is correct, so let's upload both. Please refer to the reference link to see if you should use Wheel.
Recommended Posts