diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5639182..2ca8b63 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + python-version: ["3.9", "3.10", "3.11", "3.12"] name: py ${{ matrix.python-version }} steps: - uses: actions/checkout@v4 diff --git a/pyproject.toml b/pyproject.toml index 06ad96c..e345be0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -27,7 +27,7 @@ keywords = [ "altair", "sphinxext" ] -requires-python = ">=3.8" +requires-python = ">=3.9" dynamic = ["version"] license-files = { paths = ["LICENSE"] } classifiers= [ @@ -36,7 +36,6 @@ classifiers= [ "License :: OSI Approved :: BSD License", "Natural Language :: English", "Framework :: Sphinx :: Extension", - "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", @@ -78,7 +77,7 @@ default-args = ["--numprocesses=logical","--doctest-modules", "tests"] parallel = true [[tool.hatch.envs.hatch-test.matrix]] -python = ["3.8", "3.9", "3.10", "3.11", "3.12"] +python = ["3.9", "3.10", "3.11", "3.12"] [tool.hatch.envs.hatch-test.scripts] run = [ @@ -100,7 +99,7 @@ build-html = ["sphinx-build -b html tests/roots/test-altairplot tests/roots/test serve = ["(cd tests/roots/test-altairplot/_build/html && python -m http.server)"] [tool.ruff] -target-version = "py38" +target-version = "py39" line-length = 88 indent-width = 4 exclude = [] diff --git a/tests/conftest.py b/tests/conftest.py index 601f9d3..8fd3b0a 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,4 +1,4 @@ -import sys +from pathlib import Path import pytest @@ -8,15 +8,7 @@ # Exclude 'roots' dirs for pytest test collector collect_ignore = ["roots"] -if sys.version_info >= (3, 9): - from pathlib import Path - @pytest.fixture(scope="session") - def rootdir(): - return Path(__file__).parent / "roots" -else: - from sphinx.testing.path import path - - @pytest.fixture(scope="session") - def rootdir(): - return path(__file__).parent.abspath() / "roots" +@pytest.fixture(scope="session") +def rootdir(): + return Path(__file__).parent / "roots"