GitHub Release Artifact Downloader and DevPI Uploader
Project description
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
参数
--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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gh_release_devpi-0.1.0-py3-none-any.whl.
File metadata
- Download URL: gh_release_devpi-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
acd6e43d1642487aacdb0421291a3da8c37dc144c3d077b2c8ad48261cbd1dca
|
|
| MD5 |
b6a71304fd901d6a818c3672147c4ad8
|
|
| BLAKE2b-256 |
72926ebf81cffceea0835be7180cf10e42fa4ed100e27ce767ad0d70b629126e
|