# Poetry install
$ curl -sSL https://install.python-poetry.org | python3 -
# Set the virtual env path to under the project directory
$ poetry config virtualenvs.in-project true --local
# Check the setup
$ poetry config --list
# Add pyproject.toml to an existing project
$ poetry init
# Add packages to Poetry
$ poetry add <Package name>
$ poetry add --group <Group name> <Package name>
# Install packages described in poetry.lock
$ poetry install
# Sanity check of pyproject.toml
$ poetry check
# Check the environment of poetry
$ poetry env info
# Build the package in PyPI
$ poetry build
$ poetry publish (-r <Repository name>)
More than 1 year has passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme