Spaces:
Running
Running
Python 3.6 support + versioned scikit-image (#19)
Browse files- .github/workflows/build.yml +4 -4
- .github/workflows/release.yml +2 -2
- README.md +2 -2
- setup.py +4 -2
.github/workflows/build.yml
CHANGED
|
@@ -14,10 +14,10 @@ jobs:
|
|
| 14 |
runs-on: ubuntu-20.04
|
| 15 |
steps:
|
| 16 |
- uses: actions/checkout@v1
|
| 17 |
-
- name: Set up Python 3.
|
| 18 |
uses: actions/setup-python@v2
|
| 19 |
with:
|
| 20 |
-
python-version: 3.
|
| 21 |
|
| 22 |
- name: Install dependencies
|
| 23 |
run: |
|
|
@@ -40,7 +40,7 @@ jobs:
|
|
| 40 |
strategy:
|
| 41 |
matrix:
|
| 42 |
os: [windows-2019, ubuntu-20.04, macos-10.15]
|
| 43 |
-
python-version: ["3.7", "3.8", "3.9", "3.10"]
|
| 44 |
|
| 45 |
steps:
|
| 46 |
- uses: actions/checkout@v1
|
|
@@ -55,7 +55,7 @@ jobs:
|
|
| 55 |
name: "Python wheel"
|
| 56 |
|
| 57 |
- name: Install software
|
| 58 |
-
run: pip install --find-links=${{github.workspace}} lungtumormask
|
| 59 |
|
| 60 |
- name: Download test data
|
| 61 |
run: |
|
|
|
|
| 14 |
runs-on: ubuntu-20.04
|
| 15 |
steps:
|
| 16 |
- uses: actions/checkout@v1
|
| 17 |
+
- name: Set up Python 3.6
|
| 18 |
uses: actions/setup-python@v2
|
| 19 |
with:
|
| 20 |
+
python-version: 3.6
|
| 21 |
|
| 22 |
- name: Install dependencies
|
| 23 |
run: |
|
|
|
|
| 40 |
strategy:
|
| 41 |
matrix:
|
| 42 |
os: [windows-2019, ubuntu-20.04, macos-10.15]
|
| 43 |
+
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
|
| 44 |
|
| 45 |
steps:
|
| 46 |
- uses: actions/checkout@v1
|
|
|
|
| 55 |
name: "Python wheel"
|
| 56 |
|
| 57 |
- name: Install software
|
| 58 |
+
run: pip install -U --find-links=${{github.workspace}} lungtumormask
|
| 59 |
|
| 60 |
- name: Download test data
|
| 61 |
run: |
|
.github/workflows/release.yml
CHANGED
|
@@ -14,10 +14,10 @@ jobs:
|
|
| 14 |
runs-on: ubuntu-20.04
|
| 15 |
steps:
|
| 16 |
- uses: actions/checkout@v1
|
| 17 |
-
- name: Set up Python 3.
|
| 18 |
uses: actions/setup-python@v2
|
| 19 |
with:
|
| 20 |
-
python-version: 3.
|
| 21 |
|
| 22 |
- name: Install dependencies
|
| 23 |
run: |
|
|
|
|
| 14 |
runs-on: ubuntu-20.04
|
| 15 |
steps:
|
| 16 |
- uses: actions/checkout@v1
|
| 17 |
+
- name: Set up Python 3.6
|
| 18 |
uses: actions/setup-python@v2
|
| 19 |
with:
|
| 20 |
+
python-version: 3.6
|
| 21 |
|
| 22 |
- name: Install dependencies
|
| 23 |
run: |
|
README.md
CHANGED
|
@@ -16,11 +16,11 @@ A pretrained model is made available in a command line tool and can be used as y
|
|
| 16 |
|
| 17 |
## [Installation](https://github.com/VemundFredriksen/LungTumorMask#installation)
|
| 18 |
|
| 19 |
-
Software has been tested against Python `3.
|
| 20 |
|
| 21 |
Stable latest release:
|
| 22 |
```
|
| 23 |
-
pip install https://github.com/VemundFredriksen/LungTumorMask/releases/download/v1.2.
|
| 24 |
```
|
| 25 |
|
| 26 |
Or from source:
|
|
|
|
| 16 |
|
| 17 |
## [Installation](https://github.com/VemundFredriksen/LungTumorMask#installation)
|
| 18 |
|
| 19 |
+
Software has been tested against Python `3.6-3.10`.
|
| 20 |
|
| 21 |
Stable latest release:
|
| 22 |
```
|
| 23 |
+
pip install https://github.com/VemundFredriksen/LungTumorMask/releases/download/v1.2.2/lungtumormask-1.2.2-py2.py3-none-any.whl
|
| 24 |
```
|
| 25 |
|
| 26 |
Or from source:
|
setup.py
CHANGED
|
@@ -3,16 +3,17 @@ from setuptools import setup, find_packages
|
|
| 3 |
setup(
|
| 4 |
name="lungtumormask",
|
| 5 |
packages=find_packages(),
|
| 6 |
-
version='1.2.
|
| 7 |
author="Svein Ole M Sevle, Vemund Fredriksen, and André Pedersen",
|
| 8 |
url="https://github.com/VemundFredriksen/LungTumorMask",
|
| 9 |
license="MIT",
|
| 10 |
-
python_requires='>=3.
|
| 11 |
install_requires=[
|
| 12 |
'numpy<=1.23.2',
|
| 13 |
'monai<=0.8.1',
|
| 14 |
'lungmask@git+https://github.com/andreped/lungmask',
|
| 15 |
'nibabel',
|
|
|
|
| 16 |
'torch>=1.10.2,<=1.11',
|
| 17 |
],
|
| 18 |
entry_points={
|
|
@@ -21,6 +22,7 @@ setup(
|
|
| 21 |
]
|
| 22 |
},
|
| 23 |
classifiers=[
|
|
|
|
| 24 |
"Programming Language :: Python :: 3.7",
|
| 25 |
"Programming Language :: Python :: 3.8",
|
| 26 |
"Programming Language :: Python :: 3.9",
|
|
|
|
| 3 |
setup(
|
| 4 |
name="lungtumormask",
|
| 5 |
packages=find_packages(),
|
| 6 |
+
version='1.2.2',
|
| 7 |
author="Svein Ole M Sevle, Vemund Fredriksen, and André Pedersen",
|
| 8 |
url="https://github.com/VemundFredriksen/LungTumorMask",
|
| 9 |
license="MIT",
|
| 10 |
+
python_requires='>=3.6',
|
| 11 |
install_requires=[
|
| 12 |
'numpy<=1.23.2',
|
| 13 |
'monai<=0.8.1',
|
| 14 |
'lungmask@git+https://github.com/andreped/lungmask',
|
| 15 |
'nibabel',
|
| 16 |
+
'scikit-image>=0.17.0',
|
| 17 |
'torch>=1.10.2,<=1.11',
|
| 18 |
],
|
| 19 |
entry_points={
|
|
|
|
| 22 |
]
|
| 23 |
},
|
| 24 |
classifiers=[
|
| 25 |
+
"Programming Language :: Python :: 3.6",
|
| 26 |
"Programming Language :: Python :: 3.7",
|
| 27 |
"Programming Language :: Python :: 3.8",
|
| 28 |
"Programming Language :: Python :: 3.9",
|