Skip to content

Commit e5a95c9

Browse files
authored
chore: bump python from 3.10 to 3.11 (#26)
1 parent ac6b757 commit e5a95c9

File tree

6 files changed

+27
-369
lines changed

6 files changed

+27
-369
lines changed

.python-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.10
1+
3.11

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.10.14-slim-bullseye
1+
FROM python:3.11.14-slim-bookworm
22

33
COPY --from=ghcr.io/astral-sh/uv:0.9.9 /uv /uvx /bin/
44

README.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ This repository relies on the library https://github.com/stardist/stardist and p
1111
Either from an existing task bundle
1212

1313
```bash
14-
$> unzip com.cytomine.nuclei.segmentation.stardist-0.2.1.zip
15-
Archive: ./com.cytomine.nuclei-segmentation.stardist-0.2.1.zip
16-
inflating: com.cytomine.nuclei.segmentation.stardist-0.2.1.tar
14+
$> unzip com.cytomine.nuclei.segmentation.stardist-0.3.0.zip
15+
Archive: ./com.cytomine.nuclei-segmentation.stardist-0.3.0.zip
16+
inflating: com.cytomine.nuclei.segmentation.stardist-0.3.0.tar
1717
inflating: descriptor.yml
18-
$> docker image load --input com.cytomine.nuclei.segmentation.stardist-0.2.1.tar
18+
$> docker image load --input com.cytomine.nuclei.segmentation.stardist-0.3.0.tar
1919
0949773899cf: Loading layer [==================================================>] 84.2MB/84.2MB
2020
95c8f57bd29d: Loading layer [==================================================>] 3.405MB/3.405MB
2121
95ce64f868d0: Loading layer [==================================================>] 30.56MB/30.56MB
@@ -26,22 +26,21 @@ c70e485b159b: Loading layer [==================================================>
2626
84cc4f8d1ed4: Loading layer [==================================================>] 2.087GB/2.087GB
2727
e05ca7daf251: Loading layer [==================================================>] 5.78MB/5.78MB
2828
987f4b5a221e: Loading layer [==================================================>] 6.656kB/6.656kB
29-
Loaded image: com/cytomine/nuclei-segmentation/stardist:0.2.1
30-
29+
Loaded image: com/cytomine/nuclei-segmentation/stardist:0.3.0
3130
```
3231

3332
### Build the docker image yourself
3433

3534
```
36-
docker build -t com/cytomine/nuclei-segmentation/stardist:0.2.1 .
35+
docker build -t com/cytomine/nuclei-segmentation/stardist:0.3.0 .
3736
```
3837

3938
## Run on data
4039

4140
From this repository, run :
4241

4342
```bash
44-
docker run -v ./examples/inputs:/inputs -v ./local-outputs:/outputs --rm -it com/cytomine/nuclei-segmentation/stardist:0.2.1
43+
docker run -v ./examples/inputs:/inputs -v ./local-outputs:/outputs --rm -it com/cytomine/nuclei-segmentation/stardist:0.3.0
4544
```
4645

4746
You can then explore the results in the `./local-outputs` directory.
@@ -51,10 +50,10 @@ You can then explore the results in the `./local-outputs` directory.
5150
1. Build the docker image as described above
5251
2. save it as `tar` archive
5352
```bash
54-
docker save -o com.cytomine.nuclei.segmentation.stardist-0.2.1.tar com/cytomine/nuclei-segmentation/stardist:0.2.1
53+
docker save -o com.cytomine.nuclei.segmentation.stardist-0.3.0.tar com/cytomine/nuclei-segmentation/stardist:0.3.0
5554
```
5655
3. Build the bundle
5756
```bash
58-
zip com.cytomine.nuclei.segmentation.stardist-0.2.1.zip descriptor.yml com.cytomine.nuclei.segmentation.stardist-0.2.1.tar
57+
zip com.cytomine.nuclei.segmentation.stardist-0.3.0.zip descriptor.yml com.cytomine.nuclei.segmentation.stardist-0.3.0.tar
5958
```
6059
4. Upload the bundle on Cytomine

descriptor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: StarDist Nuclei Segmentation
22
name_short: stardist
3-
version: 0.2.1
3+
version: 0.3.0
44
namespace: com.cytomine.nuclei.segmentation.stardist
55
$schema: https://raw.githubusercontent.com/cytomine/cytomine/refs/heads/main/app-engine/src/main/resources/schemas/tasks/task.v0.json
66

@@ -20,7 +20,7 @@ configuration:
2020
input_folder: /inputs
2121
output_folder: /outputs
2222
image:
23-
file: /com.cytomine.nuclei.segmentation.stardist-0.2.1.tar
23+
file: /com.cytomine.nuclei.segmentation.stardist-0.3.0.tar
2424

2525
inputs:
2626
image:

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[project]
22
name = "task-stardist"
3-
version = "0.2.1"
3+
version = "0.3.0"
44
description = "Integration of Stardist algorithm as a Cytomine task"
55
readme = "README.md"
6-
requires-python = ">=3.10"
6+
requires-python = ">=3.11"
77
dependencies = [
88
"csbdeep==0.8.0",
99
"geojson==3.1.0",

0 commit comments

Comments
 (0)