9 Making a package evergreen

This chapter covers

  • Choosing a versioning strategy for your package releases
  • Automating dependency updates with GitHub’s Dependabot
  • Setting test coverage thresholds
  • Upgrading your Python syntax using pyupgrade
  • Reducing rework using pre-commit hooks

In previous chapters, you successfully built a package locally and then published it so developers at all your client companies could benefit from all your hard work. You might imagine at this point that you’ve done most of the work, but releasing a project is often just the beginning for many developers. After people start using your package, new and broken use cases start to surface. A popular open source project might turn into a years-long endeavor.

Even when the ...

Get Publishing Python Packages now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.