1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
Testing
=======
First, install dev dependencies::
poetry install --with dev
To run all tests, you'll need to install multiple Python interpreters. On a
modern Ubuntu distribution you can use ``add-apt-repository
ppa:deadsnakes/ppa``.
Depending on if you can install the wheels directly for your OS, you may need
the libraries to build PIL, too. Here's the Ubuntu commands::
sudo apt-get install build-essential python-dev python3-dev
sudo apt-get install libjpeg8-dev zlib1g-dev
Here's the OSX Homebrew command:
brew install libjpeg libtiff little-cms2 openjpeg webp
Finally, just run ``tox``::
poetry run tox
# or
poetry shell
tox
If you want, you can test against a specific version like this: ``tox -e py312-pil``
Linting
-------
Run `ruff` to check formatting::
ruff format qrcode
|