Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
111 lines (100 loc) · 3.04 KB
/
Copy pathpyproject.toml
File metadata and controls
111 lines (100 loc) · 3.04 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
[build-system]
requires = ["setuptools>=64", "setuptools-scm>=8", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "PET"
# Derived from the latest git tag by setuptools-scm (v0.2 -> 0.2;
# commits after it -> 0.3.devN+g<hash>). Release by pushing a tag.
dynamic = ["version"]
description = "Python Ensemble Toolbox"
authors = [
{ name = "Data assimilation and optimization group" }
]
maintainers = [
{ name = "Kristian Fossum", email = "krfo@norceresearch.no" },
{ name = "Rolf J. Lorentzen", email = "rolo@norceresearch.no" }
]
license = { file = "LICENSE" }
readme = "README.md"
requires-python = ">=3.12,<3.15"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering",
]
dependencies = [
"numpy",
"scipy",
"matplotlib",
"h5py",
"tqdm",
"PyWavelets",
"geostat @ git+https://github.com/Python-Ensemble-Toolbox/Geostatistics@3f9f0c876815db140fae3404d322892190cb6728",
"graphite-maps>=0.0.11,<0.1",
"pandas",
"p_tqdm",
"tomli",
"tomli-w",
"pyyaml",
"sympy",
]
[project.scripts]
pet = "pet_cli.__main__:main"
[project.optional-dependencies]
minires = [
# Pure-Python two-phase TPFA simulator, ref src/simulator/minires.py.
# Optional: keeps the toy simulator out of the core dependency set.
"minires>=0.3.2",
]
dev = [
"pytest",
"pytest-cov",
"ruff",
]
doc = [
"mkdocs-material",
"mkdocstrings",
"mkdocstrings-python",
"mkdocs-gen-files",
"mkdocs-literate-nav",
"mkdocs-section-index",
"mkdocs-glightbox",
"mkdocs-jupyter",
"pybtex"
]
[project.urls]
Homepage = "https://github.com/Python-Ensemble-Toolbox/PET"
[tool.setuptools]
package-dir = {"" = "src"}
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools_scm]
# Used when building without git metadata, e.g. from a source zip.
fallback_version = "0.0.0"
[tool.pytest.ini_options]
testpaths = ["tests"]
markers = [
"slow: end-to-end assimilation with a parallel forecast; deselect with -m 'not slow'",
]
[tool.ruff]
line-length = 120
target-version = "py310"
[tool.ruff.lint]
select = ["E", "F", "W"]
ignore = [
"E501", # line length is handled by formatting, not a hard error
"F403", # star imports are used intentionally to flatten package namespaces
"F405",
"E741", # single-letter names (l, I, ...) are idiomatic in this numerical/linear-algebra codebase
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"] # intentional namespace re-exports
"src/misc/grdecl.py" = ["E722", "E741", "F821"] # vendored parser; F821 is dead Python-2-only code
"src/misc/ecl.py" = ["E722", "E741"]
"src/misc/grid/sector.py" = ["E722", "E741"]
"src/misc/grid/unstruct.py" = ["F841"] # untested legacy grid parser; allocations look WIP, not dead code