Book cover for Publishing Python Packages: Test, share, and automate your projects by Dane Hillard from Manning Books

Publishing Python PackagesTest, share, and automate your projects

by Dane Hillard with foreword by David Beazley

Are you wondering how to publish a Python package in 2024?

The life of a package maintainer can be hard. Beyond writing working code, you have to triage issues, review pull requests, and create releases regularly. Don't let the logistics of package management get in your way.

Publishing Python Packages: Test, share, and automate your projects is a book about creating a streamlined, repeatable process for authoring and maintaining Python packages.

Whether you're looking to create your first published Python package or trying to reduce the maintenance burden of the packages you already work on, Publishing Python Packages: Test, share, and automate your projects has something for you:

  • Create an effective development environment for package authoring.
  • Explore the anatomy of a Python package in depth.
  • Create an automated, continuous integration pipeline for code quality and testing.
  • Publish a Python package to the Python Package Index (PyPI) and learn how to publish packages to private repositories for your organization.

Manning has graciously made some of the book's content available for free, which I hope will help you make a decision to purchase the full text:

Publishing Python Packages is currently being translated into Russian and Simplified Chinese.


Dane Hillard is a second-time author with Manning Books. His first book, Practices of the Python Pro, is translated into several languages and has sold thousands of copies internationally.

To learn the basics of Python packaging, head over to the official Python Packaging User Guide.