Skip to content

Commit 6a0fb88

Browse files
committed
🐛 Fix imports
2 parents be0e3b5 + c9c72c9 commit 6a0fb88

37 files changed

Lines changed: 161 additions & 92 deletions

.github/workflows/docker-publish.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,15 @@ jobs:
2323
mtag: py3.12-debian
2424
- dockerfile: ./docker/3.12/Ubuntu/Dockerfile
2525
mtag: py3.12-ubuntu
26-
- dockerfile: ./docker/3.13/Ubuntu/Dockerfile
26+
- dockerfile: ./docker/3.13/Debian/Dockerfile
2727
mtag: py3.13-debian
2828
- dockerfile: ./docker/3.13/Ubuntu/Dockerfile
2929
mtag: py3.13-ubuntu
30-
- dockerfile: ./docker/3.13/Ubuntu/Dockerfile
30+
- dockerfile: ./docker/3.14/Debian/Dockerfile
31+
mtag: py3.14-debian
32+
- dockerfile: ./docker/3.14/Ubuntu/Dockerfile
33+
mtag: py3.14-ubuntu
34+
- dockerfile: ./docker/3.14/Ubuntu/Dockerfile
3135
mtag: latest
3236
permissions:
3337
contents: read

.github/workflows/python-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
sudo apt update
3434
sudo apt-get install -y libopenjp2-7 libopenjp2-tools
3535
python -m pip install --upgrade pip
36-
python -m pip install ruff==0.15.12 pytest pytest-cov pytest-runner
36+
python -m pip install ruff==0.15.15 pytest pytest-cov pytest-runner
3737
pip install uv
3838
uv pip install --system torch torchvision --index-url https://download.pytorch.org/whl/cpu
3939
uv pip install --system -r requirements/requirements.txt

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ repos:
6060
- id: rst-inline-touching-normal # Detect mistake of inline code touching normal text in rst.
6161
- repo: https://github.com/astral-sh/ruff-pre-commit
6262
# Ruff version.
63-
rev: v0.15.12
63+
rev: v0.15.15
6464
hooks:
6565
- id: ruff
6666
args: [--fix, --exit-non-zero-on-fix]

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
<img src="https://shields.io/conda/dn/conda-forge/tiatoolbox" alt="conda-forge downloads"/>
1919
</a>
2020
<br>
21-
<a href="https://tia-toolbox.readthedocs.io/en/latest/?badge=latest">
22-
<img src="https://readthedocs.org/projects/tia-toolbox/badge/?version=latest" alt="Documentation Status" />
21+
<a href="https://tia-toolbox.readthedocs.io/en/stable/?badge=stable">
22+
<img src="https://readthedocs.org/projects/tia-toolbox/badge/?version=stable" alt="Documentation Status" />
2323
</a>
2424
<br>
2525
<a href="#license">

