From 08a9cf54dc6a335d1369335ff4d3413bdf55da40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carl=20Thom=C3=A9?= Date: Mon, 22 Jul 2024 16:34:14 +0200 Subject: [PATCH 1/3] Update protobuf version --- setup.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 57453e4f..e1217b65 100644 --- a/setup.py +++ b/setup.py @@ -53,9 +53,8 @@ "flatten-dict", "markdown2", "randomname", - # Have to freeze protobuf version, https://github.com/protocolbuffers/protobuf/issues/10051 - # Borrowing pin from tensorboard source: https://github.com/tensorflow/tensorboard/commit/fd4f5ff79374252e313c2e7e9b247bc49ab0d54d. - "protobuf >= 3.9.2, < 3.20", + # Borrowing pin from tensorboard source: https://github.com/tensorflow/tensorboard/commit/e795312f70537cb9c9ab4bd2a08a03e77f0356a5. + "protobuf >= 3.19.6, != 4.24.0, < 5.0.0", "tensorboard", "tqdm", ], From 61d4a22ade5e549c187337b710d8c202b9dc1cdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carl=20Thom=C3=A9?= Date: Mon, 22 Jul 2024 16:35:10 +0200 Subject: [PATCH 2/3] Allow newer versions of matplotlib --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index e1217b65..8b4954d5 100644 --- a/setup.py +++ b/setup.py @@ -46,7 +46,7 @@ "ffmpy", "ipython", "rich", - "matplotlib==3.5", # See https://github.com/librosa/librosa/issues/1763#issuecomment-1742120524 + "matplotlib", "librosa", "pystoi", "torch_stoi", From 6382c870a4ddabdc48a69a92905de0fe2edb4b0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carl=20Thom=C3=A9?= Date: Mon, 22 Jul 2024 16:39:59 +0200 Subject: [PATCH 3/3] Update test workflow --- .github/workflows/pr.yml | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index a5344c03..c034033a 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -1,4 +1,5 @@ -name: pr +name: Test + on: pull_request jobs: @@ -8,36 +9,28 @@ jobs: - uses: actions/checkout@v2 # Run isort + black formatter - name: Python Code Formatter - uses: descriptinc/python-format-action@master + uses: descriptinc/python-format-action@main build: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.7, 3.8, 3.9] + python-version: ["3.8", "3.9", "3.10", "3.11"] steps: - uses: actions/checkout@v2 with: lfs: true - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v1 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - - uses: actions/cache@v1 - id: cache - with: - path: ~/.cache/pip - key: ${{ runner.os }}-${{ matrix.python-version }}-pip-${{ hashFiles('**/*requirements.txt') }} - restore-keys: | - ${{ runner.os }}-${{ matrix.python-version }}-pip- - - name: Checkout LFS objects - run: git lfs checkout + cache: pip + cache-dependency-path: setup.py - name: Install binaries run: | sudo apt-get update - sudo apt-get install ffmpeg - sudo apt-get install libsndfile1-dev libsox-dev libsox-fmt-mp3 + sudo apt-get install ffmpeg libsndfile1-dev libsox-dev libsox-fmt-mp3 python -m pip install --upgrade pip pip install wheel - name: Install recent FFMPEG