Container stuff for the AWS hosted Python Package Index
The packages live in a volume to keep them across container restarts
The pypi server itself is provided by devpi-server.
The upload API endpoint is protected by an htaccess file set within the nginx reverse-proxy.
The passwords are set in the arguments sections of the docker-compose.yml
file.
More documentation available at: https://devpi.net/docs/devpi/devpi/stable/+d/index.html
Note: The usernames, passwords, IPs, and ports given are just examples...
-
Create the builds:
python3 setup.py sdist bdist_wheel
-
Copy all
.whl
and.tar.gz
files into a directory<ULOC>
. -
pip3 install -U devpi-client devpi use https://pypi.tarrenj.com devpi login DevOps --password utest devpi use Dev devpi upload --from-dir <ULOC> devpi logout