Note about this blog

This is a relatively new blog, using Hugo. I’m planning on writing more, and converting the old content from pythontesting.net, which is using WordPress. However, I’ve been: Podcasting at Python Bytes and Test & Code. Writing a second edition of Python Testing with pytest. Planning a course based on the book. Working at R&S. Parenting, cooking, gardening, drawing, living life, etc. So what does that mean for this blog?...

September 22, 2021 · 1 min

Pinning Application Dependencies with pip-tools compile

pip-tools has more functionality than this, but compile alone is quite useful. Start with a loose list of dependencies in requirements.in: typer rich The requirements.in file can have things like >= and such if you have some restrictions on your dependencies. Now install pip-tools: pip install pip-tools Then, in create a requirements.txt file with compile: pip-compile requirements.in or: python -m piptools compile requirements.in The output will be shown on stdout, but also in requirements....

June 9, 2021 · 1 min