Skip to content

Commit d6ba06e

Browse files
committed
clean up toml and fix import
1 parent 4b68be2 commit d6ba06e

File tree

2 files changed

+10
-54
lines changed

2 files changed

+10
-54
lines changed

petdeface/qa.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import time
1414
import subprocess
1515
import signal
16+
import sys
1617
from pathlib import Path
1718

1819
# Handle imports for both script and module execution (including debugger)

pyproject.toml

Lines changed: 9 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,6 @@ authors = [
77
{name = "Anthony Galassi", email = "[email protected]"},
88
{name = "Murat Bilgel", email = "[email protected]"}
99
]
10-
license = "MIT"
11-
readme = "README.md"
12-
requires-python = ">=3.10"
13-
dependencies = [
14-
"setuptools>=68.1.2",
15-
"petutils>=0.0.1",
16-
"niworkflows>=1.11.0",
17-
"matplotlib>=3.10.1",
18-
"niftifixer>=0.0.2",
19-
"bids-validator-deno>=2.0.5",
20-
"nipreps>=1.0",
21-
"nireports>=25.2.0",
22-
"nibabel>=5.3.2",
23-
"nilearn>=0.10.4",
24-
"numpy>=2.1.3",
25-
"scipy>=1.14.1",
26-
"seaborn>=0.13.2",
27-
"pillow>=11.0.0",
28-
"imageio>=2.36.0",
29-
]
3010
license = {text = "MIT"}
3111
readme = "README.md"
3212
requires-python = ">=3.10"
@@ -70,29 +50,6 @@ dev = [
7050
petdeface = "petdeface.petdeface:main"
7151
petdeface-qa = "petdeface.qa:main"
7252

73-
[project.optional-dependencies]
74-
dev = [
75-
"black>=23.7.0",
76-
"flake8>=6.1.0",
77-
"isort>=5.12.0",
78-
"pre-commit>=3.3.3",
79-
"pytest>=7.4.2",
80-
"sphinx>=7.2.6",
81-
"sphinx-rtd-theme>=3.0.1",
82-
"jupyterlab>=4.4.1",
83-
"notebook>=7.4.1",
84-
"nbconvert>=7.16.6",
85-
"ipywidgets>=8.1.6",
86-
"matplotlib>=3.10.1",
87-
"pandas>=2.2.3",
88-
"pyqt6>=6.9.0",
89-
]
90-
91-
[project.scripts]
92-
petdeface = "petdeface.petdeface:main"
93-
petdeface-qa = "petdeface.qa:main"
94-
petdeface_qa = "petdeface.qa:main"
95-
9653
# please update the bids version to the latest compliant version when making modifications to this code here
9754
[tool.bids]
9855
bids_version = "1.8.0"
@@ -109,15 +66,13 @@ build-backend = "setuptools.build_meta"
10966
[tool.setuptools]
11067
packages = ["petdeface"]
11168
include-package-data = false
112-
package-data = {
113-
"petdeface" = [
114-
"data/sub-01/**/*T1w.nii",
115-
"data/sub-01/**/*T1w.nii.gz",
116-
"data/sub-01/**/*T1w.json",
117-
"data/sub-mni305/**/*T1w.nii",
118-
"data/sub-mni305/**/*T1w.nii.gz",
119-
"data/sub-mni305/**/*T1w.json",
120-
"templates/*.html"
121-
]
122-
}
69+
package-data = { "petdeface" = [
70+
"data/sub-01/**/*T1w.nii",
71+
"data/sub-01/**/*T1w.nii.gz",
72+
"data/sub-01/**/*T1w.json",
73+
"data/sub-mni305/**/*T1w.nii",
74+
"data/sub-mni305/**/*T1w.nii.gz",
75+
"data/sub-mni305/**/*T1w.json",
76+
"templates/*.html"
77+
] }
12378
exclude-package-data = { "petdeface" = ["data/sub-02/**/*"] }

0 commit comments

Comments
 (0)