diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 79a12b15..e5c5cefd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,7 +13,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest] - python-version: [3.8] + python-version: [3.7, 3.8] steps: - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python-version }} diff --git a/pyannote/audio/utils/metric.py b/pyannote/audio/utils/metric.py index 303617de..e88eb6ab 100644 --- a/pyannote/audio/utils/metric.py +++ b/pyannote/audio/utils/metric.py @@ -20,7 +20,10 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -from functools import singledispatchmethod +try: + from functools import singledispatchmethod +except ImportError: + from singledispatchmethod import singledispatchmethod from typing import Optional import numpy as np diff --git a/requirements.txt b/requirements.txt index 601a7021..305f8461 100644 --- a/requirements.txt +++ b/requirements.txt @@ -11,6 +11,7 @@ pyannote.pipeline >=2.2,<3.0 pytorch_lightning >=1.5.4,<1.6 pytorch_metric_learning >=1.0.0,<2.0 semver >=2.10.2,<3.0 +singledispatchmethod soundfile >=0.10.2,<0.11 spectralcluster >= 0.2.4,<0.3 torch >=1.9 diff --git a/setup.py b/setup.py index 4854ac10..2069c946 100644 --- a/setup.py +++ b/setup.py @@ -56,6 +56,7 @@ if __name__ == "__main__": "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Natural Language :: English", + "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Topic :: Scientific/Engineering", ],