Poetry

Creator
Creator
Seonglae ChoSeonglae Cho
Created
Created
2023 Apr 25 15:22
Editor
Edited
Edited
2024 Oct 22 0:30

Poetry atrophies when it gets too far from music.

Install
pipx install poetry brew install poetry pipx upgrade poetry
 
poetry env use 3.10
 
poetry install
 
poertry run python ~.py
activate
poetry shell
 
 

Publish

poetry config pypi-token.pypi
 
 

Local folder

poetry config virtualenvs.in-project true
 
 
Introduction | Documentation | Poetry - Python dependency management and packaging made easy
Introduction Poetry is a tool for dependency management and packaging in Python. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you. Poetry offers a lockfile to ensure repeatable installs, and can build your project for distribution. System requirements Poetry requires Python 3.8+. It is multi-platform and the goal is to make it work equally well on Linux, macOS and Windows.
basic usage
Basic usage | Documentation | Poetry - Python dependency management and packaging made easy
Basic usage For the basic usage introduction we will be installing pendulum, a datetime library. If you have not yet installed Poetry, refer to the Introduction chapter. Project setup First, let’s create our new project, let’s call it poetry-demo: poetry new poetry-demo This will create the poetry-demo directory with the following content: poetry-demo ├── pyproject.toml ├── README.md ├── poetry_demo │ └── __init__.py └── tests └── __init__.py The pyproject.toml file is what is the most important here.
 
 

Recommendations