From 223b78fc4d6e26fbbdf6852392c53e42ec8e62e1 Mon Sep 17 00:00:00 2001 From: "Ware, Joseph (DLSLtd,RAL,LSCI)" Date: Tue, 18 Mar 2025 16:42:36 +0000 Subject: [PATCH] Spec-0 Add support for Python 3.13 and remove for Python 3.10 --- README.md | 2 +- docs/how-to/dev-install.md | 2 +- docs/tutorials/installation.md | 2 +- pyproject.toml | 2 +- template/pyproject.toml.jinja | 4 ++-- .../workflows/ci.yml.jinja" | 2 +- .../tutorials/installation.md.jinja | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 87b6dcf7..49875916 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ Visit and you will see a list of templ ## Create a new project from the commandline -You will need to `pip install copier` inside an activated `venv` from python3.10 or later, then you can create a new module via: +You will need to `pip install copier` inside an activated `venv` from python3.11 or later, then you can create a new module via: ``` mkdir /path/to/my-project diff --git a/docs/how-to/dev-install.md b/docs/how-to/dev-install.md index ea191829..1698627b 100644 --- a/docs/how-to/dev-install.md +++ b/docs/how-to/dev-install.md @@ -8,7 +8,7 @@ First clone the repository locally using [Git](https://git-scm.com/downloads). T ## Install dependencies -You can choose to either develop on the host machine using a `venv` (which requires python 3.10 or later) or to run in a container under [VSCode](https://code.visualstudio.com/) +You can choose to either develop on the host machine using a `venv` (which requires python 3.11 or later) or to run in a container under [VSCode](https://code.visualstudio.com/) ::::{tab-set} diff --git a/docs/tutorials/installation.md b/docs/tutorials/installation.md index 4db62b87..432ed2d8 100644 --- a/docs/tutorials/installation.md +++ b/docs/tutorials/installation.md @@ -5,7 +5,7 @@ to create new projects from the template, update existing projects in line with ## Check your version of python -You will need python 3.10 or later. You can check your version of python by +You will need python 3.11 or later. You can check your version of python by typing into a terminal: ``` diff --git a/pyproject.toml b/pyproject.toml index 44d1ca29..b0ab7390 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta" [project] name = "python-copier-template" dynamic = ["version"] -requires-python = ">=3.10" +requires-python = ">=3.11" [project.optional-dependencies] dev = [ diff --git a/template/pyproject.toml.jinja b/template/pyproject.toml.jinja index 9fe0ac81..43f3b8c7 100644 --- a/template/pyproject.toml.jinja +++ b/template/pyproject.toml.jinja @@ -7,16 +7,16 @@ name = "{{ distribution_name }}" classifiers = [ "Development Status :: 3 - Alpha", "License :: OSI Approved :: Apache Software License", - "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", ] description = "{{ description }}" dependencies = [] # Add project dependencies here, e.g. ["click", "numpy"] dynamic = ["version"] license.file = "LICENSE" readme = "README.md" -requires-python = ">=3.10" +requires-python = ">=3.11" [project.optional-dependencies] dev = [ diff --git "a/template/{% if git_platform==\"github.com\" %}.github{% endif %}/workflows/ci.yml.jinja" "b/template/{% if git_platform==\"github.com\" %}.github{% endif %}/workflows/ci.yml.jinja" index c6ed106f..c00d4217 100644 --- "a/template/{% if git_platform==\"github.com\" %}.github{% endif %}/workflows/ci.yml.jinja" +++ "b/template/{% if git_platform==\"github.com\" %}.github{% endif %}/workflows/ci.yml.jinja" @@ -21,7 +21,7 @@ jobs: strategy: matrix: runs-on: ["ubuntu-latest"] # can add windows-latest, macos-latest - python-version: ["3.10", "3.11", "3.12"] + python-version: ["3.11", "3.12", "3.13"] include: # Include one that runs in the dev environment - runs-on: "ubuntu-latest" diff --git a/template/{% if sphinx %}docs{% endif %}/tutorials/installation.md.jinja b/template/{% if sphinx %}docs{% endif %}/tutorials/installation.md.jinja index bc07f5df..a1784aca 100644 --- a/template/{% if sphinx %}docs{% endif %}/tutorials/installation.md.jinja +++ b/template/{% if sphinx %}docs{% endif %}/tutorials/installation.md.jinja @@ -2,7 +2,7 @@ ## Check your version of python -You will need python 3.10 or later. You can check your version of python by +You will need python 3.11 or later. You can check your version of python by typing into a terminal: ```