How to register on pypi

I'm doing it on Windows, but I got stuck on some, so make a note

Write setup.py

Create setup.py in the project and describe it. I think that a lot of detailed description contents will come out if you google with python setup.py, so refer to that. Classfiers must be selected and described from here. Also, setup.py can be written using distutils and setuptools, but it seems that the writing method using setuptools is newer, so it is recommended to write it in setuptools.

User registration on pypi

After writing setup.py

python setup.py register

Execute the command. People who have never registered with pypi will get the following message, so select 2 and register as a user with pypi.

We need to know who you are, so please choose either:
1. use your existing login,
2. register as a new user,
3. have the server generate a new password for you (and email it to you), or
4. quit

If the registration is successful, you will receive an email, so follow the link from there to complete the registration.

Creating a .pypirc

Probably .pypirc is not created on Windows, so create .pypirc in the HOME directory specified by the environment variable and write the following.

[pypirc]
servers = pypi
[server-login]
username: <Registered user name>
password: <Registered password>

Package registration to pypi

Execute the following command again to register the package with pypi.

python setup.py register

Package upload to pypi

Hit the following command to upload the package to pypi

python setup.py sdist upload -r pypi

Verification

I don't know if it will take a while, but it may not come out even if you search with pypi, you can check it immediately with pip.

pip install <package name>

If you can install it with, it is completed.

Recommended Posts

How to register on pypi
How to read PyPI
How to register a package on PyPI (as of September 2017)
How to use Dataiku on Windows
Notes on how to use pywinauto
How to install VMware-Tools on Linux
How to install pycrypto on Windows
How to deploy django-compressor on Windows
Notes on how to use featuretools
How to install OpenCV on Mac
How to run matplotlib on heroku
How to install PyPy on CentOS
How to use homebrew on Debian
Misunderstanding on how to connect cnn
How to install TensorFlow on CentOS 7
Notes on how to use doctest
How to install Maven on CentOS
Register as a package on PyPI
Notes on how to write requirements.txt
How to install Go on Ubuntu
How to install music 21 on windows
How to install aws-session-manager-plugin on Manajro Linux
How to read pydoc on python interpreter
How to install drobertadams / toggl-cli on Mac
[Kivy] How to install Kivy on Windows [Python]
How to use mecab, neologd-ipadic on colab
How to build Hello, World on #Nix
How to update php on Amazon linux 2
[Python] Register your own library on PyPI
How to use Google Assistant on Windows 10
How to erase Python 2.x on Mac.
How to display emoji on Manjaro Linux
Memorandum on how to use gremlin python
[For beginners] How to register a library created in Python in PyPI
How to install packages on Alpine Linux
How to install Anisble on Amazon Linux 2
How to switch mouse operations on CentOS
How to install richzhang / colorization on Windows 10
How to update security on CentOS Linux 8
How to install Apache (httpd) on CentOS7
How to install php7.4 on Linux (Ubuntu)
How to install Eclipse GlassFish 5.1.0 on CentOS 7
How to install Apache (httpd) on CentOS8
How to test on a Django-authenticated page
How to run Cython on OSX Memo
How to find large files on Linux
How to install NumPy on Raspberry Pi
How to install cx_Oracle on macOS Sierra
How to make only one data register on the Django admin screen
How to write urlfetch unittest on GAE / P
[2020 version] How to install Python3 on AWS EC2
Strategy on how to monetize with Python Java
How to install OpenCV on Jetson Nano Python
[Latest] How to build Java environment on Ubuntu
How to make multiple kernels selectable on Jupyter
How to use Python Kivy ④ ~ Execution on Android ~
How to run MeCab on Ubuntu 18.04 LTS Python
How to quickly install h5py on Windows 10 [Unofficial]
How to install OpenGM on OSX with macports
How to live a decent life on 2017 Windows
How to install Camunda Modeler on Manjaro Linux