-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpyproject.toml
More file actions
104 lines (87 loc) · 2.71 KB
/
Copy pathpyproject.toml
File metadata and controls
104 lines (87 loc) · 2.71 KB
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
# SPDX-FileCopyrightText: 2025 GFZ Helmholtz Centre for Geosciences
#
# SPDX-License-Identifier: Apache-2.0
[build-system]
requires = ["setuptools>=45", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[project]
name = "swvo"
authors = [
{ name = "Bernhard Haas, Sahil Jhawar, Stefano Bianco, Ruggero Vasile", email = "sec15@gfz.de" },
]
description = "Tools for downloading and reading space-weather data and geomagnetic indices."
readme = "README.md"
requires-python = ">=3.11"
license = "Apache-2.0"
license-files = ["LICENSES/Apache-2.0.txt"]
classifiers = [
"Programming Language :: Python :: 3",
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
'Programming Language :: Python :: 3.14',
'Operating System :: POSIX',
'Operating System :: Unix',
'Operating System :: MacOS',
]
dynamic = ["dependencies", "optional-dependencies", "version"]
[tool.setuptools.dynamic]
version = { attr = "swvo.__version__" }
dependencies = { file = ["requirements.txt"] }
optional-dependencies.docs = { file = ["docs/requirements.txt"] }
[project.urls]
Homepage = "https://github.com/GFZ/SWVO"
Documentation = "https://swvo.readthedocs.io/en/latest/"
Download = "https://pypi.org/project/swvo/#files"
Tracker = "https://github.com/GFZ/SWVO/issues"
[tool.setuptools.packages.find]
include = ["swvo*"]
[tool.setuptools.package-data]
"swvo" = ["py.typed"]
[tool.coverage.run]
source = ["swvo"]
[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 = "1.2.4"
version_pattern = "MAJOR.MINOR.PATCH[PYTAGNUM]"
commit_message = "version: bump version {old_version} -> {new_version}"
commit = true
tag = true
push = true
[tool.bumpver.file_patterns]
"pyproject.toml" = ['current_version = "{version}"']
"swvo/__init__.py" = ['__version__ = "{version}"']
[tool.ty.src]
include = ["swvo"]
exclude = ["tests"]
[[tool.ty.overrides]]
include = ["swvo"]
[tool.ty.overrides.rules]
invalid-return-type = "ignore"