[PYTHON] Steps to install your own library with pip

[Caution] This article is old

The information in this article is out of date and there are some commands that are no longer available. (As of February 4, 2018)

We recommend that you refer to the following articles.

Publish / upload library created in Python to PyPI

Introduction

I registered the library on PyPI for the first time. So I will summarize what I did and what I studied.

Referenced site

How to use official setuptools Sample repository

Sample Repository

basic usage of settools

Write package information in setup.py $ python setup.py sdist-> Create source package $ python setup.py install-> package install

General commands for distribution

Create a PyPI account → PyPy User profile $ python setup.py test $ python setup.py register $ python setup.py sdist bdist_egg upload $ python setup.py upload_docs

Minimum required? ?? ??

Create a PyPI account → PyPy User profile

$ python setup.py register
$ python setup.py sdist upload

When updating

Change the version of setup.py $ python setup.py sdist upload

Meaning of arguments of setup () function

Recommended Posts

Steps to install your own library with pip
Until you can install your own Python library with pip
How to install mysql-connector with pip3
Steps to install a Git cloned package locally with pip
[Reinforcement learning] DQN with your own library
I want to pip install with PythonAnywhere
Until you install your own Python library
To import your own module with jupyter
How to install your own (root) CA
Publish your own Python library with Homebrew
Try to make your own AWS-SDK with bash
How to install pip
Error with pip install
Install scikit.learn with pip
Memo to create your own Box with Pepper's Python
Call your own C library with Go using cgo
Steps to install the latest Python on your Mac
Let's call your own C ++ library with Python (Preferences)
When moss with pip install
Install github repository with pip
[Road to intermediate Python] Install packages in bulk with pip
Steps to develop Django with VSCode
Steps to install MySQL 8.0 on CentOS 8.1
Install Python 2.7.9 and Python 3.4.x with pip.
What to do with Magics install
Steps to install matplotlib on Mac
Permission denied with pip install pyopenssl
Steps to install Ubuntu in VirtualBox
Solve your own maze with Q-learning
How to install python-pip with ubuntu20.04LTS
Steps to install VirtualBox on CentOS
How to create your own Transform
Easy to install pyspark with conda
Manipulate colors with pip install color
Unable to install Python with pyenv
Bridge ROS to your own protocol
Train UGATIT with your own dataset
Steps to install python3 on mac
How to install Anaconda with pyenv
What to do if you can't install pyaudio with pip #Python
I get an error when trying to install maec 4.0.1.0 with pip
What to do if you get a UnicodeDecodeError with pip install
Install packages that need to be compiled with Python3 with pip [Windows]
[TensorFlow] If you want to run TensorBoard, install it with pip
How to make your own domain site with heroku (free plan)
Introduction to Deep Learning (2) --Try your own nonlinear regression with Chainer-
Add your own content view to mitmproxy
SSL certificate related with pip install? Error
PyPi debut I tried to pip install a library to check Japanese holidays
Create your own DNS server with Twisted
How to install DLIB with 2020 / CUDA enabled
`pip install pygraphviz` fails to find graphviz
Create your own Composite Value with SQLAlchemy
I was addicted to pip install mysqlclient
Steps to install Python environment on Ubuntu
[Python] Register your own library on PyPI
Install by specifying the version with pip
scipy stumbles with pip install on python 2.7.8
5 reasons to install Linux on your laptop.
What to do if you can't install with pip in babun environment
Install python on xserver to use pip