Skip to content

Commit b39ca49

Browse files
authored
drop python 3.10 support and add 3.13 following SPEC0 (#24)
* drop python 3.10 support and add 3.13 following SPEC0 * add min supported versions for core scientific packages following SPEC0 * add SPEC0 badge to readme
1 parent 1a5ad93 commit b39ca49

5 files changed

Lines changed: 25 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ jobs:
4444
strategy:
4545
fail-fast: false
4646
matrix:
47-
python-version: ["3.10", "3.13"]
47+
python-version: ["3.11", "3.12", "3.13"]
4848
runs-on: [ubuntu-latest, windows-latest, macos-14]
4949

5050
include:
51-
- python-version: "pypy-3.10"
51+
- python-version: "pypy-3.11"
5252
runs-on: ubuntu-latest
5353

5454
steps:

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## Unreleased
99

10+
### ✏️ Changed
11+
- drop python 3.10 support and add 3.13 following SPEC0
12+
- add min versions for core scientific packages following SPEC0
13+
1014
<!--
1115
Below is an example for a release
1216

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,8 @@ Short description of your package.
169169
170170
[![GitHub Discussion][github-discussions-badge]][github-discussions-link]
171171
172+
[![SPEC 0 — Minimum Supported Dependencies](https://img.shields.io/badge/SPEC-0-green?labelColor=%23004811&color=%235CA038)](https://scientific-python.org/specs/spec-0000/)
173+
172174
<!-- SPHINX-START-badges -->
173175
174176
<!-- prettier-ignore-start -->

docs/install.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Install Python
44

5-
Before installing _samplepackagename_, ensure you have Python 3.9 or greater downloaded.
5+
Before installing _samplepackagename_, ensure you have Python 3.11 or greater downloaded.
66
If you don't, we recommend setting up Python with Miniforge.
77
See the install instructions [here](https://github.com/conda-forge/miniforge).
88

pyproject.toml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ description = "Add a 1 sentence description here."
1212
keywords = ["python", "", "", ""]
1313
readme = "README.md"
1414
license = "MIT"
15-
requires-python = ">=3.10"
15+
requires-python = ">=3.11"
1616
classifiers = [
1717
"Development Status :: 1 - Planning",
1818
"Intended Audience :: Science/Research",
@@ -21,15 +21,26 @@ classifiers = [
2121
"Programming Language :: Python",
2222
"Programming Language :: Python :: 3",
2323
"Programming Language :: Python :: 3 :: Only",
24-
"Programming Language :: Python :: 3.10",
2524
"Programming Language :: Python :: 3.11",
2625
"Programming Language :: Python :: 3.12",
2726
"Programming Language :: Python :: 3.13",
2827
"Topic :: Scientific/Engineering",
2928
"Typing :: Typed",
3029
]
3130
dynamic = ["version"]
31+
# list your package's dependencies below
32+
# follow SPEC0 for specifying minimum dependency versions for main packages: https://scientific-python.org/specs/spec-0000/
33+
# uncomment below packages if you need them
3234
dependencies = [
35+
# "ipython>=8.13.0",
36+
# "matplotlib>=3.7.0",
37+
# "networkx>=3.1",
38+
# "pandas>=2.0.0",
39+
# "scikit-image>=0.21.0",
40+
# "scikit-learn>=1.3.0",
41+
# "scipy>=1.11.0",
42+
# "xarray>=2023.4.0",
43+
# "zarr>=2.15.0",
3344
]
3445

3546
[dependency-groups]
@@ -97,7 +108,7 @@ report.exclude_also = [
97108

98109
[tool.mypy]
99110
files = ["src", "tests"]
100-
python_version = "3.10"
111+
python_version = "3.11"
101112
warn_unused_configs = true
102113
strict = true
103114
enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
@@ -154,8 +165,8 @@ ignore = [
154165
"*.ipynb" = ["T201"]
155166

156167
[tool.pylint]
157-
py-version = "3.10"
158-
ignore-paths = [".*/_version.py"]
168+
py-version = "3.11"
169+
ignore-paths = [".*\\_version.py"]
159170
reports.output-format = "colorized"
160171
similarities.ignore-imports = "yes"
161172
similarities.min-similarity-lines = 5

0 commit comments

Comments
 (0)