Skip to content

Commit

Permalink
🐍 Update Supported Python Versions (add 3.11 ) (#500)
Browse files Browse the repository at this point in the history
Adds support for Python 3.11 (beta)

- [x] Add 3.11 to the GitHub Actions CI workflow.
- [x] Add 3.11 to setup.py
- [x] Update pip install workflow.
- [x] Update conda requirements python versions.


Waiting on some dependencies to update:

- [x] Shapely (closed) shapely/shapely#1584
  - PyGeos pygeos/pygeos#457
- [x] PyTorch pytorch/pytorch#86566 
    - [x] PyTorch 2.0 supports Python 3.11 
    - [ ] `torch.compile` is not fully supported yet.
- [x] Scipy 1.9.2 not supported by Scikit-image scikit-image/scikit-image#6773
- [x] numba numba/numba#8304 support https://github.com/numba/numba/milestone/63
  - [x] numba/numba#8841
- [x] OpenSlide support for Python 3.11 openslide/openslide-python#189 
  - [ ] openslide/openslide-python#188

---------

Co-authored-by: Shan E Ahmed Raza <[email protected]>
  • Loading branch information
John-P and shaneahmed authored May 5, 2023
1 parent 6039197 commit 591482c
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pip-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
fail-fast: true
matrix:
python-version: ["3.8", "3.9", "3.10"]
python-version: ["3.8", "3.9", "3.10", "3.11"]
os: [ubuntu-22.04, windows-latest, macos-latest]
steps:
- name: Set up Python ${{ matrix.python-version }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
fail-fast: true
matrix:
python-version: ["3.8", "3.9", "3.10"]
python-version: ["3.8", "3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion requirements/requirements.conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ dependencies:
- openslide
- pip>=20.0.2
- pixman>=0.39.0
- python>=3.8, <3.11
- python>=3.8, <=3.11
- pip:
- -r requirements.txt
2 changes: 1 addition & 1 deletion requirements/requirements.dev.conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ dependencies:
- openslide
- pip>=20.0.2
- pixman>=0.39.0
- python>=3.8, <3.11
- python>=3.8, <=3.11
- pip:
- -r requirements_dev.txt
2 changes: 1 addition & 1 deletion requirements/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ shapely>=2.0.0
SimpleITK>=2.2.1
sphinx>=5.3.0
tifffile>=2022.10.10
torch>=1.13.1
torch>=2.0.0
torchvision>=0.14.1
tqdm>=4.64.1
umap-learn>=0.5.3
Expand Down
2 changes: 1 addition & 1 deletion requirements/requirements.win64.conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ dependencies:
- openjpeg>=2.4.0
- pip>=20.0.2
- pixman>=0.39.0
- python>=3.8, <3.11
- python>=3.8, <=3.11
- pip:
- -r requirements.txt
2 changes: 1 addition & 1 deletion requirements/requirements.win64.dev.conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ dependencies:
- openjpeg>=2.4.0
- pip>=20.0.2
- pixman>=0.39.0
- python>=3.8, <3.11
- python>=3.8, <=3.11
- pip:
- -r requirements_dev.txt
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
],
description="Computational pathology toolbox developed by TIA Centre.",
dependency_links=dependency_links,
Expand Down

0 comments on commit 591482c

Please sign in to comment.