Python 包构建与发布准备

原名:python-pypi-package-builder

整理 Python 包结构、元数据、测试和构建流程,生成可检查的 PyPI 发布产物。

中文 Skills 技能说明

适合内部库或开源包发布前准备。默认只构建和验证本地产物,版本、许可证和依赖必须准确;上传 PyPI、使用令牌或覆盖已有版本属于外部写入,必须单独确认。

上游能力依据

上游原始适用说明:End-to-end skill for building, testing, linting, versioning, and publishing a production-grade Python library to PyPI. Covers all four build backends (setuptools+setuptoolsscm, hatchling, flit, poetry), PEP 440 versioning, semantic versioning, dynamic git-tag versioning, OOP/SOLID design, type hints (PEP 484/526/544/561), Trusted Publishing (OIDC), and the full PyPA packaging flow. Use for: creating Python packages, pip-installable SDKs, CLI tools, framework plugins, pyproject.toml setup, py.typed, setuptoolsscm, semver, mypy, pre-commit, GitHub Actions CI/CD, or PyPI publishing.

上游 SKILL.md 主要章节(保留原文标题):

使用边界

先核对运行环境、账号、区域、依赖和最小权限。创建资源、改配置、发布服务或产生费用前必须让使用者确认。

作者、翻译与许可证

原作者
GitHub, Inc. 与 awesome-copilot contributors
中文翻译
CEOFans翻译
许可证
MIT
上游来源
https://github.com/github/awesome-copilot/tree/3f0bba475ec40b9680e1d0311b9caffeec5ad4c3/skills/python-pypi-package-builder

适用范围

平台:linux、macos、windows;标签:开发运维、Python 包构建与发布准备

安全提示

基础静态扫描不等于绝对安全。技能可能调用命令、浏览器、云服务或本地文件,请在最小权限环境中使用,高风险操作必须人工确认。

如发现侵权、许可证或安全问题,可在本页前台提交投诉,管理员复核后可立即下架。