File: pyproject.toml

package info (click to toggle)
python-sigima 1.0.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 24,956 kB
  • sloc: python: 33,326; makefile: 3
file content (150 lines) | stat: -rw-r--r-- 4,433 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
# Sigima setup configuration file

[project]
name = "sigima"
authors = [{ name = "Pierre Raybaut", email = "p.raybaut@codra.fr" }]
maintainers = [
    { name = "DataLab Platform Developers", email = "p.raybaut@codra.fr" },
]
description = "Scientific computing engine for 1D signals and 2D images, part of the DataLab open-source platform."
readme = "README.md"
license = { file = "LICENSE" }
classifiers = [
    "Development Status :: 4 - Beta",
    "Intended Audience :: Developers",
    "Intended Audience :: Education",
    "Intended Audience :: Science/Research",
    "Intended Audience :: End Users/Desktop",
    "Operating System :: MacOS :: MacOS X",
    "Operating System :: Microsoft :: Windows :: Windows 7",
    "Operating System :: Microsoft :: Windows :: Windows 8",
    "Operating System :: Microsoft :: Windows :: Windows 10",
    "Operating System :: Microsoft :: Windows :: Windows 11",
    "Operating System :: POSIX :: Linux",
    "Programming Language :: Python :: 3.9",
    "Programming Language :: Python :: 3.10",
    "Programming Language :: Python :: 3.11",
    "Programming Language :: Python :: 3.12",
    "Programming Language :: Python :: 3.13",
    "Topic :: Scientific/Engineering",
    "Topic :: Scientific/Engineering :: Image Processing",
    "Topic :: Software Development :: Libraries :: Python Modules",
]
requires-python = ">=3.9, <4"
dependencies = [
    "guidata >= 3.13",
    "NumPy >= 1.22",
    "SciPy >= 1.10.1",
    "scikit-image >= 0.19.2",
    "pandas >= 1.4",
    "PyWavelets >= 1.2",
    "packaging >= 21.3",
    "typing-extensions >= 4.0",
    "makefun >= 1.13.1",
]
dynamic = ["version"]

[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[project.urls]
Homepage = "https://github.com/DataLab-Platform/Sigima"
Documentation = "https://sigima.readthedocs.io/"

[project.optional-dependencies]
opencv = ["opencv-python-headless >= 4.8.1.78"]
dev = ["build", "babel","ruff", "pylint", "Coverage", "pre-commit"]
doc = [
    "sphinx",
    "sphinx-gallery",
    "sphinx_intl",
    "myst_parser",
    "sphinx_design",
    "sphinx-copybutton",
    "pydata-sphinx-theme",
    "sphinx-gallery",
    "qtpy",
    "PyQt5",
    "plotpy",
    "opencv-python-headless >= 4.8.1.78",
]
test = ["pytest", "pytest-xvfb"]
qt = ["qtpy", "PyQt5", "plotpy"]

[tool.setuptools.packages.find]
include = ["sigima*"]

[tool.setuptools.package-data]
"*" = [
    "*.pdf",
    "*.png",
    "*.svg",
    "*.mo",
    "*.txt",
    "*.json",
    "*_test.h5",
    "*.h5ima",
    "*.h5sig",
    "*.npy",
    "*.dcm",
    "*.scor-data",
    "*.tiff",
    "*.jpg",
    "*.sif",
    "*.csv",
    "*.mca",
    "*.mat",
    "*.js",
    "*.css",
    "*.html",
    "*.buildinfo",
    "*.inv",
]

[tool.setuptools.dynamic]
version = { attr = "sigima.__version__" }

[tool.pytest.ini_options]
addopts = "sigima --import-mode=importlib"
filterwarnings = [
    # Ignore specific deprecation warnings from external libraries
    "ignore::DeprecationWarning:pandas.*",
    "ignore::DeprecationWarning:scipy.*",
    # Ignore specific user warnings from Sigima (expected behavior)
    "ignore:Multiple crossing points found. Returning last.:UserWarning:sigima.*",
]

[tool.ruff]
exclude = [".git", ".vscode", "build", "dist", "*.ipynb"]
line-length = 88                               # Same as Black.
indent-width = 4                               # Same as Black.
target-version = "py39"                        # Assume Python 3.9.

[tool.ruff.lint]
# all rules can be found here: https://beta.ruff.rs/docs/rules/
select = [
    "D202",   # No blank lines allowed after function docstring.
    "D403",   # First word of docstring should be properly capitalized.
    "E",      # Pycodestyle error
    "F",      # Pyflakes
    "I",      # Isort
    "NPY201", # Numpy-specific checks
    "RUF022", # Unsorted __all__
    "W"       # Pycodestyle warning
]
ignore = [
    "E203", # space before : (needed for how black formats slicing)
]

[tool.ruff.format]
quote-style = "double"            # Like Black, use double quotes for strings.
indent-style = "space"            # Like Black, indent with spaces, rather than tabs.
skip-magic-trailing-comma = false # Like Black, respect magic trailing commas.
line-ending = "auto"              # Like Black, automatically detect the appropriate line ending.

[tool.ruff.lint.per-file-ignores]
"doc/*" = ["E402"]

[tool.ruff.lint.pydocstyle]
convention = "google"