diff --git a/.github/workflows/ci-copier.yml b/.github/workflows/ci-copier.yml index 23203bf..f40da8e 100644 --- a/.github/workflows/ci-copier.yml +++ b/.github/workflows/ci-copier.yml @@ -43,7 +43,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - minimal-python-version: [py310, py311, py314] + minimal-python-version: [py311, py314] steps: - name: Check out branch uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 diff --git a/copier.yml b/copier.yml index 79cb2d1..0070be1 100644 --- a/copier.yml +++ b/copier.yml @@ -46,12 +46,11 @@ minimal_python_version: type: str help: What is the minimal Python version you want to support? choices: - - py310 - py311 - py312 - py313 - py314 - default: py310 + default: py311 use_devcontainer: type: bool diff --git a/template/.github/workflows/ci.yml.jinja b/template/.github/workflows/ci.yml.jinja index d6c60ad..7ee47dc 100644 --- a/template/.github/workflows/ci.yml.jinja +++ b/template/.github/workflows/ci.yml.jinja @@ -36,7 +36,7 @@ jobs: strategy: fail-fast: false matrix: -{%- set python_versions = ["py310", "py311", "py312", "py313", "py314"] %} +{%- set python_versions = ["py311", "py312", "py313", "py314"] %} {%- set minimal_version_index = python_versions.index(minimal_python_version) %} environment: {%- for python_version in python_versions[minimal_version_index:] %} diff --git a/template/pixi.toml.jinja b/template/pixi.toml.jinja index 96c6b81..396392a 100644 --- a/template/pixi.toml.jinja +++ b/template/pixi.toml.jinja @@ -51,11 +51,6 @@ zizmor = "*" [feature.lint.tasks] pre-commit-install = "lefthook install" lint = "lefthook run pre-commit --all-files" -{%- if minimal_python_version <= "py310" %} - -[feature.py310.dependencies] -python = "3.10.*" -{%- endif %} {%- if minimal_python_version <= "py311" %} [feature.py311.dependencies] @@ -79,9 +74,6 @@ python = "3.14.*" [environments] default = ["test", "build", "lint"] -{%- if minimal_python_version <= "py310" %} -py310 = ["py310", "test"] -{%- endif %} {%- if minimal_python_version <= "py311" %} py311 = ["py311", "test"] {%- endif %} diff --git a/template/pyproject.toml.jinja b/template/pyproject.toml.jinja index 2a92593..d79bdb9 100644 --- a/template/pyproject.toml.jinja +++ b/template/pyproject.toml.jinja @@ -10,9 +10,6 @@ authors = [{ name = "{{ author_name }}", email = "{{ author_email }}" }] version = "0.0.0" classifiers = [ "Programming Language :: Python :: 3", -{%- if minimal_python_version <= "py310" %} - "Programming Language :: Python :: 3.10", -{%- endif %} {%- if minimal_python_version <= "py311" %} "Programming Language :: Python :: 3.11", {%- endif %} diff --git a/tests/test_template.py b/tests/test_template.py index 5de2af4..27d2b8d 100644 --- a/tests/test_template.py +++ b/tests/test_template.py @@ -53,12 +53,10 @@ def test_agents_md(generated_project): assert claude_md.resolve() == (generated_project / "AGENTS.md").resolve() -@pytest.mark.parametrize( - "minimal_python_version", ["py310", "py311", "py312", "py313", "py314"] -) +@pytest.mark.parametrize("minimal_python_version", ["py311", "py312", "py313", "py314"]) def test_minimal_python_version(generate_project, minimal_python_version: str): minimal_python_version_str = minimal_python_version.replace("py3", "3.") - all_supported_python_versions = ["3.10", "3.11", "3.12", "3.13", "3.14"] + all_supported_python_versions = ["3.11", "3.12", "3.13", "3.14"] all_supported_python_envs = [ f"py{version.replace('.', '')}" for version in all_supported_python_versions ]