Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/steiza/simplepypi
A really, really, simple HTTP PyPI-like server
https://github.com/steiza/simplepypi
Last synced: 10 days ago
JSON representation
A really, really, simple HTTP PyPI-like server
- Host: GitHub
- URL: https://github.com/steiza/simplepypi
- Owner: steiza
- License: mit
- Created: 2011-06-10T02:24:10.000Z (over 13 years ago)
- Default Branch: main
- Last Pushed: 2024-09-11T14:36:44.000Z (about 2 months ago)
- Last Synced: 2024-10-13T02:43:43.284Z (24 days ago)
- Language: Python
- Homepage:
- Size: 17.6 KB
- Stars: 60
- Watchers: 6
- Forks: 14
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
#### This is a really, really, simple HTTP PyPI-like server.
It is intended to be used for companies or organizations that need a private
PyPi.It literally supports four functions:
- Allows uploading of packages
- Downloading by package (or package and version)
- A / page that is navigatable with a web browser
- /pypi/ listingIt does not support:
- Stopping you from overwriting a package with the same name / version
- Registering packages
- Any sort of ACLsTo use it run "simplepypi". You can upload packages by:
#### Install twine if you haven't already:
pip install twine
#### Build your package if you haven't already:
python setup.py sdist
#### Upload your package using twine:
$ twine upload --repository-url http://127.0.0.1:8000/ dist/*
Uploading distributions to http://127.0.0.1:8000/
Enter your username:
Enter your password:#### Then, when you want to install packages from it you do:
pip install -i http://127.0.0.1:8000/pypi
#### Or, if you're stuck in the stone ages with `setuptools`/`easy_install`:from setuptools import setup
setup(
...
install_requires=[''],
dependency_links=['http://127.0.0.1:8000/packages/'],
)
python setup.py install#### To use the docker image, build and run:
docker build -t simplepypi .
docker run -it -p 8000:8000 simplepypiNot using twine yet? Here is the legacy way of uploading Python packages (not
recommended):#### Modify your ~/.pypirc so it looks like:
[distutils]
index-servers =
pypi
local[local]
username:
password:
repository: http://127.0.0.1:8000[pypi]
...#### Run this on the setup.py of your favorite package:
$ python setup.py sdist upload -r local
And that's it!