-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
195 lines (178 loc) · 4.61 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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
# -- build
[build-system]
requires = [
"setuptools>=61",
"setuptools_scm[toml]>=3.4.3",
"wheel",
]
build-backend = "setuptools.build_meta"
[project]
name = "gwpy"
description = "A python package for gravitational-wave astrophysics"
readme = "README.md"
authors = [
{ name = "Duncan Macleod", email = "[email protected]" },
]
license = { text = "GPL-3.0-or-later" }
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Astronomy",
"Topic :: Scientific/Engineering :: Physics",
]
# requirements
requires-python = ">=3.8"
dependencies = [
"astropy >=4.3.0",
"dateparser >=1.1.4",
"dqsegdb2",
"gwdatafind >=1.1.0",
"gwosc >=0.5.3",
"h5py >=3.0.0",
"ligo-segments >=1.0.0",
"ligotimegps >=1.2.1",
"matplotlib >=3.3.0",
"numpy >=1.19",
"python-dateutil",
"requests",
"scipy >=1.5.0",
"tqdm >=4.10.0",
]
# dynamic properties set by tools
dynamic = [
"version",
]
[project.optional-dependencies]
# test suite
test = [
"coverage[toml] >=5.0",
"pytest >=3.9.1",
"pytest-freezer",
"pytest-cov >=2.4.0",
"pytest-requires",
"pytest-socket",
"pytest-xdist",
"requests-mock",
]
# astronomy/cosmology calculations
astro = [
"inspiral-range >=0.5.0",
]
# sphinx documentation
docs = [
"numpydoc >=0.8.0",
"Sphinx >=4.4.0",
"sphinx-automodapi",
"sphinx-immaterial >=0.7.3",
"sphinx-panels >=0.6.0",
"sphinxcontrib-programoutput",
]
# development environments
dev = [
"ciecplib",
"lalsuite ; sys_platform != 'win32'",
"lscsoft-glue ; sys_platform != 'win32'",
"psycopg2",
"pycbc >=1.13.4 ; sys_platform != 'win32'",
"pymysql",
"pyRXP",
"python-ligo-lw >=1.7.0 ; sys_platform != 'win32'",
"sqlalchemy",
"uproot >=4.1.5",
]
# conda packages for development
# NOTE: this isn't a valid extra to install with pip
conda = [
"lxml !=4.9.1 ; sys_platform == 'win32'",
"python-framel >=8.40.1,!=8.46.0",
"python-ldas-tools-framecpp ; sys_platform != 'win32'",
"python-nds2-client",
]
[project.scripts]
gwpy-plot = "gwpy.cli.gwpy_plot:main"
[project.urls]
"Bug Tracker" = "https://github.com/gwpy/gwpy/issues"
"Discussion Forum" = "https://gwpy.slack.com"
"Documentation" = "https://gwpy.github.io/docs/"
"Source Code" = "https://github.com/gwpy/gwpy"
[tool.setuptools]
license-files = [ "LICENSE" ]
[tool.setuptools.packages.find]
# note: this is only required in CI, which otherwise fails because
# GHA is creating a temporary directory that setuptools
# discovers as another top-level package
include = [
"gwpy*",
]
[tool.setuptools_scm]
write_to = "gwpy/_version.py"
# -- coverage.py
[tool.coverage.run]
source = [ "gwpy" ]
omit = [
# don't report coverage for _version.py
# (generated automatically by setuptools-scm)
"*/_version.py",
]
[tool.coverage.report]
# print report with one decimal point
precision = 1
# -- pytest
[tool.pytest.ini_options]
addopts = "-r a"
filterwarnings = [
# https://github.com/gwastro/pycbc/pull/3701
"ignore:`np.int` is a deprecated alias::pycbc..*",
# https://git.ligo.org/lscsoft/glue/-/merge_requests/69
"ignore:PY_SSIZE_T_CLEAN will be required",
# https://github.com/pyreadline/pyreadline/issues/65
"ignore:Using or importing the ABCs::pyreadline",
# ignore numpy ndarray size warnings
"ignore:numpy.ndarray size changed, may indicate binary incompatibility",
# ignore warnings from distutils.version
"ignore:distutils Version::matplotlib",
"ignore:distutils Version::distutils", # actually setuptools._distutils
]
xfail_strict = true
# -- rstcheck
[tool.rstcheck]
ignore_directives = [
# matplotlib
"plot",
# sphinx
"include",
# sphinx.ext.autosummary
"autoclass",
"autofunction",
"automethod",
"automodule",
"autosummary",
# sphinx.ext.ifconfig
"ifconfig",
# sphinx-automodapi
"automodsumm",
# sphinx-immaterial
"md-tab-set",
# sphinx-panels
"tabbed",
# sphinxcontrib-programoutput
"command-output",
]
ignore_roles = [
# doxylink
"lal",
"lalframe",
]
# rstcheck doesn't known about our referenced.txt which is implicitly included
# in all pages via Sphinx's epilog option
ignore_messages = "(Unknown target name:.*|Undefined substitution referenced: .*)"