-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathpyproject.toml
More file actions
152 lines (136 loc) · 3.77 KB
/
Copy pathpyproject.toml
File metadata and controls
152 lines (136 loc) · 3.77 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
[build-system]
requires = [
"setuptools>=80",
"setuptools_scm>=8",
]
build-backend = "setuptools.build_meta"
[project]
authors = [
{name = "Pyfive Development Team", email = "valeriu.predoi@ncas.ac.uk"},
{name = "Valeriu Predoi", email = "valeriu.predoi@ncas.ac.uk"},
{name = "David Hassell", email = "david.hassell@ncas.ac.uk"},
{name = "Bryan Lawrence", email = "bryan.lawrence@ncas.ac.uk"},
{name = "Jonathan Helmus", email = "jjhelmus@gmail.com"},
{name = "Kai Muehlbauer", email = "kai.muehlbauer@uni-bonn.de"},
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Natural Language :: English",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Atmospheric Science",
"Topic :: Scientific/Engineering :: Physics",
]
dynamic = [
"readme",
"version",
]
dependencies = [
"numpy>=2",
"typing-extensions",
]
description = "A pure python HDF5 reader"
license = "BSD-3-Clause"
license-files = ["LICENSE.txt"]
name = "pyfive"
requires-python = ">=3.10"
[project.scripts]
p5dump = "pyfive.p5dump:main"
[project.optional-dependencies]
test = [
"dask",
"flask",
"flask-cors",
"h5netcdf",
"h5py",
"moto",
"netCDF4!=1.7.4", # github.com/Unidata/netcdf4-python/issues/1464
"pre-commit", # with ruff and mypy
"pytest",
"pytest-cov",
"pytest-html",
"pytest-rerunfailures",
"pytest-xdist",
"python-neo-lzf", # pypi.org/project/python-neo-lzf/
"s3fs>=2025.9.0", # v-mismatch with boto3 results in ancient s3fs
]
# needed for doc builds
doc = [
"autodocsumm",
"sphinx",
"sphinx_rtd_theme",
]
# develop = [
# "pre-commit",
# "pylint",
# "pydocstyle",
# ]
[project.urls]
Code = "https://github.com/jjhelmus/pyfive"
# Documentation = ""
Issues = "https://github.com/jjhelmus/pyfive/issues"
[tool.setuptools]
packages = ["pyfive"]
[tool.setuptools.dynamic]
readme = {file = "README.md", content-type = "text/markdown"}
[tool.setuptools_scm]
version_scheme = "release-branch-semver"
[tool.pytest.ini_options]
addopts = [
"--cov-report=xml:test-reports/coverage.xml",
"--cov-report=html:test-reports/coverage_html",
"--html=test-reports/report.html",
]
[tool.coverage.run]
parallel = true
source = ["pyfive"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
]
ignore = [
# these should not be fixed
"F401", # unused imports: some are really needed
"F841", # unused variables: some are really needed
# we may want to fix these
"E721", # type comparison issues (2 errors)
"F811", # redefined while unused (1 error)
"E722", # bare except (1 error)
"E711", # None comparison (1 error)
]
future-annotations = true
[tool.ruff.lint.pycodestyle]
max-line-length = 150
[tool.ruff.lint.flake8-annotations]
allow-star-arg-any = true
ignore-fully-untyped = true
# turn these on at a later stage
# [tool.ruff.lint.isort]
# known-first-party = ["pyfive"]
# [tool.ruff.lint.pydocstyle]
# convention = "numpy"
# [tool.ruff.lint.pylint]
# max-args = 7
[tool.mypy]
# See https://mypy.readthedocs.io/en/stable/config_file.html
ignore_missing_imports = true
enable_error_code = [
"truthy-bool",
]