forked from gammapy/gammapy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
48 lines (44 loc) · 1.05 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
[build-system]
requires = [
"setuptools >= 65",
"Cython",
'numpy>=2.0.0rc1',
'setuptools_scm[toml] >= 8',
]
build-backend = "setuptools.build_meta"
[tool.black]
line-length = 88
target-version = ['py38', 'py39', 'py310', 'py311', 'py312']
include = '\.pyi?$'
exclude = '''
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| gammapy/extern
)/
'''
[tool.pytest.ini_options]
filterwarnings = [
"error::astropy.utils.exceptions.AstropyDeprecationWarning",
"error::gammapy.utils.deprecation.GammapyDeprecationWarning",
"error::matplotlib.MatplotlibDeprecationWarning",
]
[tool.setuptools_scm]
version_file = "gammapy/version.py"
version_file_template = """\
# Note that we need to fall back to the hard-coded version if either
# setuptools_scm can't be imported or setuptools_scm can't determine the
# version, so we catch the generic 'Exception'.
try:
from setuptools_scm import get_version
version = get_version(root='..', relative_to=__file__)
except Exception:
version = '{version}'
"""