docker/3.14/Debian/Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM python:3.14-slim-trixie
2+
3+
#get linux packages
4+
RUN apt-get -y update && apt-get -y install --no-install-recommends \
5+
libopenjp2-7-dev libopenjp2-tools \
6+
sqlite3 libsqlite3-0 \
7+
libgl1 \
8+
libglib2.0-0 \
9+
build-essential \
10+
&& pip3 --no-cache-dir install tiatoolbox \
11+
&& apt-get clean \
12+
&& rm -rf /var/lib/apt/lists/*
13+
14+
# set the entry point to bash
15+
ENTRYPOINT ["/bin/bash"]

docker/3.14/Ubuntu/Dockerfile

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
FROM ubuntu:24.04 AS builder-image
2+
3+
# To avoid tzdata blocking the build with frontend questions
4+
ENV DEBIAN_FRONTEND=noninteractive
5+
6+
# Install python3.14
7+
RUN apt-get update && \
8+
apt install software-properties-common -y &&\
9+
add-apt-repository ppa:deadsnakes/ppa -y && apt update &&\
10+
apt-get install -y --no-install-recommends python3.14-venv &&\
11+
apt-get install libpython3.14-dev -y &&\
12+
apt-get install python3.14-dev -y &&\
13+
apt-get install build-essential -y &&\
14+
apt-get clean && rm -rf /var/lib/apt/lists/*
15+
16+
# Add env to PATH
17+
RUN python3.14 -m venv /venv
18+
ENV PATH=/venv/bin:$PATH
19+
20+
# install TIAToolbox and its requirements
21+
RUN apt-get update && apt-get install --no-install-recommends -y \
22+
libopenjp2-7-dev libopenjp2-tools \
23+
sqlite3 libsqlite3-0 \
24+
libgl1 \
25+
&& apt-get clean && rm -rf /var/lib/apt/lists/*
26+
RUN pip install --no-cache-dir tiatoolbox
27+
28+
# activate virtual environment
29+
ENV VIRTUAL_ENV=/venv

docs/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ myst-nb>=0.17.1
33
myst-parser>=0.18.1
44
sphinx-copybutton>=0.5.1
55
sphinx-design>=0.3.0
6-
sphinx-toolbox>=3.2.0
6+
sphinx-toolbox>=4.2.0

examples/01-wsi-reading.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"source": [
99
"# Read and Visualize a WSI\n",
1010
"\n",
11-
"Click to open in: \\[[GitHub](https://github.com/TissueImageAnalytics/tiatoolbox/blob/master/examples/01-wsi-reading.ipynb)\\]\\[[Colab](https://colab.research.google.com/github/TissueImageAnalytics/tiatoolbox/blob/master/examples/01-wsi-reading.ipynb)\\]\n",
11+
"Click to open in: \\[[GitHub](https://github.com/TissueImageAnalytics/tiatoolbox/blob/develop/examples/01-wsi-reading.ipynb)\\]\\[[Colab](https://colab.research.google.com/github/TissueImageAnalytics/tiatoolbox/blob/develop/examples/01-wsi-reading.ipynb)\\]\n",
1212
"\n"
1313
]
1414
},
@@ -75,7 +75,7 @@
7575
"%%bash\n",
7676
"apt-get -y install libopenjp2-7-dev libopenjp2-tools libpixman-1-dev | tail -n 1\n",
7777
"pip install uv\n",
78-
"uv pip install tiatoolbox | tail -n 1\n",
78+
"uv pip install git+https://github.com/TissueImageAnalytics/tiatoolbox.git@develop | tail -n 1\n",
7979
"echo \"Installation is done.\""
8080
]
8181
},

examples/02-stain-normalization.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"source": [
99
"# Stain Normalization\n",
1010
"\n",
11-
"Click to open in: \\[[GitHub](https://github.com/TissueImageAnalytics/tiatoolbox/blob/master/examples/02-stain-normalization.ipynb)\\]\\[[Colab](https://colab.research.google.com/github/TissueImageAnalytics/tiatoolbox/blob/master/examples/02-stain-normalization.ipynb)\\]\n",
11+
"Click to open in: \\[[GitHub](https://github.com/TissueImageAnalytics/tiatoolbox/blob/develop/examples/02-stain-normalization.ipynb)\\]\\[[Colab](https://colab.research.google.com/github/TissueImageAnalytics/tiatoolbox/blob/develop/examples/02-stain-normalization.ipynb)\\]\n",
1212
"\n"
1313
]
1414
},
@@ -84,7 +84,7 @@
8484
"%%bash\n",
8585
"apt-get -y install libopenjp2-7-dev libopenjp2-tools libpixman-1-dev | tail -n 1\n",
8686
"pip install uv\n",
87-
"uv pip install tiatoolbox | tail -n 1\n",
87+
"uv pip install git+https://github.com/TissueImageAnalytics/tiatoolbox.git@develop | tail -n 1\n",
8888
"echo \"Installation is done.\""
8989
]
9090
},

examples/03-tissue-masking.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"source": [
99
"# Masking tissue region in whole slide images\n",
1010
"\n",
11-
"Click to open in: \\[[GitHub](https://github.com/TissueImageAnalytics/tiatoolbox/blob/master/examples/03-tissue-masking.ipynb)\\]\\[[Colab](https://colab.research.google.com/github/TissueImageAnalytics/tiatoolbox/blob/master/examples/03-tissue-masking.ipynb)\\]\n",
11+
"Click to open in: \\[[GitHub](https://github.com/TissueImageAnalytics/tiatoolbox/blob/develop/examples/03-tissue-masking.ipynb)\\]\\[[Colab](https://colab.research.google.com/github/TissueImageAnalytics/tiatoolbox/blob/develop/examples/03-tissue-masking.ipynb)\\]\n",
1212
"\n"
1313
]
1414
},
@@ -74,7 +74,7 @@
7474
"%%bash\n",
7575
"apt-get -y install libopenjp2-7-dev libopenjp2-tools libpixman-1-dev | tail -n 1\n",
7676
"pip install uv\n",
77-
"uv pip install tiatoolbox | tail -n 1\n",
77+
"uv pip install git+https://github.com/TissueImageAnalytics/tiatoolbox.git@develop | tail -n 1\n",
7878
"echo \"Installation is done.\""
7979
]
8080
},

0 commit comments

Comments
 (0)