From 9a308b148f2d356b78e8b100c96eedb7a85ebfa2 Mon Sep 17 00:00:00 2001 From: scito Date: Sat, 24 Dec 2022 02:37:16 +0100 Subject: [PATCH] fix macOS ci --- .github/workflows/ci.yml | 8 ++++++-- README.md | 16 ++++++++++++++++ 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2a81a59..8a8f1f5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,10 +25,14 @@ jobs: uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - - name: Install zbar lib for QReader - if: runner.os != 'Windows' + - name: Install zbar lib for QReader (Linux) + if: runner.os == 'Linux' run: | sudo apt-get install -y libzbar0 + - name: Install zbar lib for QReader (macOS) + if: runner.os == 'macOS' + run: | + brew install zbar - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/README.md b/README.md index 4a51edd..a1bcf58 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,22 @@ options: 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 * Python 3.10.8, protobuf 4.21.9, qrcode 7.3.1, and pillow 9.2