Skip to content

Commit 40b3081

Browse files
committed
Implement support for *Python* 3.14, drop support for *Python* 3.10.
1 parent 1660472 commit 40b3081

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ repos:
3535
rev: 1.19.1
3636
hooks:
3737
- id: blacken-docs
38-
language_version: python3.10
38+
language_version: python3.11
3939
- repo: https://github.com/pre-commit/mirrors-prettier
4040
rev: "v4.0.0-alpha.8"
4141
hooks:

colour_datasets/records/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
import functools
1111
import os
1212
import typing
13+
from typing import Self
1314

1415
from colour.utilities import Structure
1516
from colour.utilities.documentation import (
1617
DocstringDict,
1718
is_documentation_building,
1819
)
19-
from typing_extensions import Self
2020

2121
if typing.TYPE_CHECKING:
2222
from colour.hints import Any, Callable, Dict

colour_datasets/utilities/common.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
import typing
1919
import urllib.error
2020
import urllib.request
21+
from typing import Self
2122

2223
import setuptools.archive_util
2324
from cachetools import TTLCache, cached
2425
from tqdm import tqdm
25-
from typing_extensions import Self
2626

2727
if typing.TYPE_CHECKING:
2828
from colour.hints import Any, Callable, Dict
@@ -186,7 +186,7 @@ def url_download(
186186
)
187187

188188
attempt = retries
189-
except (urllib.error.URLError, OSError, ValueError): # noqa: PERF203
189+
except (urllib.error.URLError, OSError, ValueError):
190190
attempt += 1
191191
print( # noqa: T201
192192
f'An error occurred while downloading "{filename}" file '
@@ -237,7 +237,7 @@ def json_open(url: str, retries: int = 3) -> Dict:
237237
request = urllib.request.Request(url) # noqa: S310
238238
with urllib.request.urlopen(request) as response: # noqa: S310
239239
return json.loads(response.read())
240-
except (urllib.error.URLError, ValueError): # noqa: PERF203
240+
except (urllib.error.URLError, ValueError):
241241
attempt += 1
242242
print( # noqa: T201
243243
f'An error occurred while opening "{url}" url during attempt '

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "colour-datasets"
33
version = "0.2.6"
44
description = "Colour science datasets for use with Colour"
55
readme = "README.rst"
6-
requires-python = ">=3.10,<3.14"
6+
requires-python = ">=3.11,<3.15"
77
authors = [
88
{ name = "Colour Developers", email = "[email protected]" },
99
]
@@ -127,7 +127,7 @@ reportUnusedExpression = false
127127
addopts = "--durations=5"
128128

129129
[tool.ruff]
130-
target-version = "py310"
130+
target-version = "py311"
131131
line-length = 88
132132
select = ["ALL"]
133133
ignore = [

0 commit comments

Comments
 (0)