diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b7e794da..67bfbf0f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,7 @@ jobs: strategy: fail-fast: true matrix: - python-version: ['3.8', '3.9', '3.10'] + python-version: ['3.9', '3.10', '3.11'] copier_config: - name: Base example package_name: example_package # The default package_name diff --git a/python-project-template/pyproject.toml.jinja b/python-project-template/pyproject.toml.jinja index 8d31c52d..f97ce1c1 100644 --- a/python-project-template/pyproject.toml.jinja +++ b/python-project-template/pyproject.toml.jinja @@ -18,6 +18,7 @@ classifiers = [ "Programming Language :: Python", ] dynamic = ["version"] +requires-python = ">={{ python_versions[0] }}" dependencies = [ {%- if include_notebooks %} "ipykernel", # Support for Jupyter notebooks @@ -80,7 +81,7 @@ testpaths = [ [tool.black] line-length = 110 -target-version = ["py38"] +target-version = ["py{{ python_versions[0] | replace(".", "") }}"] [tool.isort] profile = "black" @@ -88,7 +89,7 @@ line_length = 110 [tool.ruff] line-length = 110 -target-version = "py38" +target-version = "py{{ python_versions[0] | replace(".", "") }}" [tool.ruff.lint] select = [