GeistHaus
log in · sign up

Testing & Packaging

hynek.me

How to ensure that your tests run code that you think they are running, and how to measure your coverage over multiple tox runs (in parallel!).

6 pages link to this URL
Everything Gets a Package: My Python Data Science Setup | Ethan Rosenthal

I make Python packages for everything. Big projects obviously get a package, but so does every tiny analysis. Spinning up a quick jupyter notebook to check something out? Build a package first. Oh yeah, and every package gets its own virtual environment. Let’s back up a little bit so that I can tell you why I do this. After that, I’ll show you how I do this. Notably, my workflow is set up to make it simple to stay consistent.

1 inbound link website en
Useful Links

Python Learning materials HSF training curriculum (Python, bash, git, docker, and more) Topical articles CPython core developers Brett Cannon is a CPython core developer, and is very interested in standardizing packaging. https://snarky.ca Why I don’t like SemVer anymore: A great resource to make you think about what SemVer means and where it falls short. What the heck is pyproject.toml: A intro to modern Python packaging A quick-and-dirty guide on how to install packages for Python: This showw the “correct” way to throw together packages (pre-pipx). Paul Ganssle is CPython core developer, and maintains zoneinfo. https://blog.ganssle.io

0 inbound links article en page
Hypermodern Python

A guide to modern Python tooling with a focus on simplicity and minimalism.

4 inbound links article en blogdeveloperpersonal