Skip to content

Commit

Permalink
Add support for Python 3.10 (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmsmkn authored Apr 20, 2022
1 parent 5109c50 commit 91e26f3
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9]
python-version: ["3.7", "3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
Expand Down
4 changes: 4 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# History

## 0.8.1 (2022-04-20)

* Added support for Python 3.10

## 0.8.0 (2022-04-12)

* Group DICOM studies by series instance UID or stack ID
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
**NOT FOR CLINICAL USE**

Conversion of medical images to MHA and TIFF.
Requires Python 3.7, 3.8 or 3.9.
Requires Python 3.7, 3.8, 3.9 or 3.10.
`libvips-dev` and `libopenslide-dev` must be installed on your system.

Under the hood we use:
Expand Down
9 changes: 5 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "panimg"
version = "0.8.0"
version = "0.8.1"
description = "Conversion of medical images to MHA and TIFF."
license = "Apache-2.0"
authors = ["James Meakin <[email protected]>"]
Expand All @@ -17,11 +17,11 @@ classifiers = [
panimg = "panimg.cli:cli"

[tool.poetry.dependencies]
python = ">=3.7,<3.10"
python = "^3.7"
pydantic = "*"
numpy = [
{ version = "^1.21", python = "<3.8" },
{ version = "^1.22", python = ">=3.8,<3.10" }
{ version = "^1.22", python = "^3.8" }
]
# Exclude 2.1.1.1 due to
# https://github.com/SimpleITK/SimpleITK/issues/1627
Expand Down Expand Up @@ -71,13 +71,14 @@ addopts = "--strict-markers --showlocals -n auto --dist loadscope"
legacy_tox_ini = """
[tox]
isolated_build = True
envlist = py37, py38, py39
envlist = py37, py38, py39, py310
[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310
[testenv]
allowlist_externals = poetry
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[mypy]
python_version = 3.7
python_version = 3.10
plugins = pydantic.mypy

warn_return_any=True
Expand Down

0 comments on commit 91e26f3

Please sign in to comment.