Skip to content

Commit f158c18

Browse files
committed
Merge branch 'deprecate-executors-for-v2.0' into major-version-2.0
2 parents 056976f + afe836d commit f158c18

File tree

6 files changed

+10
-39
lines changed

6 files changed

+10
-39
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
- name: Install uv
4848
uses: astral-sh/setup-uv@v3
4949
with:
50-
version: "0.4.22"
50+
version: "0.5.22"
5151

5252
- name: Set up Python ${{ matrix.python-version }}
5353
run: uv python install ${{ matrix.python-version }}
@@ -214,7 +214,7 @@ jobs:
214214
uses: astral-sh/setup-uv@v3
215215
with:
216216
# Install a specific version of uv.
217-
version: "0.4.22"
217+
version: "0.5.22"
218218
- name: Write version file
219219
run: |
220220
pushd webknossos
@@ -291,7 +291,7 @@ jobs:
291291
uses: astral-sh/setup-uv@v3
292292
with:
293293
# Install a specific version of uv.
294-
version: "0.4.22"
294+
version: "0.5.22"
295295
- name: Build Docs
296296
run: |
297297
cd docs
@@ -343,7 +343,7 @@ jobs:
343343
uses: astral-sh/setup-uv@v3
344344
with:
345345
# Install a specific version of uv.
346-
version: "0.4.22"
346+
version: "0.5.22"
347347
- name: Publish python packages
348348
env:
349349
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_PASSWORD }}

.github/workflows/publish_docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
uses: astral-sh/setup-uv@v3
2020
with:
2121
# Install a specific version of uv.
22-
version: "0.4.19"
22+
version: "0.5.22"
2323

2424
- name: Build Docs
2525
run: |

cluster_tools/Changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ For upgrade instructions, please check the respective *Breaking Changes* section
1010
[Commits](https://github.com/scalableminds/webknossos-libs/compare/v0.16.6...HEAD)
1111

1212
### Breaking Changes
13+
- The deprecated executor `WrappedProcessPoolExecutor` was removed. Use `MultiprocessingExecutor` instead. [#1244](https://github.com/scalableminds/webknossos-libs/pull/1244)
14+
- The deprecated execution strategy `test_pickling` was removed. Use `multiprocessing_with_pickling` instead. [#1244](https://github.com/scalableminds/webknossos-libs/pull/1244)
15+
- The deprecated execution strategy `debug_sequential` was removed. Use `sequential` instead. [#1244](https://github.com/scalableminds/webknossos-libs/pull/1244)
1316

1417
### Added
1518

cluster_tools/cluster_tools/__init__.py

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import warnings
21
from typing import Any, Literal, overload
32

43
from cluster_tools.executor_protocol import Executor
@@ -17,9 +16,6 @@
1716
from cluster_tools.schedulers.pbs import PBSExecutor
1817
from cluster_tools.schedulers.slurm import SlurmExecutor
1918

20-
# For backwards-compatibility, remove in version 2.0:
21-
WrappedProcessPoolExecutor = MultiprocessingExecutor
22-
2319

2420
def _noop() -> bool:
2521
return True
@@ -84,24 +80,12 @@ def get_executor(
8480
) -> MultiprocessingPickleExecutor: ...
8581

8682

87-
@overload
88-
def get_executor(
89-
environment: Literal["test_pickling"], **kwargs: Any
90-
) -> MultiprocessingPickleExecutor: ...
91-
92-
9383
@overload
9484
def get_executor(
9585
environment: Literal["sequential"], **kwargs: Any
9686
) -> SequentialExecutor: ...
9787

9888

99-
@overload
100-
def get_executor(
101-
environment: Literal["debug_sequential"], **kwargs: Any
102-
) -> SequentialExecutor: ...
103-
104-
10589
@overload
10690
def get_executor(
10791
environment: Literal["sequential_with_pickling"], **kwargs: Any
@@ -133,20 +117,4 @@ def get_executor(environment: str, **kwargs: Any) -> "Executor":
133117
return SequentialPickleExecutor(**kwargs)
134118
elif environment == "multiprocessing_with_pickling":
135119
return MultiprocessingPickleExecutor(**kwargs)
136-
elif environment == "test_pickling":
137-
# For backwards-compatibility, remove in version 2.0:
138-
warnings.warn(
139-
"The test_pickling execution strategy is deprecated and will be removed in version 2.0. Use multiprocessing_with_pickling instead.",
140-
DeprecationWarning,
141-
stacklevel=2,
142-
)
143-
return MultiprocessingPickleExecutor(**kwargs)
144-
elif environment == "debug_sequential":
145-
# For backwards-compatibility, remove in version 2.0:
146-
warnings.warn(
147-
"The debug_sequential execution strategy is deprecated and will be removed in version 2.0. Use sequential instead.",
148-
DeprecationWarning,
149-
stacklevel=2,
150-
)
151-
return SequentialExecutor(**kwargs)
152120
raise Exception("Unknown executor: {}".format(environment))

cluster_tools/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
set -eEuo pipefail
33

44
cd tests
5-
PYTEST_EXECUTORS=multiprocessing,sequential,test_pickling,debug_sequential uv run --frozen python -m pytest -sv test_all.py test_multiprocessing.py
5+
PYTEST_EXECUTORS=multiprocessing,multiprocessing_with_pickling,sequential uv run --frozen python -m pytest -sv test_all.py test_multiprocessing.py
66

77
echo "Tests for the kubernetes, dask and SLURM executors are only run in the CI"

cluster_tools/tests/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ ARG PYTHON_VERSION="3.11"
22

33
FROM python:${PYTHON_VERSION}
44

5-
COPY --from=ghcr.io/astral-sh/uv:0.4.20 /uv /bin/uv
5+
COPY --from=ghcr.io/astral-sh/uv:0.5.22 /uv /bin/uv
66

77
RUN mkdir /cluster_tools
88
COPY . /cluster_tools

0 commit comments

Comments
 (0)