Skip to content

Commit bb97f76

Browse files
authored
Merge pull request #939 from fractal-analytics-platform/dev-1.5
Version 1.5.0
2 parents b681673 + 4f227b8 commit bb97f76

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+2899
-1506
lines changed

.github/workflows/ci_pip.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,8 @@ jobs:
1515
strategy:
1616
matrix:
1717
os: [ubuntu-22.04, macos-latest]
18-
python-version: ["3.10", "3.11", "3.12"]
19-
exclude:
20-
- os: macos-latest
21-
python-version: '3.10'
18+
python-version: ["3.11", "3.12"]
19+
2220
name: "Core, Python ${{ matrix.python-version }}, ${{ matrix.os }}"
2321
runs-on: ${{ matrix.os }}
2422
timeout-minutes: 10
@@ -42,17 +40,14 @@ jobs:
4240
run: python -m pip install pytest devtools jsonschema requests wget pooch
4341

4442
- name: Test core library with pytest
45-
run: python -m pytest tests --ignore tests/tasks --ignore tests/dev
43+
run: python -m pytest tests --ignore tests/tasks --ignore tests/dev --ignore tests/tasks_v2
4644

4745
tests_tasks:
4846
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
4947
strategy:
5048
matrix:
5149
os: [ubuntu-latest, macos-latest]
52-
python-version: ["3.10", "3.11", "3.12"]
53-
exclude:
54-
- os: macos-latest
55-
python-version: '3.10'
50+
python-version: ["3.11", "3.12"]
5651
name: "Tasks, Python ${{ matrix.python-version }}, ${{ matrix.os }}"
5752
runs-on: ${{ matrix.os }}
5853
timeout-minutes: 30
@@ -83,4 +78,4 @@ jobs:
8378
key: pooch-cache
8479

8580
- name: Test tasks with pytest
86-
run: python -m pytest tests/dev tests/tasks -s --log-cli-level info
81+
run: python -m pytest tests/dev tests/tasks tests/tasks_v2 -s --log-cli-level info

.github/workflows/ci_poetry.yml

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
strategy:
1717
matrix:
18-
python-version: ["3.10", "3.11", "3.12"]
18+
python-version: ["3.11", "3.12"]
1919

2020
steps:
2121
- uses: actions/checkout@v4
@@ -46,7 +46,7 @@ jobs:
4646
- name: Test core library with pytest
4747
env:
4848
COVERAGE_FILE: coverage-data-core-${{ matrix.python-version }}
49-
run: poetry run coverage run -m pytest tests --ignore tests/tasks --ignore tests/dev
49+
run: poetry run coverage run -m pytest tests --ignore tests/tasks --ignore tests/dev --ignore tests/tasks_v2
5050

5151
- name: Upload coverage data
5252
uses: actions/upload-artifact@v4
@@ -61,7 +61,7 @@ jobs:
6161

6262
strategy:
6363
matrix:
64-
python-version: ["3.10", "3.11", "3.12"]
64+
python-version: ["3.11", "3.12"]
6565

6666
steps:
6767
- uses: actions/checkout@v4
@@ -90,16 +90,7 @@ jobs:
9090
run: poetry install --with dev --without docs --no-interaction -E fractal-tasks
9191

9292
- name: Check if manifest has changed
93-
run: |
94-
poetry run python fractal_tasks_core/dev/create_manifest.py
95-
echo "*.json diff=json" >> .gitattributes && git config diff.json.textconv "jq --sort-keys '.' \$1"
96-
git diff ./fractal_tasks_core/__FRACTAL_MANIFEST__.json
97-
if [ -n "$(git diff --exit-code ./fractal_tasks_core/__FRACTAL_MANIFEST__.json)" ]; then
98-
echo "__FRACTAL_MANIFEST__.json has changed. Please run 'poetry run python fractal_tasks_core/dev/create_manifest.py' and commit the changes."
99-
exit 1
100-
else
101-
echo "__FRACTAL_MANIFEST__.json has not changed."
102-
fi
93+
run: poetry run fractal-manifest check --package fractal-tasks-core
10394

10495
- name: Cache Pooch folder
10596
id: cache-pooch-folder
@@ -111,7 +102,7 @@ jobs:
111102
- name: Test tasks with pytest
112103
env:
113104
COVERAGE_FILE: coverage-data-tasks-${{ matrix.python-version }}
114-
run: poetry run coverage run -m pytest tests/dev tests/tasks
105+
run: poetry run coverage run -m pytest tests/dev tests/tasks tests/tasks_v2
115106

116107
- name: Upload coverage data
117108
uses: actions/upload-artifact@v4
@@ -130,7 +121,7 @@ jobs:
130121
- run: poetry config virtualenvs.in-project true
131122
- uses: actions/setup-python@v5
132123
with:
133-
python-version: "3.10"
124+
python-version: "3.11"
134125

