pger


Namepger JSON
Version 0.0.12 PyPI version JSON
download
home_page
Summarypython package generator
upload_time2023-04-03 06:37:35
maintainer
docs_urlNone
author
requires_python>=3.7
license
keywords python package pypi setuptools generator
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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/)

## 安装

```sh
pip install -U pger

# 或

pip install git+https://github.com/foyoux/pger.git
```

## 用法

```sh
# 获取帮助
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](https://pypi.org/help/#apitoken) 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](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets)

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "pger",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "python,package,pypi,setuptools,generator",
    "author": "",
    "author_email": "foyou <yimi.0822@qq.com>",
    "download_url": "https://files.pythonhosted.org/packages/aa/08/6de63ffb1622d17d9c8799fc7d7e46705d07174b04d08dbe3ce15520587e/pger-0.0.12.tar.gz",
    "platform": null,
    "description": "# pger\n\npython package generator\n\n> https://packaging.python.org/en/latest/tutorials/packaging-projects\n>\n> https://setuptools.pypa.io/en/latest\n\n## pger \u53ef\u4ee5\u505a\u4ec0\u4e48\n\n1. \u65b0\u5efa\u4e00\u4e2a github python \u9879\u76ee\uff0c\u5e76\u96c6\u6210 github action\n2. \u4f7f\u80fd\u591f\u5728\u63a8\u9001 tag \u65f6\uff0c\u81ea\u52a8\u521b\u5efa release\uff0c\u5e76\u63a8\u9001 build \u7684\u6587\u4ef6\u5230 release assets\n3. \u81ea\u52a8\u53d1\u5e03\u5230 python package index(https://pypi.org/)\n\n## \u5b89\u88c5\n\n```sh\npip install -U pger\n\n# \u6216\n\npip install git+https://github.com/foyoux/pger.git\n```\n\n## \u7528\u6cd5\n\n```sh\n# \u83b7\u53d6\u5e2e\u52a9\npger -h/--help\n\n# \u57fa\u672c\u7528\u6cd5\npger foyoux/pger\npger foyoux -r pger\npger foyoux --repo foyou-wilk\n\n# \u9ed8\u8ba4 repo \u5f53\u505a\u4e3b\u5305\u540d\uff0c\u66ff\u6362 \"-\" \u4e3a \"_\" -> src/<repo>/__init__.py\uff0c\u4f46 repo \u5141\u8bb8\u4ee5\u975e\u5b57\u6bcd\u5f00\u5934\uff0c\u4f46\u5305\u540d\u4e0d\u53ef\u4ee5\n# \u6b64\u65f6\u53ef\u6307\u5b9a -p/--package \u9009\u9879\u624b\u52a8\u6307\u5b9a\u4e3b\u5305\u540d\npger -p ticket foyoux/12306\n```\n\n> \u5728 Pycharm \u4e2d\u8bbe\u7f6e src \u4e3a\u6e90\u4ee3\u7801\u6839\u76ee\u5f55 \uff08\u53f3\u952e src \u76ee\u5f55 -> \u5c06\u76ee\u6807\u6807\u8bb0\u4e3a -> \u6e90\u4ee3\u7801\u6839\u76ee\u5f55\uff09\n\n## github config\n\n> The example above uses the new [API token](https://pypi.org/help/#apitoken) feature of PyPI, which is recommended to\n> restrict the access the action has.\n>\n> The secret used in ${{ secrets.PYPI_API_TOKEN }} needs to be created on the settings page of your project on GitHub.\n> See [Creating & using secrets](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets)\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "python package generator",
    "version": "0.0.12",
    "split_keywords": [
        "python",
        "package",
        "pypi",
        "setuptools",
        "generator"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c9481ed85d4169f97b5846c7520c18757759d545a02b5ecfd7beaa0dcba20548",
                "md5": "3469fc05849a4404bcd34e25e64715c6",
                "sha256": "20ab4e3e60413e0f0745af8fea3b6ed0b3b712b1c3c68a01db59a12483fb0051"
            },
            "downloads": -1,
            "filename": "pger-0.0.12-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "3469fc05849a4404bcd34e25e64715c6",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 8874,
            "upload_time": "2023-04-03T06:37:33",
            "upload_time_iso_8601": "2023-04-03T06:37:33.683786Z",
            "url": "https://files.pythonhosted.org/packages/c9/48/1ed85d4169f97b5846c7520c18757759d545a02b5ecfd7beaa0dcba20548/pger-0.0.12-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "aa086de63ffb1622d17d9c8799fc7d7e46705d07174b04d08dbe3ce15520587e",
                "md5": "fe981311b9d625290d42d02e2eea9210",
                "sha256": "b61784410f4e770470f566c8d5b8f31eedd5403990e63a93195045dd1d4c740d"
            },
            "downloads": -1,
            "filename": "pger-0.0.12.tar.gz",
            "has_sig": false,
            "md5_digest": "fe981311b9d625290d42d02e2eea9210",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 7176,
            "upload_time": "2023-04-03T06:37:35",
            "upload_time_iso_8601": "2023-04-03T06:37:35.341102Z",
            "url": "https://files.pythonhosted.org/packages/aa/08/6de63ffb1622d17d9c8799fc7d7e46705d07174b04d08dbe3ce15520587e/pger-0.0.12.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-04-03 06:37:35",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "pger"
}
        
Elapsed time: 0.06087s