Skip to main content

Poetry打包并上传到Pypi

# 创建新项目
poetry new <project_name>

# 配置pypi的token
poetry config pypi-token.pypi <pypi_token>

# 构建项目
poetry build

# 构建项目并推送到Pypi
poetry publish --build

Poetry常用命令

# 初始化一个项目,如果不加-n就会询问你项目名和版本之类的
poetry init -n 

#在当前目录建立虚拟环境
poetry init -C . 

# 向 pyproject.toml 添加新的依赖项。等同 pip install flask
poetry add <package>

# 项目打包,然后配合 poetry publish 发布到远程存储库
poetry build 

# 检查当前项目的依赖和环境是否存在问题,每次打包前都要使用一下该指令
poetry check

# 安装项目依赖
poetry install 

# 更新所有依赖到最新版本
poetry update

# 更新指定依赖到最新版本
poetry update <package>

# 锁定依赖版本
poetry lock

# 运行项目,如:poetry run python3 main.py
poetry run 

Metadata

Release files for pyevalkit 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyevalkit 0.1.3
File Size Uploaded Provenance Actions
pyevalkit-0.1.3.tar.gz 51.0 kB Without provenance Details for pyevalkit-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyevalkit 0.1.3
File Interpreter ABI Platform Actions
pyevalkit-0.1.3-py3-none-any.whl Python 3 none any Details for pyevalkit-0.1.3-py3-none-any.whl

Total release size: 73.4 kB

Release files / pyevalkit-0.1.3.tar.gz

Download URL pyevalkit-0.1.3.tar.gz
Size 51.0 kB
Tags Source
SHA-256 checksum
How to use checksums
8f9f7e48b21d5bd90da8600d2f90ba82249c33585fb2c260831a974c323eb44f
BLAKE2b-256 checksum
How to use checksums
70c508d704d00e1bb992bd6e9410be14afc7817fa8a05dbce46e31b935905906
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.0 Darwin/23.5.0

Release files / pyevalkit-0.1.3-py3-none-any.whl

Download URL pyevalkit-0.1.3-py3-none-any.whl
Size 22.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3d84e1b355eed04ec03f230066f888724f71ab867d53ce630fa15416c3cf3c96
BLAKE2b-256 checksum
How to use checksums
2a091c4dfdc1b7be87186d8f890ddb39016b933af24530bd8b80bed5bc7e3e54
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.0 Darwin/23.5.0

Security for pyevalkit 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page