135126
- name: Install dependencies
136127
run: poetry install --with dev

.github/workflows/documentation.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636

3737
- uses: actions/setup-python@v5
3838
with:
39-
python-version: '3.10'
39+
python-version: '3.11'
4040
cache: pip
4141

4242
- name: Install dependencies

.github/workflows/manifest_external_packages.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,6 @@ jobs:
3939
cmd_create_manifest: 'python src/scmultiplex/dev/create_manifest.py'
4040
custom_dependencies: 'image_registration'
4141

42-
- package: fractal-helper-tasks
43-
github_repo: jluethi/fractal-helper-tasks
44-
github_branch: main
45-
manifest_path: src/fractal_helper_tasks/__FRACTAL_MANIFEST__.json
46-
cmd_install: 'python -m pip install -e .'
47-
cmd_create_manifest: 'python src/fractal_helper_tasks/dev/create_manifest.py'
48-
custom_dependencies: ''
49-
5042
- package: APx_fractal_task_collection
5143
github_repo: Apricot-Therapeutics/APx_fractal_task_collection
5244
github_branch: main

.github/workflows/package.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ jobs:
1919
fetch-depth: 1
2020
persist-credentials: false
2121

22-
- name: Set up Python 3.10
22+
- name: Set up Python 3.11
2323
uses: actions/setup-python@v5
2424
with:
25-
python-version: "3.10"
25+
python-version: "3.11"
2626
cache: pip
2727

2828
- name: Run pre-commit (fail upon errors)

.github/workflows/poetry_build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515
with:
1616
persist-credentials: false
1717

18-
- name: "Set up Python 3.10"
18+
- name: "Set up Python 3.11"
1919
uses: actions/setup-python@v5
2020
with:
21-
python-version: "3.10"
21+
python-version: "3.11"
2222

2323
- name: "Install poetry 1.8.2"
2424
run: curl -sSL https://install.python-poetry.org | python3 - --version 1.8.2

.github/workflows/poetry_update.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
run: pipx install poetry==1.8.2
2424
- uses: actions/setup-python@v5
2525
with:
26-
python-version: "3.10"
26+
python-version: "3.11"
2727

2828
- uses: fredrikaverpil/[email protected]
2929

.github/workflows/publish_pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727

2828
- uses: actions/setup-python@v5
2929
with:
30-
python-version: "3.10"
30+
python-version: "3.11"
3131

3232
- name: "Install poetry 1.8.2"
3333
run: curl -sSL https://install.python-poetry.org | python3 - --version 1.8.2

.pre-commit-config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,10 @@ repos:
2323
hooks:
2424
- id: bandit
2525
args: ["-x", "tests/*"]
26+
- repo: local
27+
hooks:
28+
- id: grep-for-devtools
29+
name: Check for devtools in fractal_tasks_core
30+
entry: bash -c 'for file in "$@"; do if grep -n "devtools" "$file"; then echo "$file" && exit 1; fi; done' --
31+
language: system
32+
files: fractal_tasks_core/

CHANGELOG.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,30 @@
11
**Note**: Numbers like (\#123) point to closed Pull Requests on the fractal-tasks-core repository.
22

3-
# Unreleased
3+
# 1.5.0
44

5+
* Tasks:
6+
* Refactor `projection` task to use the new `ngio` API (\#937, \#943).
7+
* Refactor `copy_ome_zarr_plate` init task to support the upcoming flexibility.
8+
* Rely on `fractal-task-tools` for `run_fractal_task` wrapper (\#923).
9+
* Mark some existing tasks as _converter_ tasks(\#923).
10+
* Mark existing `run_fractal_task` wrapper as deprecated (\#923).
11+
* Manifest generation:
12+
* Rely on `fractal-task-tools` for manifest building (\#923).
13+
* Mark existing tools as deprecated (\#923).
514
* Testing:
15+
* Add new (redundand) `ngio`-based testing.
616
* Fix links to ome/ngff specs (\#930).
17+
* Dependencies:
18+
* Add `fractal-task-tools==0.0.10` dependency (\#923).
19+
* Bump `ngio` to `>=0.2.4,<0.3.0` (\#943).
20+
* Drop support for Python 3.10 (\#932).
21+
* Bump `fractal-task-tools` to `0.0.12` (\#933).
22+
* Pin `numcodecs` to `<0.16` (\#932).
723

824
# 1.4.3
925

1026
* Tasks:
11-
* Update apply_registration_to_image to handle race conditions better (\#919).
27+
* Update `apply_registration_to_image` to handle race conditions better (\#919).
1228
* Testing
1329
* Add `spherical-harmonics` extra to scmultiplex, for testing manifest build (\#899).
1430
* Move manifest-creation CI to Python 3.11 (\#915).

0 commit comments

Comments
 (0)