
Publishing Python Packages
Dane Hillard(Author)
Manning Publications (Publisher)
Published on 12. January 2023
Book
Paperback/Softback
275 pages
978-1-61729-991-9 (ISBN)
Description
Create Python packages to share your code in a scalable and maintainable way. Improve team productivity, publish helpful libraries, or even start your own open source project following the latest Python packaging standards.
In Publishing Python Packages you will learn how to:
Build extensions and console script commands
Use tox to automate packaging, installing, and testing
Build a continuous integration pipeline using GitHub Actions
Improve code quality and reduce manual review using bandit, black, mypy, and radon
Create published documentation for your packages
Keep packages up to date with pyupgrade and Dependabot
Foster an open source community using GitHub features
Publishing Python Packages teaches you how to easily share your Python code with your team and the outside world. Learn a repeatable and highly automated process for package maintenance that's based on the best practices, tools, and standards of Python packaging. Whether you're entirely new to Python packaging or looking for optimal ways to maintain and scale your packages, this fast-paced and engaging guide is for you. about the technology Python packages are a great way to share your code and give a productivity boost to your colleagues and community. Whether you're reusing your code internally or contributing to open source, a properly automated system of packaging will save you from time-consuming manual maintenance. about the book Publishing Python Packages reveals best practices and standards for packaging your Python code in an easy, automated, and scalable way. The book walks you through creating a complete package, including a C extension, and guides you all the way to publishing on the Python Package Index. You'll get hands-on experience with the latest packaging tools, and learn the ins-and-outs of package testing and continuous integration. You'll even learn how to set up a successful open source project, including licensing, documentation, and nurturing a community of contributors.
In Publishing Python Packages you will learn how to:
Build extensions and console script commands
Use tox to automate packaging, installing, and testing
Build a continuous integration pipeline using GitHub Actions
Improve code quality and reduce manual review using bandit, black, mypy, and radon
Create published documentation for your packages
Keep packages up to date with pyupgrade and Dependabot
Foster an open source community using GitHub features
Publishing Python Packages teaches you how to easily share your Python code with your team and the outside world. Learn a repeatable and highly automated process for package maintenance that's based on the best practices, tools, and standards of Python packaging. Whether you're entirely new to Python packaging or looking for optimal ways to maintain and scale your packages, this fast-paced and engaging guide is for you. about the technology Python packages are a great way to share your code and give a productivity boost to your colleagues and community. Whether you're reusing your code internally or contributing to open source, a properly automated system of packaging will save you from time-consuming manual maintenance. about the book Publishing Python Packages reveals best practices and standards for packaging your Python code in an easy, automated, and scalable way. The book walks you through creating a complete package, including a C extension, and guides you all the way to publishing on the Python Package Index. You'll get hands-on experience with the latest packaging tools, and learn the ins-and-outs of package testing and continuous integration. You'll even learn how to set up a successful open source project, including licensing, documentation, and nurturing a community of contributors.
Reviews / Votes
'Takes you through the understanding of what packaging is into all the details of how it works and demonstrates each step with a clear example. I learned a lot.' Mike Baran'Narrative is succinct and convincing. The ideas and principles, covered in the book come from the author's deep expertise.' Kevin Etienne
'The type of gem you would expect to see many books about.' Jose Apablaza
'This book definitely occupies an unfilled need.' Eric Chiang
More details
Language
English
Place of publication
New York
United States
Target group
Professional and scholarly
Dimensions
Height: 235 mm
Width: 182 mm
Thickness: 14 mm
Weight
448 gr
ISBN-13
978-1-61729-991-9 (9781617299919)
Copyright in bibliographic data and cover images is held by Nielsen Book Services Limited or by the publishers or by their respective licensors: all rights reserved.
Schweitzer Classification
Person
Dane Hillard has spent the majority of his development career using Python to build web applications.
Content
table of contents PART 1: FOUNDATIONS READ IN LIVEBOOK 1THE WHAT AND WHY OF PYTHON PACKAGES READ IN LIVEBOOK 2PREPARING FOR PACKAGE DEVELOPMENT READ IN LIVEBOOK 3THE ANATOMY OF A MINIMAL PYTHON PACKAGE PART 2: CREATING A VIABLE PACKAGE READ IN LIVEBOOK 4HANDLING PACKAGE DEPENDENCIES, ENTRY POINTS, AND EXTENSIONS READ IN LIVEBOOK 5BUILDING AND MAINTAINING A TEST SUITE READ IN LIVEBOOK 6AUTOMATING CODE QUALITY TOOLING PART 3: GOING PUBLIC 7 AUTOMATING WORK THROUGH CONTINUOUS INTEGRATION 8 AUTHORING AND MAINTAINING DOCUMENTATION 9 MAKING A PACKAGE EVERGREEN PART 4: THE LONG HAUL 10 CREATING A REPEATABLE PROCESS 11 BUILDING AN OPEN SOURCE COMMUNITY APPENDIXES READ IN LIVEBOOK APPENDIX A: INSTALLING ASDF AND PYTHON-LAUNCHER READ IN LIVEBOOK APPENDIX B: INSTALLING PIPX, BUILD, AND TOX