-
Notifications
You must be signed in to change notification settings - Fork 35
/
pyproject.toml
140 lines (126 loc) · 3.14 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
[build-system]
requires = ["setuptools>=45", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[project]
name = "gwemopt"
authors = [
{name = "Michael Coughlin", email = "[email protected]"},
]
description = "A python package for GW-EM Followup Optimization"
readme = "README.md"
requires-python = ">=3.9"
license = {text = "GPLv3"}
classifiers = [
"Programming Language :: Python :: 3",
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'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)',
]
dependencies = [
'numba',
'numpy>=1.7.1',
'scipy>=1.2.1',
'matplotlib>=1.2.0',
'astropy>=1.1.1',
'astropy-healpix',
'python-dateutil',
'mocpy>=0.16.0',
'astroquery',
'astroplan',
'ephem',
'pyyaml',
'joblib',
'ligo-segments',
'ligo.skymap',
'lxml',
'h5py',
'healpy',
'ortools',
'pandas',
'pulp',
'shapely',
'tables',
'regions'
]
dynamic = ["version"]
[project.optional-dependencies]
test = [
'pytest',
'pytest-runner',
'pytest-rerunfailures',
'coverage',
'coveralls',
'freezegun',
]
[project.scripts]
gwemopt-run = "gwemopt.run:run"
[tool.setuptools_scm]
write_to = "gwemopt/_version.py"
[tool.setuptools]
packages = ["gwemopt"]
[tool.setuptools.package-data]
gwemopt = ['data/*/*']
[tool.coverage.run]
source = ["gwemopt"]
omit = [
"gwemopt/tests/*",
"gwemopt/__main__.py",
"gwemopt/_version.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.versioneer]
VCS = "git"
style = "pep440"
versionfile_source = "gwemopt/_version.py"
versionfile_build = "gwemopt/_version.py"
tag_prefix = "v"
parentdir_prefix = "gwemopt-"
[tool.pytest.ini_options]
addopts = "--verbose -r s"
[tool.bumpver]
current_version = "0.3.6"
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}"',
]