PyConDE 2018: "Python Dependency Management" by Patrick Muehlbauer


python setup.py sdist

Upload to PyPI

python setup.py upload

Use virtualenv to have isolated versions of different packages.

Lots of tools

  • pip-tools
  • Bento
  • poetry
  • Pants/pex
  • hatch
  • conda
  • flit
  • Pipenv

pip-tools

  • pip-compile
  • pip-sync

poetry

hatch

  • simplifies development workflow
  • has a feachure to start a project
  • hatch install
  • can execute tests with hatch test
  • hatch grow
  • to upload to PyPI hatch release

Pipenv

use Pipfile and Pipfile.lock