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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyevalkit-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 a5e2f87d026bff66793052c82e2bdee949effb413f1a43e78df9691ba2b8d863
MD5 eb8a433a55be89cedcee0fb361263880
BLAKE2b-256 abf1aab56ede57f83e5bf577663e34bd9193a259d69af2d0596f59ff2dca0c20

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyevalkit-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6bbd85a4466264c5784997d8fdf6b4921678c156c7226a3366ec5b12f748d59d
MD5 11e50d3e9a7a44166ed1e5e42b27deda
BLAKE2b-256 93b46c57c2ac9bb4de73af848f39279c8959721dde943007704150947eb34013

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