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

Uploaded Source

Built Distribution

pyevalkit-0.1.2-py3-none-any.whl (22.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyevalkit-0.1.2.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

Hashes for pyevalkit-0.1.2.tar.gz
Algorithm Hash digest
SHA256 c702c4aa8e0dce1251411b530b51c4810854a3a11b05fcc0758caa35684402f2
MD5 8bd28e0a2764e96e4e3b397e04085b4b
BLAKE2b-256 d65a8324c8ec9c931419c1c23cad1ad8afb1df2a1bb7daba07de0603ae7307bf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyevalkit-0.1.2-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

Hashes for pyevalkit-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5ec65cd3d78dcc21ebe72d9f192332175a518613d39082d7cdeb4fd278945a4a
MD5 6ae5f2b427a509d087f1077c2492351e
BLAKE2b-256 6f28abb556106c03272f76283da60dfcff0cc0762fcd85c91fab19b2ed8b0d55

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