File: pyproject.toml

package info (click to toggle)
nabu 2025.2.4-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,204 kB
  • sloc: python: 38,394; lisp: 363; ansic: 58; sh: 31; makefile: 3
file content (156 lines) | stat: -rw-r--r-- 4,806 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "nabu"
authors = [
    {name = "Pierre Paleo", email = "pierre.paleo@esrf.fr"},
    {name = "Henri Payno", email = "henri.payno@esrf.fr"},
    {name = "Alessandro Mirone", email = "mirone@esrf.fr"},
    {name = "Jérôme Lesaint", email = "jerome.lesaint@esrf.fr"},
]
maintainers = [
    {name = "Pierre Paleo", email = "pierre.paleo@esrf.fr"}
]
dynamic = ["version"]
description = "Nabu - Tomography software"
readme = "README.md"
requires-python = ">=3.10"
keywords = [
    "tomography",
    "reconstruction",
    "X-ray imaging",
    "synchrotron radiation",
    "High Performance Computing",
    "Parallel geometry",
    "Conebeam geometry",
    "Helical geometry",
    "Ring artefact correction",
    "Geometric calibration",
]
license = "MIT"
license-files = ["LICENSE"]
classifiers = [
    "Development Status :: 5 - Production/Stable",
    "Intended Audience :: Developers",
    "Intended Audience :: Science/Research",
    "Programming Language :: Python :: 3",
    "Programming Language :: Python :: 3.10",
    "Programming Language :: Python :: 3.11",
    "Programming Language :: Python :: 3.12",
    "Programming Language :: Python :: 3.13",
    "Environment :: Console",
    "Operating System :: Unix",
    "Operating System :: MacOS :: MacOS X",
    "Operating System :: POSIX",
    "Topic :: Scientific/Engineering :: Physics",
    "Topic :: Scientific/Engineering :: Medical Science Apps.",

]
dependencies = [
    "numpy > 1.9.0",
    "scipy",
    "h5py>=3.0",
    "silx >= 0.15.0",
    "tomoscan >= 2.3.0",
    "psutil",
    "pytest",
    "tifffile",
    "tqdm",
    "scikit-image",
    "PyWavelets",
    "glymur",
    "pyvkfft",
]
#packages = find



[project.urls]
Homepage = "https://gitlab.esrf.fr/tomotools/nabu"
Documentation = "http://www.silx.org/pub/nabu/doc"
Repository = "https://gitlab.esrf.fr/tomotools/nabu/-/releases"
Changelog = "https://gitlab.esrf.fr/tomotools/nabu/-/blob/master/CHANGELOG.md"

[project.optional-dependencies]
full = [
    "pycuda!=2024.1.1",
    "pycudwt",
    "sluurp >=0.3",
]
full_nocuda = [
    "scikit-image",
    "PyWavelets",
    "glymur",
    "sluurp >=0.3",
    "pyvkfft",
]
doc = [
    "mkdocs",
    "mkdocs-material",
    "mkdocs-material-extensions",
    "mkdocs-gen-files",
    "mkdocs-markdownextradata-plugin",
    "mkdocs-pagetree-plugin",
    "mkapi",
    "mkdocs-jupyter",
    "nbconvert",
    "markdown-exec",
]

[project.scripts]
nabu = "nabu.app.reconstruct:main"
nabu-config = "nabu.app.bootstrap:bootstrap"
nabu-test = "nabu.tests:nabu_test"
nabu-histogram = "nabu.app.histogram:histogram_cli"
nabu-rotate = "nabu.app.rotate:rotate_cli"
nabu-double-flatfield = "nabu.app.double_flatfield:dff_cli"
nabu-validator = "nabu.app.validator:main"
nabu-helical = "nabu.app.reconstruct_helical:main_helical"
nabu-helical-prepare-weights-double = "nabu.app.prepare_weights_double:main"
nabu-stitching-config = "nabu.app.bootstrap_stitching:bootstrap_stitching"
nabu-stitching = "nabu.app.stitching:main"
nabu-cast = "nabu.app.cast_volume:main"
nabu-compare-volumes = "nabu.app.compare_volumes:compare_volumes_cli"
nabu-shrink-dataset = "nabu.app.shrink_dataset:shrink_cli"
nabu-composite-cor = "nabu.app.composite_cor:main"
nabu-poly2map = "nabu.app.create_distortion_map_from_poly:create_distortion_maps_entry_point"
nabu-diag2pix = "nabu.app.diag_to_pix:main"
nabu-diag2rot = "nabu.app.diag_to_rot:main"
nabu-multicor = "nabu.app.multicor:main"
nabu-reduce-dark-flat = "nabu.app.reduce_dark_flat:main"
nabu-display-timings = "nabu.app.parse_reconstruction_log:parse_reclog_cli"
nabu-pcaflats = "nabu.app.pcaflats:main"
nabu-estimate-motion = "nabu.app.estimate_motion:estimate_motion"
nabu-zflip = "nabu.app.flip_volume_vertically:flip_volume_vertically_app"

[tool.setuptools.dynamic]
version = {attr = "nabu.version"}
#readme = {file = ["README.md"]}

[tool.setuptools.packages.find]
where = ["."]  # list of folders that contain the packages (["."] by default)
include = ["nabu*"]  # package names should match these glob patterns (["*"] by default)
exclude = ["sandbox","build*"]  # exclude packages matching these glob patterns (empty by default)
# namespaces = false  # to disable scanning PEP 420 namespaces (true by default)

[tool.setuptools.package-data]
"nabu.cuda" = ["src/*.cu", "src/*.h"]
"nabu.opencl" = ["src/*.cl", "src/*.h"]
"nabu.resources" = ["templates/*.conf"]


[tool.bandit]
exclude_dirs = []
tests = []
skips = [
    "B101", # TODO - to be handled properly
    "B105", # B105:hardcoded_password_string - already accounted by ruff
    "B110", # Try, Except, Pass detected. - already accounted by ruff
]

[tool.black]
line-length = 120
target-version = ["py312"]
extend-exclude = "nabu/thirdparty/"