No project description provided
Project description
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyevalkit-0.1.3.tar.gz
(51.0 kB
view details)
Built Distribution
pyevalkit-0.1.3-py3-none-any.whl
(22.4 kB
view details)
File details
Details for the file pyevalkit-0.1.3.tar.gz
.
File metadata
- Download URL: pyevalkit-0.1.3.tar.gz
- Upload date:
- Size: 51.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.0 Darwin/23.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f9f7e48b21d5bd90da8600d2f90ba82249c33585fb2c260831a974c323eb44f |
|
MD5 | 14cb0bc7525f829f1c8a68ffe7997996 |
|
BLAKE2b-256 | 70c508d704d00e1bb992bd6e9410be14afc7817fa8a05dbce46e31b935905906 |
File details
Details for the file pyevalkit-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: pyevalkit-0.1.3-py3-none-any.whl
- Upload date:
- Size: 22.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.0 Darwin/23.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d84e1b355eed04ec03f230066f888724f71ab867d53ce630fa15416c3cf3c96 |
|
MD5 | ca2b7c7388a53dbdf25690708d18814a |
|
BLAKE2b-256 | 2a091c4dfdc1b7be87186d8f890ddb39016b933af24530bd8b80bed5bc7e3e54 |