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 evlatools 0.1.21
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| evlatools-0.1.21.tar.gz | 43.5 kB | Without provenance | Details for evlatools-0.1.21.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| evlatools-0.1.21-py3-none-any.whl | Python 3 | none | any | Details for evlatools-0.1.21-py3-none-any.whl |
Total release size: 62.7 kB
Release files / evlatools-0.1.21.tar.gz
| Download URL | evlatools-0.1.21.tar.gz |
|---|---|
| Size | 43.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a33af3a1156a06ca40a462fd0f0c441b9b7d0a34ae860b9c8f6306239870d287
|
|
BLAKE2b-256 checksum How to use checksums |
a9db71e33f6d8e20e1797f78c822cbea4efc0f10eb69e74a4b6065690086288a
|
| 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 / evlatools-0.1.21-py3-none-any.whl
| Download URL | evlatools-0.1.21-py3-none-any.whl |
|---|---|
| Size | 19.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4d6e7ec9ca2b36e0c064d5ee491506a8d581fc1a91da46d860ff8d30a8b135aa
|
|
BLAKE2b-256 checksum How to use checksums |
6fc6fa8e74ff7bfd5938022d45c8d0f5ea711a87dc661916f248e7592ba14c82
|
| 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 evlatools 0.1.21
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.