Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci-copier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions copier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion template/.github/workflows/ci.yml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -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:] %}
Expand Down
8 changes: 0 additions & 8 deletions template/pixi.toml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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 %}
Expand Down
3 changes: 0 additions & 3 deletions template/pyproject.toml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down
6 changes: 2 additions & 4 deletions tests/test_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
]
Expand Down
Loading