Skip to content
Pants Has Got Your Python Monorepo Covered episode artwork

Nov 23, 2020 51 min

Pants Has Got Your Python Monorepo Covered

from The Python Podcast.__init__ Hosted by Tobias Macey

Summary In a software project writing code is just one step of the overall lifecycle. There are many repetitive steps such as linting, running tests, and packaging that need to be run for each project that you maintain. In order to reduce the overhead of these repeat tasks, and to simplify the process of integrating code across multiple systems the use of monorepos has been growing in popularity. The Pants build tool is purpose built for addressing all of the drudgery and for working with monorepos of all sizes. In this episode core maintainers Eric Arellano and Stu Hood explain how the Pants project works, the benefits of automatic dependency inference, and how you can start using it in your own projects today. They also share useful tips for how to organize your projects, and how the plugin oriented architecture adds flexibility for you to customize Pants to your specific needs. Announcements Hello and welcome to Podcast.__init__, the podcast about Python and the people who make it great. When you’re ready to launch your next app or want to try a project you hear about on the show, you’ll need somewhere to deploy it, so take a look at our friends over at Linode. With the launch of their managed Kubernetes platform it’s easy to get started with the next generation of deployment and scaling, powered by the battle tested Linode platform, including simple pricing, node balancers, 40Gbit networking, dedicated CPU and GPU instances, and worldwide data centers. Go to pythonpodcast.com/linode and get a $100 credit to try out a Kubernetes cluster of your own. And don’t forget to thank them for their continued support of this show! Python has become the default language for working with data, whether as a data scientist, data engineer, data analyst, or machine learning engineer. Springboard has launched their School of Data to help you get a career in the field through a comprehensive set of programs that are 100% online and tailored to fit your busy schedule. With a network of expert mentors who are available to coach you during weekly 1:1 video calls, a tuition-back guarantee that means you don’t pay until you get a job, resume preparation, and interview assistance there’s no reason to wait. Springboard is offering up to 20 scholarships of $500 towards the tuition cost, exclusively to listeners of this show. Go to pythonpodcast.com/springboard today to learn more and give your career a boost to the next level. Feature flagging is a simple concept that enables you to ship faster, test in production, and do easy rollbacks without redeploying code. Teams using feature flags release new software with less risk, and release more often. ConfigCat is a feature flag service that lets you easily add flags to your Python code, and 9 other platforms. By adopting ConfigCat you and your manager can track and toggle your feature flags from their visual dashboard without redeploying any code or configuration, including granular targeting rules. You can roll out new features to a subset or your users for beta testing or canary deployments. With their simple API, clear documentation, and pricing that is independent of your team size you can get your first feature flags added in minutes without breaking the bank. Your host as usual is Tobias Macey and today I’m interviewing Eric Arellano and Stu Hood about Pants, a flexible build system that works well with monorepos. Interview Introductions How did you get introduced to Python? Can you start by describing what Pants is and how it got started? What’s the story behind the name? What is a monorepo and why might I want one? What are the challenges caused by working with a monorepo? Why are monorepos so uncommon in Python projects? What is the workflow for a developer or team who is managing a project with Pants? How does Pants integrate with the broader ecosystem of Python tools for dependency management and packaging (e.g. Poetry, Pip, pip-tools, Flit, Twine, Pex, Shiv, etc.)? What is involved in setting up Pants for working with a new Python project? What complications might developers encounter when trying to implement Pants in an existing project? How is Pants itself implemented? How have the design, goals, or architecture evolved since Pants was first created? What are the major changes in the v2 release? What was the motivation for the major overhaul of the project? How do you recommend developers lay out their projects to work well with Python? How can I handle code shared between different modules or packages, and reducing the third party dependencies that are built into the respective packages? What are some of the most interesting, unexpected, or innovative ways that you have seen Pants used? What have you found to be the most interesting, unexpected, or challenging aspects of working on Pants? What are the cases where Pants is the wrong choice? What do you have planned for the future of the pants project? Keep In Touch Eric LinkedIn Eric-Arellano on GitHub @EArellanoAZ on Twitter Stu stuhood on GitHub @stuhood on Twitter LinkedIn Picks Tobias Cursed TV show Eric Turtle Graphics Stu Faster Than Lime blog Links Pants Foursquare Twitter Toolchain Bazel build tool Ant build tool Monorepo isort Tox Poetry distutils setuptools mypy Bandit Flake8 Sample Python Pants Project gRPC Protocol Buffers Rust GIL == Global Interpreter Lock PEP 420 Blog post about using Pants to migrate from Python 2 to 3 Pex Shiv PyOxidizer The intro and outro music is from Requiem for a Fish The Freak Fandango Orchestra / CC BY-SA

Episode details come from the podcast's RSS feed.

Embed this episode

Ready to play

Pants Has Got Your Python Monorepo Covered

0:00 51:39

Chapters

  1. 0:13 Introduction and Sponsor Messages
  2. 1:50 Interview with Eric Arellano and Stu Hood
  3. 3:00 Eric's Introduction to Python
  4. 4:01 Stu's Introduction to Python
  5. 4:37 Overview of the Pants Project
  6. 6:14 Benefits of Monorepos
  7. 9:24 Challenges of Monorepos
  8. 11:25 Using Pants for Build Tooling
  9. 14:02 Workflow for Setting Up Pants
  10. 16:04 Integration with Existing Projects
  11. 17:28 Pants v2 and Plugin API
  12. 18:10 Building Pants and Design Evolution
  13. 21:59 Rust Engine and Python Integration
  14. 23:10 Dropping Support for Other Languages
  15. 24:54 Structuring Monorepos in Python
  16. 28:40 Defining Dependencies and Managing Subprojects
  17. 33:14 Adopting Pants and Common Issues
  18. 34:20 Innovative Uses of Pants
  19. 36:06 Lessons Learned from Building Pants
  20. 38:38 When Pants is the Wrong Choice
  21. 39:59 Deploying with Pants
  22. 41:29 Future Plans for Pants
  23. 44:21 Benefits of Monorepos
  24. 47:01 Multi-language Support in Monorepos
  25. 48:27 Contact Information and Picks

No transcript yet.

Requests help us decide what to transcribe next.

Frequently asked questions

How long is this episode of The Python Podcast.__init__?

This episode is 51 minutes long.

When was this The Python Podcast.__init__ episode published?

This episode was published on November 23, 2020.

Is there a transcript available for this episode?

Yes, a full transcript is available for this episode. You can read the complete transcript on the episode page.

Can I download this The Python Podcast.__init__ episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.