Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Less Known Packaging Features and Tricks

EuroPython Conference via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Discover less-known packaging features and tricks in this conference talk from EuroPython 2015. Explore patterns and tricks for setup.py, obscure features of pip, setuptools, virtualenv, and Python to improve your packaging experience, and learn about emerging alternative tools. Delve into topics such as file gathering for sdist, proper usage of MANIFEST.in, handling data_files, managing dependencies, environment markers, and coverage for C extensions. Gain insights on packaging applications, uploading packages, and avoiding common pitfalls in the Python packaging ecosystem.

Syllabus

Intro
What's going on in a setup.py? It's a really nasty archiver There are a bunch of options from distutils
Setting the record straight Mandatory clarifications: packages vs distributions
Types of archives
File gathering: sdist
Inside setup.py: packages (2)
Advices for MANIFEST.in
Inside setup.py: data_files
A quick interlude: applications If you really need data_files you are probably trying to package an application. - Use a specialized package likes
A quick interlude: dependencies
Importing code in setup.py Don't do this
Optional dependencies
A quick interlude: Tox
Other ways to manage environments
Environment markers - PEP-426
Coverage for C extensions Easy to do on Linux
Uploading
Ending

Taught by

EuroPython Conference

Reviews

Start your review of Less Known Packaging Features and Tricks

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.