PyPI server for serving Python packages out of GitHub.
go get github.com/brettlangdon/pypihub
pypihub -h
usage: pypihub --username USERNAME --access-token ACCESS-TOKEN [--bind BIND] [REPONAMES [REPONAMES ...]]
positional arguments:
reponames list of '<username>/<repo>' repos to proxy for (env: PYPIHUB_REPOS)
options:
--username USERNAME, -u USERNAME
Username of GitHub user to login as (env: PYPIHUB_USERNAME)
--access-token ACCESS-TOKEN, -a ACCESS-TOKEN
GitHub personal access token to use for authenticating (env: PYPIHUB_ACCESS_TOKEN)
--bind BIND, -b BIND [<address>]:<port> to bind the server to (default: ':8287') (env: PYPIHUB_BIND) [default: :8287]
--help, -h display this help and exit
pypihub -u "<username>" -a "<github-access-token>" "brettlangdon/flask-env" "brettlangdon/flask-defer" [... <owner>/<repo>]
export PYPIHUB_USERNAME="<username>"
export PYPIHUB_ACCESS_TOKEN="<github-access-token>""
export PYPIHUB_REPOS="brettlangdon/flask-env brettlangdon/flask-defer [... <owner>/<repo>]"
pypihub
/ - Page containing all links for all projects/assets
--find-links to make all projects accessiblepip install --find-links http://localhost:8287//<owner> - Page containing all links for a given GitHub repo owner
--find-links to make all projects for a given GitHub owner accessiblepip install --find-links http://localhost:8287/brettlangdon/<owner>/<repo> - Page containing all links for a specific GitHub repo
--find-links to make all releases for a specific GitHub repo accessiblepip install --find-links http://localhost:8287/brettlangdon/flask-env/simple - PyPI simple index page
--index-url or --extra-index-urlpip install --extra-index-url http://localhost:8287/simple/simple/<repo> - PyPI simple index project links page
--find-links, but is typically used by pip when using --extra-index-url/simple example above for usagepip install --index-url http://localhost:8287/simple <project>
pip install --extra-index-url http://localhost:8287/simple <project>
pip install --find-links http://localhost:8287/ <project>
pip install --find-links http://localhost:8287/<owner> project
pip install --find-links http://localhost:8287/<owner>/<project> project