Skip to content

Commit

Permalink
Merge pull request #122 from avalentino/bugfix/python-1.12-compat
Browse files Browse the repository at this point in the history
Fix compatibility with Python >= 3.12
  • Loading branch information
bmcfee authored Sep 30, 2024
2 parents 84682d6 + d31c4c6 commit 67263d6
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
15 changes: 15 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -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
6 changes: 4 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 67263d6

Please sign in to comment.