Create a local pypi repository

What I wanted to do

I want to create a local repository server for pypi. I tried it because it seems to be easy to make with a package called pypiserver.

What i did

Install & start pypiserver

I tried it on CentOS7.

# pip install pypiserver
# mkdir ~/pypi_pkg
# nohup pypi-server -p 8080 ~/pypi_pkg &

Now, if you put the package file in tar or .whl in the ~ / pypi_pkg directory, you can publish it athttp: // <ipaddress>: 8080 / simple /. Even if you put multiple versions in the directory, it will be published like pypi. Of course, it can also be run on other WSGI servers such as gunicorn and Apache.

When using If it is not https, an error will occur, so add the --trusted-host option.

# pip install --trusted-host <ipaddress> --extra-index-url http://<ipaddress>:8080/simple/ <package_name>
# pip install --trusted-host <ipaddress>  --index-url http://<ipaddress>:8080/simple/ <package_name>

According to the documentation, you can also upload and operate packages. (unconfirmed)

reference

Recommended Posts

Create a local pypi repository
How to create a local repository for Linux OS
How to create a repository from media
Create a private repository with AWS CodeArtifact
Create a Django schedule
Create a Python module
Create a Bootable LV
Create a Python environment
Create a slack bot
Create a Wox plugin (Python)
Create a function in Python
Create a dictionary in Python
Create a local scope in Python without polluting the namespace
[Python, shell script, team development] Create a nifty Git repository
Create a (simple) REST server
Create a homepage with django
Create a python numpy array
Create a dummy data file
Create a Django login screen
Create a heatmap with pyqtgraph
Create a classroom on Jupyterhub
Create a simple textlint server
Create a directory with python
Create a rudimentary ELF packer
Create a CSV reader in Flask
Create a python GUI using tkinter
Create a DI Container in Python
Steps to create a Django project
Create a pandas Dataframe from a string.
Create a Python environment on Mac (2017/4)
Create a nested dictionary using defaultdict
How to create a Conda package
Create a virtual environment with Python!
Create a binary file in Python
How to create a virtual bridge
Create a SlackBot service on Pepper
Create a Linux environment on Windows 10
Create a python environment on centos
How to create a Dockerfile (basic)
Create a Unix Domain Socket server
Create a 1MByte random number file
Create a Python general-purpose decorator framework
Create a Kubernetes Operator in Python
5 Ways to Create a Python Chatbot
Create a CRUD API using FastAPI
Create a poisson stepper with numpy.random
Register as a package on PyPI
Create a random string in Python
How to create a config file
Create a C wrapper using Boost.Python
Create a file uploader with Django
Create a LINE Bot in Django
[Can be done in 10 minutes] Create a local website quickly with Django