pypi-on-github-indexer
This script creates or updates a PyPI index as defined by PEP 503 that lives in a git repository using git+https urls that are supported by pip (see https://pip.pypa.io/en/stable/reference/pip_install/#git).
Usage
This script is meant to be run in the git repository of the package that you want to index. Let's pick a case:
- You have an package index in https://github.com/user/python-package-index that you serve via GH pages with your documents under
docs - You want to add a version
0.1.0of yourfoo-barpackage, that lives in https://github.com/user/foo-bar repository
The following command
python3 -m pypi_on_github_indexer \
--signature "Name Surname <name@domain.com>" \
--github-token XXXXXXXX \
--index-name user/python-package-index \
--repo-url https://github.com/user/foo-bar
--repo-tag v0.1.0
will parse repo's setup.py to find the package version, the package name and the minimum python version to add a commit in the repository containing the index with the following index line
<a href="git+https://github.com/src-d/foo-bar@v0.1.0#egg=foo-bar-0.1.0" data-requires-python=">=3.5">foo-bar-0.1.0</a><br/>
Specifying the repository tag is mandatory, and the tag name is checked against the package version to avoid inconsistencies.
See --help for the full list of command's options.
Metadata
Release files for pypi-on-github-indexer 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pypi_on_github_indexer-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Release files / pypi_on_github_indexer-0.1.1-py3-none-any.whl
| Download URL | pypi_on_github_indexer-0.1.1-py3-none-any.whl |
|---|---|
| Size | 9.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e8fd824109d64ed87dfaa695de15b500354acc9c6b64b992b9e6f280a8c093b8
|
|
BLAKE2b-256 checksum How to use checksums |
8372ad423848958f88f24b7daa5000001617c222d25fadaa40513a498c2ce5fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.7
|