No project description provided
Project description
Poetry常用命令
# 创建项目
poetry new evlatools
# 构建项目
poetry build
# 配置Pypi的Token
poetry config pypi-token.pypi ${Pypi的Token}
# 推送项目到Pypi
poetry publish
# 向 pyproject.toml 添加依赖项,等同 pip install flask
poetry add name
常用命令样例
poetry init -n 初始化一个项目,如果不加-n就会询问你项目名和版本之类的 poetry init -C . #在当前目录建立 poetry -v 或 -vv 或 -vvv 用法:主要是输出的信息v越多,输出的调试信息越多,有点类似于logger等级 poetry add 向 pyproject.toml 添加新的依赖项。等同 pip install flask poetry add flask --group=test #添加分组名.名字为test poetry add flask --dev #添加相当于--group=dev poetry build 把项目打包。然后配合 poetry publish 发布到远程存储库 poetry check 命令用于检查当前项目的依赖和环境是否存在问题,每次打包前都要使用一下该指令 poetry config 管理配置设置,这个比较关键,详细讲解
poetry update 更新 Poetry 到最新版本。 poetry lock 锁定 Poetry 安装的系统要求。 poetry run 在适当的环境中运行命令,这样就不需要进入虚拟环境中运行程序
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file evlatools-0.1.4.tar.gz
.
File metadata
- Download URL: evlatools-0.1.4.tar.gz
- Upload date:
- Size: 44.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.0 Darwin/23.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7b90eafa3b6b4741947274601f4022e6761293aff154c8ecf3c2061b45a76bd |
|
MD5 | 9fd41f63f591bee646de9af91facab39 |
|
BLAKE2b-256 | c1b9b7f3c13e2c1f5c80cc7880d426981701b2ff3a2e2a7bf48ee36113b437a6 |
File details
Details for the file evlatools-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: evlatools-0.1.4-py3-none-any.whl
- Upload date:
- Size: 20.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.0 Darwin/23.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8620b23b2ba18506348c7ce3a20dcb2b9cd68b1e816dc1356e527c7f0fd0c22 |
|
MD5 | 0244d24d36ab95a796c2298e82e79525 |
|
BLAKE2b-256 | c3a7e5d5f64a3db2b118e42a8d430874c4dcab78b606c3d732b76e85afd3ac9c |