-
Notifications
You must be signed in to change notification settings - Fork 5
/
pyproject.toml
171 lines (155 loc) · 4.29 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
[build-system]
requires = ["setuptools>=45",
"setuptools_scm[toml]>=8.0",
"wheel"]
build-backend = 'setuptools.build_meta'
[project]
name = "roentgen"
dynamic = ["version"]
description = "A Python package for the quantitative analysis of the interaction of energetic x-rays with matter. This package is named after one of the discoverers of X-rays, Wilhelm Rontgen."
readme = "README.rst"
license = {file = "licenses/LICENSE.rst"}
authors = [
{name="Steven Christe", email="[email protected]"},
{name="Nabil Freij", email="[email protected]"},
{name="Shane Maloney", email="[email protected]"},
{name="Dan Ryan", email="[email protected]"}
]
requires-python = ">=3.10"
keywords = ["python", "x-ray", "roentgen"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Topic :: Scientific/Engineering :: Astronomy",
"Topic :: Scientific/Engineering :: Medical Science Apps.",
"Topic :: Scientific/Engineering :: Physics",
"Intended Audience :: Science/Research",
"Natural Language :: English",
]
dependencies = [
'astropy>=5.1',
'scipy>=1.9.1',
'numpy>=1.23.3',
]
[project.optional-dependencies]
dev = [
'pytest>=7.1.3',
'pytest-astropy>=0.10.0',
'isort>=5.10.1',
'black>=22.10.0',
'flake8>=5.0.4',
'coverage>=6.5.0',
'rstcheck',
'pre-commit>=3.6.0',
]
tests = [
'pytest>=7.1.3',
'pytest-astropy>=0.10.0',
'coverage>=6.5.0',
'pytest_doctestplus',
]
style = [
'isort>=5.10.1',
'black>=24.2.0',
'flake8>=5.0.4',
'coverage>=6.5.0',
'pre-commit>=3.6.0'
]
docs = [
'matplotlib>3.6.0',
'sphinx>=5.2.3',
'sphinx-automodapi>=0.14.1',
'graphviz>=0.20.1',
'rstcheck',
'pytest_doctestplus'
]
gui = [
'bokeh>=3',
]
[tool.setuptools.package-data]
hermes_core = ["roentgen/data/*"]
[tool.setuptools]
packages = ["roentgen"]
[tool.setuptools_scm]
[tool.pytest]
minversion = 3.0
testpaths = ["roentgen", "docs"]
norecursedirs = ["build", "docs/_build", "docs/generated", "*.egg-info", "examples"]
doctest_plus = "enabled"
text_file_format = "rst"
addopts = "--doctest-modules"
astropy_header = true
filterwarnings = [
# This is due to dependencies building with a numpy version different from
# the local installed numpy version, but should be fine
# See https://github.com/numpy/numpy/issues/15748#issuecomment-598584838
"ignore:numpy.ufunc size changed:RuntimeWarning",
"ignore:numpy.ndarray size changed:RuntimeWarning",
# See https://github.com/astropy/extension-helpers/issues/23
"ignore:Distutils was imported before Setuptools"
]
[tool.rstcheck]
report_level = "WARNING"
ignore_roles = [
"py:class",
"py:class",
"file",
]
ignore_directives = [
"plot",
"doctest",
"automodapi",
"csv-table",
]
ignore_messages = "not referenced"
[tool.isort]
profile = "black"
src_paths = ["roentgen", "test"]
line_length = 100
balanced_wrapping = true
default_section = "THIRDPARTY"
include_trailing_comma = true
known_astropy = "astropy"
known_first_party = "roentgen"
length_sort = false
length_sort_sections="stdlib"
multi_line_output = 3
no_lines_before = "LOCALFOLDER"
sections = ["STDLIB", "THIRDPARTY", "ASTROPY", "FIRSTPARTY", "LOCALFOLDER"]
[tool.black]
line_length = 100
[tool.coverage.run]
omit = [
"roentgen/conftest.py",
"roentgen/*setup_package*",
"roentgen/tests/*",
"roentgen/*/tests/*",
"roentgen/extern/*",
"roentgen/version*",
"*/roentgen/_sunpy_init*",
"*/roentgen/conftest.py",
"*/roentgen/*setup_package*",
"*/roentgen/tests/*",
"*/roentgen/*/tests/*",
"*/roentgen/extern/*",
"*/roentgen/version*"
]
[tool.coverage.html]
directory = "coverage"
[tool.coverage.report]
exclude_lines = [
# Have to re-enable the standard pragma
"pragma: no cover",
# Don't complain about packages we have installed
"except ImportError",
# Don't complain if tests don't hit assertions
"raise AssertionError",
"raise NotImplementedError",
# Ignore branches that don't pertain to this version of Python
"pragma: py{ignore_python_version}",
# Don't complain about IPython completion helper
"def _ipython_key_completions_",
]