diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c74442a..f537a2b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,7 +13,7 @@ jobs: strategy: fail-fast: false # don't cancel other matrix jobs when one fails matrix: - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] os: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.os }} diff --git a/.readthedocs.yml b/.readthedocs.yml index 77c6c72..14560be 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -4,7 +4,7 @@ version: 2 build: os: ubuntu-20.04 tools: - python: "3.7" + python: "3.8" python: diff --git a/docs/source/whatsnew.md b/docs/source/whatsnew.md index c122d30..0bac261 100644 --- a/docs/source/whatsnew.md +++ b/docs/source/whatsnew.md @@ -10,6 +10,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - ``twoaxistracking.__version__`` now correctly reports the version string instead of raising ``AttributeError`` (see PR#45). +### Testing +- Remove python 3.7 and add python 3.12 to test matrix (see PR#48). + ## [0.2.4] - 2023-01-05 diff --git a/setup.cfg b/setup.cfg index 6292b76..352f219 100644 --- a/setup.cfg +++ b/setup.cfg @@ -19,7 +19,7 @@ classifiers = [options] packages = twoaxistracking -python_requires = >=3.7 +python_requires = >=3.8 install_requires = numpy matplotlib diff --git a/twoaxistracking/__init__.py b/twoaxistracking/__init__.py index 466fcbf..068dc61 100644 --- a/twoaxistracking/__init__.py +++ b/twoaxistracking/__init__.py @@ -1,8 +1,4 @@ -try: # pragma: no cover - from importlib.metadata import PackageNotFoundError, version -except ImportError: # pragma: no cover - # for python < 3.8 (remove when dropping 3.7 support) - from importlib_metadata import PackageNotFoundError, version +from importlib.metadata import PackageNotFoundError, version try: # pragma: no cover __version__ = version(__package__)