python package generator
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pger-0.0.10.tar.gz
(7.2 kB
view details)
Built Distribution
pger-0.0.10-py3-none-any.whl
(8.8 kB
view details)
File details
Details for the file pger-0.0.10.tar.gz
.
File metadata
- Download URL: pger-0.0.10.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f0b2ca3d76ede79ef9033b61267557e81655b0581c88e8d7d450cd194ec92ef |
|
MD5 | 3cafa0c3c2f9a1aad9cc893d03263c00 |
|
BLAKE2b-256 | 65d7d2307cde546e8d5ac2d3fb76f79c2e8fe765f8465e3f10ec66c7ccaef984 |
Provenance
File details
Details for the file pger-0.0.10-py3-none-any.whl
.
File metadata
- Download URL: pger-0.0.10-py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54e6dfab8f7b1bffb844824073a7d6591b926285365e71620cca93145bebf56f |
|
MD5 | ba21595c8788696ce1b49414fd7cc6c8 |
|
BLAKE2b-256 | 94cf405e86dbf9651dfd913aa7ea591e3596f755728e8e79841065c307a3d94b |