From 8f6bb930c17235f62cad887b5e86c660d45df788 Mon Sep 17 00:00:00 2001 From: Antonio Valentino Date: Fri, 13 Sep 2024 14:02:48 +0200 Subject: [PATCH 1/3] Fix compatibility with Python >= 3.12 --- docs/conf.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 677b67f..d8d1fd9 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -66,8 +66,10 @@ # |version| and |release|, also used in various other places throughout the # built documents. # -import imp -resampy_version = imp.load_source('resampy.version', '../resampy/version.py') +import importlib.util +spec = importlib.util.spec_from_file_location('resampy.version', '../resampy/version.py') +resampy_version = importlib.util.module_from_spec(spec) +spec.loader.exec_module(resampy_version) # The short X.Y version. version = resampy_version.short_version From 262780cacfb5818fcaa611b635be04dcdfe4cc61 Mon Sep 17 00:00:00 2001 From: Antonio Valentino Date: Sat, 28 Sep 2024 12:17:55 +0200 Subject: [PATCH 2/3] Add RTD config --- .readthedocs.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .readthedocs.yml diff --git a/.readthedocs.yml b/.readthedocs.yml new file mode 100644 index 0000000..506cef0 --- /dev/null +++ b/.readthedocs.yml @@ -0,0 +1,15 @@ +version: 2 + +build: + os: ubuntu-22.04 + tools: + python: "3.12" + +python: + install: + - method: pip + path: . + - requirements: docs/requirements.txt + +sphinx: + configuration: docs/conf.py From d31c4c62d1246bce32091482529c058d068fe78d Mon Sep 17 00:00:00 2001 From: Antonio Valentino Date: Sat, 28 Sep 2024 12:31:44 +0200 Subject: [PATCH 3/3] Update codecov GHA to v4 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7f5f307..570eb7b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -50,7 +50,7 @@ jobs: python -m pytest tests python -m pytest --doctest-only resampy - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: token: ${{ secrets.CODECOV_TOKEN }} files: ./coverage.xml