Skip to content

Commit 0cce773

Browse files
committed
Drop support for Python 3.8 and enable 3.13.
1 parent 23bfa7f commit 0cce773

File tree

4 files changed

+15
-21
lines changed

4 files changed

+15
-21
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
fail-fast: false
4343
matrix:
4444
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
45-
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
45+
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
4646

4747
steps:
4848
- uses: actions/checkout@v4

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@ tests/test_jupyter/*.txt
2121
.pytest_cache
2222
.ruff_cache
2323
.venv
24+
uv.lock

pyproject.toml

Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@ classifiers = [
66
"License :: OSI Approved :: MIT License",
77
"Operating System :: OS Independent",
88
"Programming Language :: Python :: 3",
9-
"Programming Language :: Python :: 3 :: Only"
9+
"Programming Language :: Python :: 3 :: Only",
1010
]
11-
requires-python = ">=3.8"
11+
requires-python = ">=3.9"
1212
dependencies = [
1313
"attrs>=21.3.0",
1414
"click",
1515
"cloudpickle",
1616
"loky",
1717
"pluggy>=1.0.0",
18-
"pytask>=0.5.0",
18+
"pytask>=0.5.2",
1919
"rich",
2020
]
2121
dynamic = ["version"]
@@ -40,12 +40,7 @@ docs = [
4040
"sphinx-toolbox",
4141
"sphinxext-opengraph",
4242
]
43-
test = [
44-
"pytask-parallel[coiled,dask]",
45-
"nbmake",
46-
"pytest",
47-
"pytest-cov",
48-
]
43+
test = ["pytask-parallel[coiled,dask]", "nbmake", "pytest", "pytest-cov"]
4944

5045
[project.readme]
5146
file = "README.md"
@@ -70,9 +65,7 @@ build-backend = "hatchling.build"
7065

7166
[tool.rye]
7267
managed = true
73-
dev-dependencies = [
74-
"s3fs>=2024.3.1",
75-
]
68+
dev-dependencies = ["s3fs>=2024.3.1", "tox-uv>=1.7.0"]
7669

7770
[tool.rye.scripts]
7871
clean-docs = { cmd = "rm -rf docs/build" }
@@ -112,17 +105,17 @@ disallow_untyped_defs = false
112105
ignore_errors = true
113106

114107
[tool.ruff]
115-
target-version = "py38"
108+
target-version = "py39"
116109
fix = true
117110
unsafe-fixes = true
118111

119112
[tool.ruff.lint]
120113
extend-ignore = [
121-
"ANN101", # type annotating self
122-
"ANN102", # type annotating cls
123-
"ANN401", # flake8-annotate typing.Any
124-
"COM812", # Comply with ruff-format.
125-
"ISC001", # Comply with ruff-format.
114+
"ANN101", # type annotating self
115+
"ANN102", # type annotating cls
116+
"ANN401", # flake8-annotate typing.Any
117+
"COM812", # Comply with ruff-format.
118+
"ISC001", # Comply with ruff-format.
126119
]
127120
select = ["ALL"]
128121

src/pytask_parallel/backends.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ def _deserialize_and_run_with_cloudpickle(fn: bytes, kwargs: bytes) -> Any:
2929
class _CloudpickleProcessPoolExecutor(ProcessPoolExecutor):
3030
"""Patches the standard executor to serialize functions with cloudpickle."""
3131

32-
# The type signature is wrong for Python >3.8. Fix when support is dropped.
33-
def submit( # type: ignore[override]
32+
def submit(
3433
self,
3534
fn: Callable[..., Any],
35+
/,
3636
*args: Any, # noqa: ARG002
3737
**kwargs: Any,
3838
) -> Future[Any]:

0 commit comments

Comments
 (0)