Home Blog CV Projects Patterns Notes Book Colophon Search

Python Poetry

21 Sep, 2023

I'm just starting to learn Python's Poetry package manager.

You can install it on macOS like this:

brew install poetry

Then start a project:

poetry new <project_name>
cd <project_name>
git init
git add *

Enter your Poetry shell and add some dev dependencies:

poetry shell
poetry add --group=dev black isort autoflake
git add poetry.lock
git add -p

Poetry maintains your pyproject.toml file for you.

I'm keeping an eye on https://github.com/python-poetry/poetry/issues/6035.

Comments

Be the first to comment.

Add Comment





Copyright James Gardner 1996-2020 All Rights Reserved. Admin.