Overview
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