Python 标准项目实践
Last updated
Last updated
pypa/gh-action-pypi-publish: GitHub Action, for publishing distribution files to PyPI
codecov/codecov-action: GitHub Action that uploads coverage to Codecov
虽然文档说明公开仓库不需要申请申请密钥,但是可能会报错,详见:Error: failed to properly upload
申请 CODECOV_TOKEN
登录 Codecov.io(关联 Github);
查看 Not yet setup
一栏(默认显示 Enabled
),选择需要测试的仓库;
将 CODECOV_TOKEN
添加到 Actions secrets
示例
Quickstart - setuptools 65.3.0.post20220826 documentation
基于
setup.cfg
或pyproject.toml
构建setup.py
gitignore/Python.gitignore at main · github/gitignore
Python .gitignore 文件
yngvem/python-project-structure: A tutorial on how to manage a Python project
标准的 Python 项目结构(偏旧,不再维护)