Skip to main content

python package generator

Project description

pger

python package generator

https://packaging.python.org/en/latest/tutorials/packaging-projects

https://setuptools.pypa.io/en/latest

pger 可以做什么

  1. 新建一个 github python 项目,并集成 github action
  2. 使能够在推送 tag 时,自动创建 release,并推送 build 的文件到 release assets
  3. 自动发布到 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


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.8.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

pger-0.0.8-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file pger-0.0.8.tar.gz.

File metadata

  • Download URL: pger-0.0.8.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.2

File hashes

Hashes for pger-0.0.8.tar.gz
Algorithm Hash digest
SHA256 26b09f1c5baabb4219658b0728bdf30fa3fbb1206298d5e7abe4accb3515a794
MD5 1687284abc8b1628d704b770daea5d53
BLAKE2b-256 d421ed6da7c633ef61ceebf93f261f280f5878d7119749af195cf4cfa19100f5

See more details on using hashes here.

Provenance

File details

Details for the file pger-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: pger-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.2

File hashes

Hashes for pger-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 bdc965410e3433049ab0c69f91deaae9a9a516dd607df7f2ab9d0508663c43cf
MD5 c5bb6a99ba967e91eadebfeb029d7699
BLAKE2b-256 eadfff848f41c8cda0f7a5e7687cdc14f97e0739bb8e9774312c95c986749f2b

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page