Summary of procedures up to PyPI registration

Introduction

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.

References

Until setup.py is created

-PyPI registration procedure for those who want to make a PyPI debut --Package Python library

About Wheel
Other

Final execution result

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

Summary of procedures up to PyPI registration
Summary of how to use pandas.DataFrame.loc
Summary of how to use pyenv-virtualenv
Summary of how to use csvkit
PyPI registration
[Python] Summary of how to use pandas
How to speed up instantiation of BeautifulSoup
[Python2.7] Summary of how to use unittest
Summary of vtkThreshold (updated from time to time)
Summary of how to use Python list
[Python2.7] Summary of how to use subprocess
Summary of how to write AWS Lambda
Summary of how to set up major Python Lint (pep8, pylint, flake8)
Summary of gcc options (updated from time to time)
Summary of how to import files in Python 3
Summary of studying Python to use AWS Lambda
Summary of tools needed to analyze data in Python
[Blender] Summary of how to install / update / uninstall add-ons
Review of atcoder ABC158, up to question E (Python)
[Python] Summary of how to specify the color of the figure
Summary of how to share state with multiple functions
Numerical summary of data
Summary of Tensorflow / Keras
How to read PyPI
Summary of pyenv usage
All up to 775/664, 777/666, 755/644, etc.
Summary of string operations
Summary of Python arguments
Summary of logrotate software logrotate
Summary of test method
Summary of things that need to be installed to run tf-pose-estimation
Review of AtCoder Beginner Contest 159, up to question E (Python)
Review of AtCoder Beginner Contest 163, up to question E (Python)
[python] Summary of how to retrieve lists and dictionary elements
Review of AtCoder Beginner Contest 164, up to question E (Python)
Review of AtCoder Beginner Contest 162, up to question E (Python)
[Linux] [C / C ++] Summary of how to get pid, ppid, tid
[Python] Summary of how to use split and join functions
Review of AtCoder Beginner Contest 154, up to question E (Python)
How to register a package on PyPI (as of September 2017)
Review of AtCoder Beginner Contest 153, up to question E (Python)
Summary of how to write .proto files used in gRPC
Review of AtCoder Beginner Contest 160, up to question E (Python)
Review of AtCoder Beginner Contest 167, up to question E (Python)
Review of AtCoder Beginner Contest 157, up to question E (Python)
Review of AtCoder Beginner Contest 161, up to question E (Python)
Review of AtCoder Beginner Contest 155, up to question E (Python)
Review of AtCoder Beginner Contest 156, up to question E (Python)
Review of AtCoder Beginner Contest 166, up to question E (Python)
Review of AtCoder Beginner Contest 165, up to question E (Python)