Managing Dependencies in Python with Poetry
summary
Demo shows Poetry replaces the virtualenv + pyenv + pip dance: it creates per‑project venvs, writes pyproject.toml and a lockfile, poetry add/remove/export resolves versions and removes transitive deps that are no longer needed, and reproduces installs with the lockfile. A sample project runs on Python 3.9 while the host is 3.11, a packaged wheel is built and successfully published to PyPI, and dependency trees are inspected with poetry show instead of manual pip freeze. poetry publish to PyPI works.
AI-written summary · about
chapters (15)
- 0:00Managing Python dependencies
- 1:07What dependencies are
- 9:18Dependency management concepts
- 16:09Old way with pip
- 22:39Limitations of traditional tools
- 26:13Introducing Poetry
- 27:01New project with Poetry
- 31:32Adding packages with Poetry
- 36:16Poetry advantages
- 36:56Publishing packages with Poetry
- 43:02Python Users Group Cebu
- 44:06Q&A on trends
- 46:35Poetry learning resources
- 47:37Fixing Poetry lock files
- 49:27Final Q&A
related talks
28mPyenv + Poetry: how to manage your Python environments simply
26mDependency Management in Python
26mSecure Modern and Simple Dependency Management with PDM and Friends
36mPipenv: The Future of Python Dependency Management
36mA fresh take on monorepos in Python
28mModern Python packaging without pain
28mBeyond the Benchmark: Why the “Best” Python Dependency Manager Might Not Be Best for You
30mPython Versions and Dependencies Made Easy
