Skip to content

Course

Python Packaging & Distribution

Ship Python libraries the way production teams do — pyproject.toml, build backends, versioning, dependency strategy, PyPI publishing, and monorepo layouts that stay maintainable.

9 lessons

Course Q&A

Reviews

Enrolled members can rate this course.

No reviews yet.

Packaging Foundations

The modern packaging mental model: distributions, metadata, pyproject.toml, and build backends.

  1. 01What You Actually Ship: sdists, Wheels, and MetadataThe difference between source trees, sdists, and wheels — and why understanding the artifact saves you hours of dependency debugging.20mOpen
  2. 02pyproject.toml That ScalesWhat belongs in pyproject.toml, how optional dependencies and entry points work, and the metadata mistakes that cause real-world breakage.22mOpen
  3. 03Build Backends and the src LayoutHow setuptools, hatchling, flit, and poetry-core differ — and how the src layout prevents the oldest packaging bug in Python.20mOpen

Versions and Dependencies

Versioning, release discipline, dependency pinning, lockfiles, and upgrade strategy.

  1. 01Semantic Versioning in PracticeWhat SemVer promises, how Python pre-releases work, and the breaking changes maintainers ship by accident.18mOpen
  2. 02Dependency Specifiers: Ranges, Markers, and Upper BoundsHow to write dependency constraints that protect users without freezing them in the past.22mOpen
  3. 03Lockfiles, Applications, and ReproducibilityWhy libraries shouldn't ship lockfiles, why applications must, and how hashes and constraints files fit into production deployment.24mOpen

Publishing at Scale

Publishing to PyPI safely, private indexes, and monorepo layouts for serious teams.

  1. 01Publishing to PyPI SafelyBuild, inspect, test on TestPyPI, then publish with trusted publishing and release automation that doesn't depend on a maintainer's laptop.24mOpen
  2. 02Private Indexes and Supply-Chain ControlsHow to run or consume a private package index without creating dependency-confusion holes.22mOpen
  3. 03Python Monorepo Layouts That Don't CollapseWorkspace-style Python monorepos: independent distributions, path dependencies, versioning strategy, and CI that tests the blast radius.28mOpen