Skip to content

Commit 9d991bd

Browse files
committed
migrate setup.py to pyproject.toml, python 12 compatibility
1 parent 3b21fe9 commit 9d991bd

File tree

3 files changed

+51
-45
lines changed

3 files changed

+51
-45
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Human brain mapping. 2020; 41: 4804-4814. https://doi.org/10.1002/hbm.25159
1717
Download and install [Miniconda](https://conda.io/projects/conda/en/latest/user-guide/install/linux.html) and create a new conda environment:
1818

1919
```bash
20-
conda create -y -n DL_DiReCT python=3.10
20+
conda create -y -n DL_DiReCT python=3.11
2121
source activate DL_DiReCT
2222
```
2323

@@ -26,7 +26,7 @@ source activate DL_DiReCT
2626
cd ${HOME}
2727
git clone https://github.com/SCAN-NRAD/DL-DiReCT.git
2828
cd DL-DiReCT
29-
pip install numpy && pip install -e .
29+
pip install -e .
3030
```
3131

3232
# Usage

pyproject.toml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
[build-system]
2+
requires = ["setuptools>=61.0"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "DL-DiReCT"
7+
version = "1.0.1"
8+
description = "DL+DiReCT - Direct Cortical Thickness Estimation using Deep Learning-based Anatomy Segmentation and Cortex Parcellation"
9+
readme = "README.md"
10+
authors = [ {name = "Michael Rebsamen"} ]
11+
license = {file = "LICENSE"}
12+
keywords = ["brain morphometry", "cortical thickness", "MRI", "neuroimaging", "neuroanatomy segmentation", "deep-learning"]
13+
requires-python = ">=3.7"
14+
classifiers = [
15+
"Development Status :: 5 - Production/Stable",
16+
"Intended Audience :: Science/Research",
17+
"Topic :: Scientific/Engineering",
18+
"Programming Language :: Python :: 3",
19+
]
20+
21+
dependencies = [
22+
"antspyx>=0.3.5",
23+
"HD_BET @ https://github.com/MIC-DKFZ/HD-BET/archive/refs/heads/master.zip",
24+
"nibabel>=3.2.1",
25+
"numpy<2.0.0",
26+
"pandas>=0.25.3",
27+
"pyradiomics>=3.0.1; python_version<'3.12'",
28+
"pyradiomics @ https://github.com/AIM-Harvard/pyradiomics/archive/refs/heads/circle-ci-mac-os.zip ; python_version>='3.12'",
29+
"scikit-learn>=0.21.3",
30+
"scikit-image>=0.16.2",
31+
"scipy>=1.3.3",
32+
"torch>=1.3.1",
33+
]
34+
35+
[project.urls]
36+
Source = "https://github.com/SCAN-NRAD/DL-DiReCT"
37+
Publication = "https://doi.org/10.1002/hbm.25159"
38+
Issues = "https://github.com/SCAN-NRAD/DL-DiReCT/issues"
39+
40+
[project.scripts]
41+
"dl+direct" = "run_script:run"
42+
"direct" = "run_script:run"
43+
"batch-dl+direct" = "run_script:run"
44+
"stats2table" = "stats2table:main"
45+
"radiomics_extractor" = "radiomics_extractor:main"
46+
"radiomics2table" = "radiomics2table:main"
47+
48+
[tool.setuptools.packages.find]
49+
where = ["src"]

setup.py

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)