-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathpyproject.toml
More file actions
180 lines (161 loc) · 3.98 KB
/
pyproject.toml
File metadata and controls
180 lines (161 loc) · 3.98 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
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
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "jsmetrics"
version = "0.3.1"
description = "Library of algorithms and metrics used to characterise jet streams."
readme = "README.rst"
requires-python = ">=3.10.0"
license = { text = "MIT License" }
authors = [
{ name = "Thomas Keel", email = "thomasjames.keel@gmail.com" },
]
keywords = [
"jet-stream",
"climate",
"metrics",
"algorithms",
"xarray",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering :: Atmospheric Science",
]
dependencies = [
"numpy",
"pandas>=1.4",
"matplotlib>=3.3.2",
"xarray>=2023.1.0",
"scipy>=1.5.3",
"dask[array]",
"netCDF4>=1.5.5.1",
"bottleneck",
"numba",
"cf_xarray>=0.6.1",
"cftime>=1.4.1",
"Shapely",
]
[project.optional-dependencies]
dev = [
"bump2version",
"black",
"pytest",
"pytest-cov",
"flake8",
"parameterized",
"pre_commit",
"pylint",
"sphinx",
"numpydoc",
"sphinx-rtd-theme",
]
data_install = ["cdsapi>=0.5.1"]
[project.urls]
Homepage = "https://github.com/Thomasjkeel/jsmetrics"
[tool.setuptools.packages.find]
include = ["jsmetrics*"]
[tool.setuptools]
include-package-data = true
zip-safe = false
[tool.bumpversion]
current_version = "0.3.1"
commit = true
message = "Bump version: {current_version} → {new_version}"
commit_args = ""
allow_dirty = false
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)(\\-(?P<release>[a-z]+))?"
serialize = ["{major}.{minor}.{patch}-{release}", "{major}.{minor}.{patch}"]
search = "{current_version}"
replace = "{new_version}"
regex = false
ignore_missing_version = false
tag = false
sign_tags = false
tag_name = "v{new_version}"
tag_message = "Bump version: {current_version} → {new_version}"
[[tool.bumpversion.files]]
filename = "jsmetrics/__init__.py"
search = "__version__ = \"{current_version}\""
replace = "__version__ = \"{new_version}\""
[tool.bumpversion.parts.release]
optional_value = "gamma"
values = ["alpha", "beta", "gamma"]
[tool.flake8]
max-line-length = 79
exclude = [
".git",
"docs/conf.py",
"build",
".eggs",
"jsmetrics/__init__.py",
]
ignore = ["E203", "E501", "W503"]
[tool.pytest.ini_options]
addopts = "--verbose"
[tool.isort]
profile = "black"
# ------------------------------------------------------------
# BLACK CONFIGURATION
# ------------------------------------------------------------
[tool.black]
line-length = 79
target-version = ["py38", "py39", "py310", "py311"]
skip-string-normalization = true
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.tox
| \.eggs
| \.venv
| build
| dist
)/
'''
# ------------------------------------------------------------
# TOX CONFIGURATION
# ------------------------------------------------------------
[tool.tox]
requires = ["tox>=4.0", "pip>=21.0"]
env_list = ["py38", "py39", "py310", "py311", "flake8"]
opts = "-v"
[tool.tox.envs.py]
set_env = { PYTHONPATH = "{toxinidir}" }
deps = ["-r{toxinidir}/requirements_dev.txt"]
commands = [
"pip install -U pip",
"pytest --basetemp={envtmpdir}",
]
[tool.tox.envs.flake8]
basepython = "python"
deps = ["flake8"]
commands = ["flake8 jsmetrics tests"]
# ------------------------------------------------------------
# COVERAGE CONFIGURATION
# ------------------------------------------------------------
[tool.coverage.run]
relative_files = true
branch = true
source = ["jsmetrics"]
[tool.coverage.report]
show_missing = true
skip_covered = true
fail_under = 85
precision = 2
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if self\\.debug",
"if __name__ == .__main__.:",
]