Skip to content

Commit

Permalink
Merge pull request #33 from thunn/tom/unpin_librosa
Browse files Browse the repository at this point in the history
Support librosa >=0.9.1 and run tests on major librosa versions
  • Loading branch information
maxrmorrison authored Oct 9, 2023
2 parents 6720417 + 2bc7d0d commit 441cfb6
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 2 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/test-librosa-versions.yml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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='[email protected]',
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,
Expand Down

0 comments on commit 441cfb6

Please sign in to comment.