-
Notifications
You must be signed in to change notification settings - Fork 18
/
pyproject.toml
158 lines (148 loc) · 5.93 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
[build-system]
requires = [
"setuptools>=64",
"setuptools_scm>=8",
"extension-helpers",
"numpy>=2.0.0",
]
build-backend = "setuptools.build_meta"
[project]
name = "ligo.skymap"
dynamic = ["version"]
authors = [{name = "Leo Singer", email = "[email protected]"}]
license = {text = "GPL-3.0-or-later"}
description = "Tools for reading, writing, manipulating, and making LIGO/Virgo/KAGRA sky maps"
readme = "README.rst"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Operating System :: MacOS",
"Operating System :: POSIX",
"Operating System :: POSIX :: Linux",
"Operating System :: Unix",
"Programming Language :: C",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Astronomy",
"Topic :: Scientific/Engineering :: Physics",
]
requires-python = ">=3.10"
dependencies = [
"astroplan>=0.7", # https://github.com/astropy/astroplan/issues/479
"astropy>=6.0", # https://github.com/astropy/astropy/pull/14980
"astropy-healpix>=0.3", # https://github.com/astropy/astropy-healpix/pull/106
"healpy",
"h5py",
"lalsuite>=6.82, !=7.2",
"ligo-gracedb>=2.0.1",
"ligo-segments>=1.2.0",
"matplotlib>=3.5.0", # https://matplotlib.org/stable/api/prev_api_changes/api_changes_3.6.0.html#pending-deprecation-top-level-cmap-registration-and-access-functions-in-mpl-cm
"networkx",
"numpy>=1.23.0",
"pillow>=2.5.0",
"ptemcee",
"python-ligo-lw>=1.8.0",
"pytz",
"reproject>=0.3.2",
"scipy>=0.14, !=1.10.0", # https://git.ligo.org/lscsoft/ligo.skymap/-/issues/36
"shapely>=2.0.0",
"tqdm>=4.27.0",
]
[project.optional-dependencies]
test = [
"astroquery",
"pytest-astropy",
"pytest-mpl",
]
docs = [
"matplotlib >= 3.9.1", # https://github.com/matplotlib/matplotlib/pull/28289
"sphinx >= 4.0",
"sphinx-argparse >= 0.3.0", # https://github.com/alex-rudakov/sphinx-argparse/pull/126
"sphinx-astropy",
"sphinxcontrib-mermaid >= 0.7.1", # https://github.com/mgaitan/sphinxcontrib-mermaid/issues/72
"tomli >= 1.1.0 ; python_version < \"3.11\"",
]
[project.urls]
homepage = "https://lscsoft.docs.ligo.org/ligo.skymap/"
"Bug Tracker" = "https://git.ligo.org/lscsoft/ligo.skymap/issues"
"Change Log" = "https://lscsoft.docs.ligo.org/ligo.skymap/changes.html"
"Documentation" = "https://lscsoft.docs.ligo.org/ligo.skymap"
"GitHub" = "https://github.com/lpsinger/ligo.skymap"
"Source Code" = "https://git.ligo.org/lscsoft/ligo.skymap"
[project.scripts]
bayestar-inject = "ligo.skymap.tool.bayestar_inject:main"
bayestar-localize-coincs = "ligo.skymap.tool.bayestar_localize_coincs:main"
bayestar-localize-lvalert = "ligo.skymap.tool.bayestar_localize_lvalert:main"
bayestar-mcmc = "ligo.skymap.tool.bayestar_mcmc:main"
bayestar-realize-coincs = "ligo.skymap.tool.bayestar_realize_coincs:main"
bayestar-sample-model-psd = "ligo.skymap.tool.bayestar_sample_model_psd:main"
ligo-skymap-combine = "ligo.skymap.tool.ligo_skymap_combine:main"
ligo-skymap-contour = "ligo.skymap.tool.ligo_skymap_contour:main"
ligo-skymap-contour-moc = "ligo.skymap.tool.ligo_skymap_contour_moc:main"
ligo-skymap-flatten = "ligo.skymap.tool.ligo_skymap_flatten:main"
ligo-skymap-unflatten = "ligo.skymap.tool.ligo_skymap_unflatten:main"
ligo-skymap-from-samples = "ligo.skymap.tool.ligo_skymap_from_samples:main"
ligo-skymap-constellations = "ligo.skymap.tool.ligo_skymap_constellations:main"
ligo-skymap-plot = "ligo.skymap.tool.ligo_skymap_plot:main"
ligo-skymap-plot-airmass = "ligo.skymap.tool.ligo_skymap_plot_airmass:main"
ligo-skymap-plot-coherence = "ligo.skymap.tool.ligo_skymap_plot_coherence:main"
ligo-skymap-plot-observability = "ligo.skymap.tool.ligo_skymap_plot_observability:main"
ligo-skymap-plot-pp-samples = "ligo.skymap.tool.ligo_skymap_plot_pp_samples:main"
ligo-skymap-plot-stats = "ligo.skymap.tool.ligo_skymap_plot_stats:main"
ligo-skymap-plot-volume = "ligo.skymap.tool.ligo_skymap_plot_volume:main"
ligo-skymap-stats = "ligo.skymap.tool.ligo_skymap_stats:main"
[project.entry-points.pytest11]
omp-get-num-threads = "ligo.skymap.tests.plugins.omp"
[tool.setuptools.packages.find]
include = ["ligo.*"]
[tool.setuptools.package-data]
"ligo.skymap.io.tests" = ["data/*.hdf5", "data/*.xml.gz", "data/gstlal_reference_psd/*.xml.gz"]
"ligo.skymap.plot" = ["*.csv", "*.json"]
"ligo.skymap.plot.tests" = ["baseline/*.png"]
[tool.pytest.ini_options]
testpaths = "ligo/skymap"
astropy_header = true
doctest_plus = "enabled"
doctest_ufunc = "enabled"
omp_get_num_threads = true
filterwarnings = [
"error:unclosed file:ResourceWarning",
"error::pytest.PytestUnraisableExceptionWarning",
]
[tool.coverage.run]
source = ["{packagename}"]
omit = [
"ligo/skymap/_astropy_init*",
"ligo/skymap/conftest.py",
"ligo/skymap/extern/*",
"ligo/skymap/tests/*",
"ligo/skymap/*/tests/*",
"ligo/skymap/*/*/tests/*",
"ligo/skymap/version*",
"ligo/skymap/plot/cylon.py", # only used for generating color map
"*/ligo/skymap/_astropy_init*",
"*/ligo/skymap/conftest.py",
"*/ligo/skymap/extern/*",
"*/ligo/skymap/tests/*",
"*/ligo/skymap/*/tests/*",
"*/ligo/skymap/*/*/tests/*",
"*/ligo/skymap/version*",
"*/ligo/skymap/plot/cylon.py", # only used for generating color map
]
[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_",
]