TL;DR: Run ./test_in_docker.sh 3.9
and look for red
To specify a version, you can manually configure it via Docker's --build-arg
option like so:
$ docker build -f tests.Dockerfile --build-arg="PY_VERSION=3.9" -t fontknife:3.9 .
However, the helper script is shorter.
- Debian users (The official DontBreakDebian page warns against using PPAs)
- Anyone else scared of breaking their Python install
- Container and reproducibility enthusiasts
First, makes you're capable of running Docker containers. For a *NIX system (mac, Linux, etc), the steps will be roughly as follows:
cd
into the project root directory- Read
test_in_docker.sh
to make sure you understand it - Run
sudo ./test_in_docker.sh
and watch the output
That's okay. Keep reading.
For cross-platform Python interpreter version management, consider:
- PDM for both Python and package installation
- rye for a modern take on handling both Python and package installation
- pyenv if you want other Python versions but want to keep plain old
pip
Warning
The Debian wiki's DontBreakDebian page warns against PPAs like this.
The deadsnakes PPA is available for Linux users on Debian and Ubuntu derivatives (Linux Mint, Pop!_OS, CrunchBang++, BunsenLabs, etc).
If you want something which acts like a local version of GitHub actions, I've found two options:
- act, a golang utility with some rough edges
- Whatever Red Hat is doing with a heavy-looking pair of JS-based repos (haven't tried this)