Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python包发布的注意事项 #13

Open
Guo-Zhang opened this issue Dec 18, 2023 · 0 comments
Open

Python包发布的注意事项 #13

Guo-Zhang opened this issue Dec 18, 2023 · 0 comments

Comments

@Guo-Zhang
Copy link
Member

  1. pyproject.toml按格式填 ,如果不清楚就查阅poetry文档。PyPI的版本号是pyproject.toml的版本好,因此注意保持这个版本号和GitHub release的版本号一致。
  2. main.py的入口格式根据实际计划以及typer文档修改。
  3. .github/poetry-publish.yml,需要给配置个密钥PYPI_API_TOKEN到仓库密钥里。正式发布之前建议发几个预发布版本,验证流水线以及发布以后的包的可用性。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant