-
Notifications
You must be signed in to change notification settings - Fork 58
/
Copy pathpyproject.toml
129 lines (116 loc) · 4.45 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
[build-system]
requires = ["setuptools>=45", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[project]
name = "nmma"
authors = [
{name = "Peter Tsun Ho Pang, Michael Coughlin, Tim Dietrich, Ingo Tews", email = "nuclear_multimessenger_astronomy@googlegroups.com"}
]
description = "A nuclear physics multi-messenger Bayesian inference library"
readme = "README.md"
requires-python = ">=3.9"
license = {text = "GPLv3"}
classifiers = [
"Programming Language :: Python :: 3",
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Intended Audience :: Science/Research',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: Developers',
'Natural Language :: English',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Astronomy',
'Topic :: Scientific/Engineering :: Physics',
'Operating System :: POSIX',
'Operating System :: Unix',
'Operating System :: MacOS',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
]
dynamic = ["dependencies", "optional-dependencies", "version"]
[tool.setuptools.dynamic]
version = {attr = "nmma.__version__"}
dependencies = {file = ["requirements.txt"]}
optional-dependencies.doc = { file = ["doc_requirements.txt"] }
optional-dependencies.grb = { file = ["grb_requirements.txt"] }
optional-dependencies.production = { file = ["production_requirements.txt"] }
[project.scripts]
nmma-generation = "nmma.pbilby.generation:main_nmma"
nmma-gw-generation = "nmma.pbilby.generation:main_nmma_gw"
nmma-analysis = "nmma.pbilby.analysis:main_nmma"
nmma-gw-analysis = "nmma.pbilby.analysis:main_nmma_gw"
lightcurve-analysis = "nmma.em.analysis:main"
lightcurve-analysis-lbol = "nmma.em.analysis_lbol:main"
lightcurve-analysis-condor = "nmma.em.analysis_condor:main"
lightcurve-injection-summary = "nmma.em.injection_summary:main"
lightcurve-injection-slurm-setup = "nmma.em.create_injection_slurm:main"
lightcurve-injection-condor-setup = "nmma.em.create_injection_condor:main"
lightcurve-manual = "nmma.em.manual:main"
lightcurve-marginalization = "nmma.em.lightcurve_marginalization:main"
combine-EOS = "nmma.em.combine_EOS:main"
create-lightcurve-slurm = "nmma.em.create_lightcurves_slurm:main"
create-lightcurve-condor = "nmma.em.create_lightcurves_condor:main"
create-svdmodel = "nmma.em.create_svdmodel:main"
svdmodel-benchmark = "nmma.em.svdmodel_benchmark:main"
svdmodel-download = "nmma.utils.models:main"
lightcurve-generation = "nmma.em.create_lightcurves:main"
lightcurve-detection = "nmma.em.detect_lightcurves:main"
nmma-create-injection = "nmma.eos.create_injection:main"
gwem-resampling = "nmma.em.gwem_resampling:main"
gwem-resampling-condor = "nmma.em.gwem_resampling_condor:main"
gwem-Hubble-estimate = "nmma.em.gwem_Hubble_estimate:main"
convert-skyportal-lcs = "tools.convert_skyportal_lcs:main"
resample-grid = "tools.resample_grid:main"
[project.urls]
Homepage = "https://github.com/nuclear-multimessenger-astronomy/nmma"
Documentation = "https://nuclear-multimessenger-astronomy.github.io/nmma/"
Download = "https://pypi.org/project/nmma/#files"
Tracker = "https://github.com/nuclear-multimessenger-astronomy/nmma/issues"
[tool.setuptools]
packages = ["nmma"]
[tool.setuptools.package-data]
gwemopt = ['data/*/*']
[tool.coverage.run]
source = ["nmma"]
omit = [
"nmma/tests/*",
"nmma/__main__.py",
]
[tool.coverage.report]
# Regexes for lines to exclude from consideration
exclude_lines = [
# Have to re-enable the standard pragma
"pragma: no cover",
# Don't complain about missing debug-only code:
"def __repr__",
# Don't complain if tests don't hit defensive assertion code:
"raise AssertionError",
"raise NotImplementedError",
"raise KeyError",
"except KeyError",
"raise ValueError",
"except JSONDecodeError:",
"raise requests.exceptions.RequestException",
# Don't complain if non-runnable code isn't run:
"if 0:",
"if False:",
'if __name__ == "__main__":',
"err =",
"logger.error",
"raise"
]
ignore_errors = true
[tool.isort]
profile = "black"
[tool.pytest.ini_options]
addopts = "--verbose -r s"
[tool.bumpver]
current_version = "0.1.4"
version_pattern = "MAJOR.MINOR.PATCH[PYTAGNUM]"
commit_message = "bump version {old_version} -> {new_version}"
commit = true
tag = true
push = true
[tool.bumpver.file_patterns]
"pyproject.toml" = ['current_version = "{version}"']
"nmma/__init__.py" = ['__version__ = "{version}"']