pger
python package generator
https://packaging.python.org/en/latest/tutorials/packaging-projects
pger 可以做什么
- 新建一个 github python 项目,并集成 github action
- 使能够在推送 tag 时,自动创建 release,并推送 build 的文件到 release assets
- 自动发布到 python package index(https://pypi.org/)
安装
pip install -U pger
# 或
pip install git+https://github.com/foyoux/pger.git
用法
# 获取帮助
pger -h/--help
# 基本用法
pger foyoux/pger
pger foyoux -r pger
pger foyoux --repo foyou-wilk
# 默认 repo 当做主包名,替换 "-" 为 "_" -> src/<repo>/__init__.py,但 repo 允许以非字母开头,但包名不可以
# 此时可指定 -p/--package 选项手动指定主包名
pger -p ticket foyoux/12306
在 Pycharm 中设置 src 为源代码根目录 (右键 src 目录 -> 将目标标记为 -> 源代码根目录)
github config
The example above uses the new API token feature of PyPI, which is recommended to restrict the access the action has.
The secret used in ${{ secrets.PYPI_API_TOKEN }} needs to be created on the settings page of your project on GitHub. See Creating & using secrets
Metadata
Release files for pger 0.0.12
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pger-0.0.12.tar.gz | 7.2 kB | Without provenance | Details for pger-0.0.12.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pger-0.0.12-py3-none-any.whl | Python 3 | none | any | Details for pger-0.0.12-py3-none-any.whl |
Total release size: 16.1 kB
Release files / pger-0.0.12.tar.gz
| Download URL | pger-0.0.12.tar.gz |
|---|---|
| Size | 7.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b61784410f4e770470f566c8d5b8f31eedd5403990e63a93195045dd1d4c740d
|
|
BLAKE2b-256 checksum How to use checksums |
aa086de63ffb1622d17d9c8799fc7d7e46705d07174b04d08dbe3ce15520587e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.2
|
Release files / pger-0.0.12-py3-none-any.whl
| Download URL | pger-0.0.12-py3-none-any.whl |
|---|---|
| Size | 8.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
20ab4e3e60413e0f0745af8fea3b6ed0b3b712b1c3c68a01db59a12483fb0051
|
|
BLAKE2b-256 checksum How to use checksums |
c9481ed85d4169f97b5846c7520c18757759d545a02b5ecfd7beaa0dcba20548
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.2
|
Security for pger 0.0.12
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.