From 2bc7d0d154cac0db753f6d8e93567b8fe032edd5 Mon Sep 17 00:00:00 2001 From: Tom Hunn Date: Wed, 27 Sep 2023 16:28:13 +1000 Subject: [PATCH] add test + support librosa > 0.9.1 --- .github/workflows/test-librosa-versions.yml | 31 +++++++++++++++++++++ setup.py | 4 +-- 2 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/test-librosa-versions.yml diff --git a/.github/workflows/test-librosa-versions.yml b/.github/workflows/test-librosa-versions.yml new file mode 100644 index 0000000..ce12e02 --- /dev/null +++ b/.github/workflows/test-librosa-versions.yml @@ -0,0 +1,31 @@ +name: run tests on librosa + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.8", "3.9", "3.10", "3.11"] + librosa-version: ["0.9.1", "0.9.2", "0.10.0", "0.10.1"] + + steps: + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -e . + pip install librosa==${{ matrix.librosa-version }} + - name: Display Python version + run: | + python -c "import sys; print(sys.version)" + python -c "import librosa; print(librosa.__version__)" + - name: Run tests + run: | + pip install pytest + python -m pytest diff --git a/setup.py b/setup.py index 7e07a3e..66095c5 100644 --- a/setup.py +++ b/setup.py @@ -8,11 +8,11 @@ setup( name='torchcrepe', description='Pytorch implementation of CREPE pitch tracker', - version='0.0.21', + version='0.0.22', author='Max Morrison', author_email='maxrmorrison@gmail.com', url='https://github.com/maxrmorrison/torchcrepe', - install_requires=['librosa==0.9.1', 'resampy', 'scipy', 'torch', 'tqdm'], + install_requires=['librosa>=0.9.1', 'resampy', 'scipy', 'torch', 'tqdm'], packages=['torchcrepe'], package_data={'torchcrepe': ['assets/*']}, long_description=long_description,