Skip to content

Commit 55ff88f

Browse files
committed
chore: Drop Python 3.8 support, check 3.13
1 parent e68dae6 commit 55ff88f

File tree

3 files changed

+6
-15
lines changed

3 files changed

+6
-15
lines changed

.github/workflows/schemacode_ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
fail-fast: false
6262
matrix:
6363
os: ["ubuntu-latest"]
64-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
64+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
6565
include:
6666
- os: macos-latest
6767
python-version: 3

tools/schemacode/pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,22 @@ authors = [{name = "bids-standard developers"}]
99
maintainers = [{name = "bids-standard developers", email = "[email protected]"}]
1010
license = {text = "MIT"}
1111
readme = "README.md"
12-
requires-python = ">=3.8"
12+
requires-python = ">=3.9"
1313
dependencies = [
1414
"click",
1515
"pyyaml",
16-
'importlib_resources; python_version < "3.9"',
1716
"jsonschema",
1817
]
1918
classifiers = [
2019
"Development Status :: 4 - Beta",
2120
"Intended Audience :: Science/Research",
2221
"Topic :: Scientific/Engineering :: Information Analysis",
2322
"License :: OSI Approved :: MIT License",
24-
"Programming Language :: Python :: 3.8",
2523
"Programming Language :: Python :: 3.9",
2624
"Programming Language :: Python :: 3.10",
2725
"Programming Language :: Python :: 3.11",
26+
"Programming Language :: Python :: 3.12",
27+
"Programming Language :: Python :: 3.13",
2828
]
2929
dynamic = ["version"]
3030

tools/schemacode/src/bidsschematools/data/__init__.py

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,12 @@
66
import atexit
77
import os
88
from contextlib import ExitStack
9-
from functools import cached_property
9+
from functools import cache, cached_property
10+
from importlib.resources import as_file, files
1011
from pathlib import Path
1112
from types import ModuleType
1213
from typing import Union
1314

14-
try:
15-
from functools import cache
16-
except ImportError: # PY38
17-
from functools import lru_cache as cache
18-
19-
try: # Prefer backport to leave consistency to dependency spec
20-
from importlib_resources import as_file, files
21-
except ImportError:
22-
from importlib.resources import as_file, files # type: ignore
23-
2415
__all__ = ["load_resource"]
2516

2617

0 commit comments

Comments
 (0)