📜

Poetry Dependency Manager

Verified

by Community

Master Poetry for Python dependency management and packaging. Covers project creation, dependency specification, virtual environment management, lock files, publishing packages, and monorepo strategies with Poetry workspaces.

poetrydependenciespackagingpythonvirtual-env

Poetry Dependency Manager

A guide to managing Python projects, dependencies, and virtual environments with Poetry's modern toolchain.

Usage

Ask about Poetry setup, dependency management, packaging, or publishing Python packages.

Examples

  • "Set up a new Python project with Poetry"
  • "How do I manage development dependencies separately?"
  • "Publish a package to PyPI with Poetry"

Guidelines

  • Always commit poetry.lock for reproducible installs
  • Use dependency groups for separating dev and prod dependencies
  • Pin direct dependencies and let Poetry resolve transitive ones
  • Use poetry run for executing commands in the virtual environment
  • Configure Poetry to create virtual environments in-project