fix macOS ci

This commit is contained in:
scito 2022-12-24 02:37:16 +01:00
parent cd07851e30
commit 9a308b148f
2 changed files with 22 additions and 2 deletions

View File

@ -25,10 +25,14 @@ jobs:
uses: actions/setup-python@v4 uses: actions/setup-python@v4
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
- name: Install zbar lib for QReader - name: Install zbar lib for QReader (Linux)
if: runner.os != 'Windows' if: runner.os == 'Linux'
run: | run: |
sudo apt-get install -y libzbar0 sudo apt-get install -y libzbar0
- name: Install zbar lib for QReader (macOS)
if: runner.os == 'macOS'
run: |
brew install zbar
- name: Install dependencies - name: Install dependencies
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip

View File

@ -50,6 +50,22 @@ options:
pip install -r requirements.txt pip install -r requirements.txt
### Linux and macOS
For reading QR codes the zbar lib must be installed
#### Windows
The zbar DLLs are included with the Windows Python wheels. On other operating systems, you will need to install the zbar shared library.
#### Mac OS X
brew install zbar
#### Linux
sudo apt-get install libzbar0
Known to work with Known to work with
* Python 3.10.8, protobuf 4.21.9, qrcode 7.3.1, and pillow 9.2 * Python 3.10.8, protobuf 4.21.9, qrcode 7.3.1, and pillow 9.2