forked from acoular/acoular
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
173 lines (152 loc) · 4.89 KB
/
pyproject.toml
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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
#------------------------------------------------------------------------------
# Copyright (c) Acoular Development Team.
#------------------------------------------------------------------------------
[project]
name = "acoular"
dynamic = ["version"]
description = "Python library for acoustic beamforming"
requires-python = ">=3.10,<3.14"
authors = [
{name = "Acoular Development Team", email = "[email protected]"},
]
readme = "README.md"
license = {file = "LICENSE"}
keywords = [
"acoustics",
"beamforming",
"microphone array"
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Physics",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dependencies = [
"numpy",
"numba",
"scipy>=1.1.0",
"scikit-learn",
"tables",
"traits>=6.0",
]
maintainers = [
{name = "Adam Kujawski", email = "[email protected]"},
{name = "Art Pelling", email = "[email protected]"},
{name = "Ennes Sarradj", email = "[email protected]"},
{name = "Gert Herold", email = "[email protected]"},
{name = "Mikolaj Czuchaj", email = "[email protected]"},
{name = "Simon Jekosch", email = "[email protected]"},
]
[project.optional-dependencies]
full = [
"matplotlib",
"pylops",
"sounddevice",
]
docs = [
"ipython",
"graphviz",
"matplotlib",
"numpydoc",
"pickleshare",
"sounddevice",
"sphinx",
"sphinx_gallery",
"sphinxcontrib-bibtex",
"setuptools", # unfortunately still needed for sphinxcontrib-bibtex (https://github.com/mcmtroffaes/sphinxcontrib-bibtex/issues/345)
]
tests = [
"pytest",
"pytest-mock",
"pytest-cov",
"pytest-regtest",
"pytest-cases",
"pytest-env",
"pytest-profiling",
"sounddevice",
"pylops",
"traitsui",
"h5py",
"PyYAML",
]
dev = [
"acoular[docs,full,tests]",
"hatch",
"ruff==0.8.1", # remember to change version pin in docs/source/contributing/install.rst
]
[project.urls]
homepage = "https://acoular.org"
documentation = "https://acoular.org"
repository = "https://github.com/acoular/acoular"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.version]
path = "acoular/version.py"
[tool.hatch.envs.hatch-static-analysis]
dependencies = ["ruff==0.8.1"]
config-path = [".ruff.toml"]
[tool.hatch.envs.docs]
python = "3.13"
dependencies = [
"acoular[docs]"
]
[tool.hatch.envs.docs.scripts]
build = ["cd docs && make html"]
[tool.hatch.envs.tests]
dependencies = [
"acoular[tests]"
]
[[tool.hatch.envs.tests.matrix]]
python = ["3.10", "3.11", "3.12", "3.13"]
[tool.hatch.envs.tests.scripts]
import = ["python -c \"import acoular\""]
test = ["python -m pytest -v --durations=10 tests"]
reset_regtest = ["python -m pytest -v --regtest-reset tests/regression"]
profile = ["test --profile-svg"]
demo = ["python -c \"import acoular; acoular.demo.acoular_demo.run()\""]
coverage = [
"test --cov=acoular --cov-report html --cov-report term-missing",
"python -m pytest -v --cov=acoular --cov-report html --cov-report term-missing --cov-append --doctest-modules acoular",
]
doctest = ["python -m pytest --doctest-modules acoular"]
[tool.hatch.envs.tests.overrides]
platform.linux.pre-install-commands = ['cat /proc/cpuinfo']
platform.macos.pre-install-commands = ['sysctl -a machdep.cpu']
platform.windows.pre-install-commands = ['systeminfo']
[tool.hatch.build.targets.sdist]
include = [
"/acoular",
]
[tool.hatch.build.targets.wheel]
packages = ["acoular"]
[tool.pytest.ini_options]
filterwarnings = [
"error", # treat warnings as errors
"ignore::pluggy.PluggyTeardownRaisedWarning", # raised internally by pytest-regtest
"ignore:numpy.core.multiarray is deprecated*:DeprecationWarning", # raised internally by pylops
"ignore:module 'sre_parse' is deprecated:DeprecationWarning", # raised internally by traits
"ignore:module 'sre_constants' is deprecated:DeprecationWarning", # raised internally by traits
"ignore:The TBB threading layer requires TBB version:numba.core.errors.NumbaWarning", # raised internally by numba
"ignore:FNV hashing is not implemented in Numba:UserWarning", # raised internally by numba
"ignore:`scipy.special.sph_harm` is deprecated*:DeprecationWarning", # raised by SciPy
# Suppress warnings about unclosed files in tables at the end of the tests
"ignore:Closing remaining open file*:tables.exceptions.UnclosedFileWarning",
]
env = [
"OPENBLAS_NUM_THREADS=1"
]
[tool.coverage.run]
omit = [
"acoular/demo/acoular_demo.py",
"acoular/base.py",
"acoular/tfastfuncs.py",
"acoular/fastFuncs.py",
"acoular/deprecation",
]