Skip to content

Commit 860519b

Browse files
Merge pull request #133 from neuroinformatics-unit/python-versions
Update Python versions to adhere to SPEC0
2 parents 80e4d91 + 19fe4c3 commit 860519b

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ jobs:
2323
strategy:
2424
matrix:
2525
# Run all supported Python versions on linux
26-
python-version: ["3.9", "3.10", "3.11"]
26+
python-version: ["3.11", "3.12", "3.13"]
2727
os: [ubuntu-latest]
2828
# Include one windows and macos run
2929
include:
3030
- os: macos-latest
31-
python-version: "3.10"
31+
python-version: "3.13"
3232
- os: windows-latest
33-
python-version: "3.10"
33+
python-version: "3.13"
3434

3535
steps:
3636
- uses: actions/checkout@v3

tests/test_cookiecutter.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def test_pyproject_toml(package_path_config_dict):
227227
)
228228
assert project_toml["project"]["description"] == "Lets Test CookieCutter"
229229
assert project_toml["project"]["readme"] == "README.md"
230-
assert project_toml["project"]["requires-python"] == ">=3.9.0"
230+
assert project_toml["project"]["requires-python"] == ">=3.11.0"
231231
assert (
232232
project_toml["project"]["license"]["text"] == "MIT"
233233
) # parameterize this? test if url not given?
@@ -236,9 +236,9 @@ def test_pyproject_toml(package_path_config_dict):
236236
"Development Status :: 2 - Pre-Alpha",
237237
"Programming Language :: Python",
238238
"Programming Language :: Python :: 3",
239-
"Programming Language :: Python :: 3.9",
240-
"Programming Language :: Python :: 3.10",
241239
"Programming Language :: Python :: 3.11",
240+
"Programming Language :: Python :: 3.12",
241+
"Programming Language :: Python :: 3.13",
242242
"Operating System :: OS Independent",
243243
"License :: OSI Approved :: MIT License",
244244
]

{{cookiecutter.package_name}}/.github/workflows/test_and_deploy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ jobs:
2727
strategy:
2828
matrix:
2929
# Run all supported Python versions on linux
30-
python-version: ["3.9", "3.10", "3.11"]
30+
python-version: ["3.11", "3.12", "3.13"]
3131
os: [ubuntu-latest]
3232
# Include one windows and macos run
3333
include:
3434
- os: macos-latest
35-
python-version: "3.10"
35+
python-version: "3.13"
3636
- os: windows-latest
37-
python-version: "3.10"
37+
python-version: "3.13"
3838

3939
steps:
4040
# Run tests

{{cookiecutter.package_name}}/pyproject.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "{{cookiecutter.package_name}}"
33
authors = [{name = "{{cookiecutter.full_name}}", email= "{{cookiecutter.email}}"}]
44
description = "{{cookiecutter.short_description}}"
55
readme = "README.md"
6-
requires-python = ">=3.9.0"
6+
requires-python = ">=3.11.0"
77
dynamic = ["version"]
88

99
dependencies = []
@@ -26,9 +26,9 @@ classifiers = [
2626
"Development Status :: 2 - Pre-Alpha",
2727
"Programming Language :: Python",
2828
"Programming Language :: Python :: 3",
29-
"Programming Language :: Python :: 3.9",
30-
"Programming Language :: Python :: 3.10",
3129
"Programming Language :: Python :: 3.11",
30+
"Programming Language :: Python :: 3.12",
31+
"Programming Language :: Python :: 3.13",
3232
"Operating System :: OS Independent",
3333
{% if cookiecutter.license == "MIT" -%}
3434
"License :: OSI Approved :: MIT License",
@@ -140,14 +140,14 @@ docstring-code-format = true # Also format code in docstrings (e.g. examples)
140140
[tool.tox]
141141
legacy_tox_ini = """
142142
[tox]
143-
envlist = py{39,310,311}
143+
envlist = py{311,312,313}
144144
isolated_build = True
145145
146146
[gh-actions]
147147
python =
148-
3.9: py39
149-
3.10: py310
150148
3.11: py311
149+
3.12: py312
150+
3.13: py313
151151
152152
[testenv]
153153
extras =

0 commit comments

Comments
 (0)