gh-release-devpi
从 GitHub Release 下载构建产物并上传到 DevPI 服务器的命令行工具。
安装
pip install gh-release-devpi
使用
环境变量
创建 .env 文件:
GITHUB_PAT=your_github_personal_access_token
GITHUB_REPO=owner/repo
DEVPI_PASSWORD=your_devpi_password
命令
下载最新 release 的所有 artifacts 并上传到 DevPI:
gh-release-devpi download
仅下载不上传:
gh-release-devpi download --skip-upload
指定参数:
gh-release-devpi download \
--repo owner/repo \
--token ghp_xxx \
--output ./dist \
--devpi-password xxx
独立上传命令
将本地目录中的 Python 包上传到 DevPI:
# 设置环境变量
export DEVPI_SERVER="http://devpi.example.com"
export DEVPI_PASSWORD="your_password"
# 使用默认目录 ./artifacts
gh-release-devpi upload
# 指定目录
gh-release-devpi upload ./dist
上传命令环境变量:
DEVPI_SERVER: DevPI 服务器地址 (必需)DEVPI_PASSWORD: DevPI 密码 (必需)DEVPI_USER: DevPI 用户名 (默认: root)DEVPI_INDEX: DevPI 索引名称 (默认: dev)DEVPI_USE_PROXY: 是否使用代理 (默认: false)
参数
--repo,-r: GitHub 仓库 (格式:owner/repo)--token,-t: GitHub Personal Access Token--output,-o: 下载目录 (默认:artifacts)--devpi-password,-p: DevPI 密码--skip-upload: 跳过上传到 DevPI
开发
# 安装依赖
pip install -e .
# 运行
python -m gh_release_devpi.main download
Metadata
Release files for gh-release-devpi 0.1.4
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 | Actions Reset |
|---|---|---|---|---|
| gh_release_devpi-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for gh_release_devpi-0.1.4-py3-none-any.whl |
Release files / gh_release_devpi-0.1.4-py3-none-any.whl
| Download URL | gh_release_devpi-0.1.4-py3-none-any.whl |
|---|---|
| Size | 8.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8f6feb9f0ba2f525824fad8c03d2c87cda4a368827c1462993dcda201fd2f09e
|
|
BLAKE2b-256 checksum How to use checksums |
459c2591d94ff6d1552f678cc7472fa23f4a2bb02876da0ae8c126db799e57f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.5
|
Security for gh-release-devpi 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.