Skip to main content

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.0.tar.gz (43.0 kB view details)

Uploaded Source

Built Distribution

pyevalkit-0.1.0-py3-none-any.whl (19.1 kB view details)

Uploaded Python 3

File details

Details for the file pyevalkit-0.1.0.tar.gz.

File metadata

  • Download URL: pyevalkit-0.1.0.tar.gz
  • Upload date:
  • Size: 43.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

Hashes for pyevalkit-0.1.0.tar.gz
Algorithm Hash digest
SHA256 91951b4f33ff26e06c180a8b239694562ca034caa1776e4f148dd54ee32fee06
MD5 3690fe913d8bc55f3a301871909bc258
BLAKE2b-256 4072405149234539b41d6d028d1ec7a9675902833a1342fbd52365054ee02fec

See more details on using hashes here.

File details

Details for the file pyevalkit-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pyevalkit-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 19.1 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

Hashes for pyevalkit-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cbbbd7f455218f2f3fdac5c29e39e9f6fa37411232ad6fc4e5d18bc87b2af902
MD5 d83c858b6bb3b740a6b5c926cb36e1e8
BLAKE2b-256 58e3934d850d51ceb8594b10cd759edc3286b902166aa4b9798b12fcf22bb14b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page