From 2d0d8731d9ca724fbfd16e4bb332e9c657ea0ae6 Mon Sep 17 00:00:00 2001 From: Scott Talbert Date: Tue, 12 Sep 2023 23:15:46 -0400 Subject: [PATCH] Update CI to use modern Python build/install --- .github/workflows/ci-linux.yml | 7 +++++-- .github/workflows/ci-macos.yml | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci-linux.yml b/.github/workflows/ci-linux.yml index 0ac9e06..4da709b 100644 --- a/.github/workflows/ci-linux.yml +++ b/.github/workflows/ci-linux.yml @@ -6,7 +6,9 @@ jobs: steps: - uses: actions/checkout@v2 - name: Install dependencies - run: sudo apt-get install libcurl4-openssl-dev libhidapi-dev libzip-dev + run: | + sudo apt-get install libcurl4-openssl-dev libhidapi-dev libzip-dev + sudo pip install build - name: Build libconcord run: | cd libconcord @@ -19,7 +21,8 @@ jobs: - name: Build libconcord Python bindings run: | cd libconcord/bindings/python - sudo python3 setup.py install + python3 -m build + sudo pip install *.whl python3 -c 'import libconcord; print(libconcord)' cd - - name: Build concordance diff --git a/.github/workflows/ci-macos.yml b/.github/workflows/ci-macos.yml index 18085eb..63c4cf7 100644 --- a/.github/workflows/ci-macos.yml +++ b/.github/workflows/ci-macos.yml @@ -6,7 +6,9 @@ jobs: steps: - uses: actions/checkout@v2 - name: Install dependencies - run: brew install autoconf automake hidapi libzip + run: | + brew install autoconf automake hidapi libzip + pip install build - name: Build libconcord run: | cd libconcord @@ -18,7 +20,8 @@ jobs: - name: Build libconcord Python bindings run: | cd libconcord/bindings/python - sudo python3 setup.py install + python3 -m build + sudo pip install *.whl python3 -c 'import libconcord; print(libconcord)' cd - - name: Build concordance