Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jcsaaddupuy/docker-pypiserver
pypiserver in a box
https://github.com/jcsaaddupuy/docker-pypiserver
Last synced: 13 days ago
JSON representation
pypiserver in a box
- Host: GitHub
- URL: https://github.com/jcsaaddupuy/docker-pypiserver
- Owner: jcsaaddupuy
- Created: 2014-08-24T01:24:50.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-02-24T10:15:34.000Z (over 8 years ago)
- Last Synced: 2024-08-01T22:54:31.651Z (3 months ago)
- Size: 4.88 KB
- Stars: 23
- Watchers: 3
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
docker-pypiserver
=================pypiserver in a box
*with additions from Fred Thiele *
# Quick start
## Launch the server
mkdir -p /tmp/pypi/packages
docker run -p 8080:8080 -v /tmp/pypi/packages:/data/packages jcsaaddupuy/pypiserver## Default config
The image comes with a default account :
- login : admin
- password : password## Configure setup tools
In ~/.pypirc, add the following content :
[distutils]
index-servers =
internal[internal]
repository: http://127.0.0.1:8080
username: admin
password: password## Upload your first package
```
python setup.py sdist upload -r internal
```You can now browse to [http://localhost:8080/simple](http://localhost:8080/simple)
to browse availables packages# Advanced usage
The image starts with pypi-server as main entry point, configured to use the
.htaccess (see Dockerfile for details). You can pass any pypi-server option when
running the container.See [schmir/pypiserver](https://github.com/schmir/pypiserver) for all availables
options.## Enable package overwriting
Simply pass the _-o_ option :
docker run -p 8080:8080 -v /tmp/pypi/packages:/data/packages jcsaaddupuy/pypiserver -o
## Use custom accounts
First, generate a custom .htaccess file :htpasswd -sc /path/to/config/.htaccess account_name
Then, start the container with the folder containing the config mounted as
/home/pypiserver/config :docker run -p 8080:8080 -v /tmp/pypi/packages:/data/packages -v /path/to/config:/config jcsaaddupuy/pypiserver
## Use with tox
in tox.ini, add your server in the __indexserver__ section :
[tox]
indexserver =
default = https://pypi.python.org/simple
DEV = http://127.0.0.1:8080/simpleYou can then use your own server pypi server to install dependancies, by
prefixing the modulename with the alias given in indexserver (in our case, :DEV:) :[testenv]
deps= :DEV:your_awesome_module