0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Poetry備忘録

Last updated at Posted at 2023-05-23

参考

# 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>)
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?