-
Notifications
You must be signed in to change notification settings - Fork 58
/
pyproject.toml
161 lines (150 loc) · 4.04 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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
[build-system]
requires = [
"pybind11",
"scikit-build-core[pyproject]>=0.10",
"swig<4.3.0",
"numpy==1.19.2; python_version == '3.8'",
"numpy==1.19.5; python_version == '3.9'",
"numpy==1.21.6; python_version == '3.10'",
"numpy==1.23.5; python_version == '3.11'",
"numpy==1.26.2; python_version == '3.12'",
]
build-backend = "scikit_build_core.build"
[tool.scikit-build]
cmake.version = "CMakeLists.txt"
cmake.verbose = true
metadata.version.provider = "scikit_build_core.metadata.setuptools_scm"
sdist.include = ["src/xtgeo/common/version.py"]
wheel.install-dir = "xtgeo"
[project]
name = "xtgeo"
description = "XTGeo is a Python library for 3D grids, surfaces, wells, etc"
readme = "README.md"
requires-python = ">=3.8"
license = { text = "LGPL-3.0" }
authors = [{ name = "Equinor", email = "fg_fmu-atlas@equinor.com" }]
keywords = ["grids", "surfaces", "wells", "cubes"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
"Operating System :: POSIX :: Linux",
"Operating System :: Microsoft :: Windows",
"Operating System :: MacOS",
"Natural Language :: English",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Physics",
"Topic :: Software Development :: Libraries",
"Topic :: Utilities",
]
dynamic = ["version"]
dependencies = [
"deprecation",
"h5py>=3",
"hdf5plugin>=2.3",
"joblib",
"matplotlib>=3.3",
"numpy<2",
"pandas>=1.1",
"resfo>=4.0.0",
"roffio>=0.0.2",
"scipy>=1.5",
"segyio>1.8.0",
"shapely>=1.6.2",
"tables",
"typing_extensions",
"xtgeoviz",
]
[project.urls]
Homepage = "https://github.com/equinor/xtgeo"
Repository = "https://github.com/equinor/xtgeo"
Issues = "https://github.com/equinor/xtgeo/issues"
Documentation = "https://xtgeo.readthedocs.io"
[project.optional-dependencies]
dev = [
"clang-format",
"cmake-format",
"coverage>=4.1",
"hypothesis",
"mypy",
"pandas-stubs",
"pydocstyle",
"pytest",
"pytest-benchmark",
"pytest-cov",
"pytest-mock",
"pytest-runner",
"pytest-snapshot",
"pytest-xdist",
"ruff",
]
docs = [
"autoclasstoc",
"myst-parser",
"pydocstyle",
"sphinx",
"sphinx-autodoc-typehints",
"sphinx-rtd-theme",
"sphinx-tabs<3.4.5", # 3.4.5 breaks doc parsing
"sphinx-toolbox",
]
[tool.cibuildwheel]
manylinux-x86_64-image = "manylinux2014"
test-extras = ["dev"]
before-build = 'python -m pip install -U pip'
before-test = [
"pushd {package}",
"git clone --depth 1 https://github.com/equinor/xtgeo-testdata ../xtgeo-testdata",
]
test-command = [
"pushd {package}",
# Ignore forking tests as they do not work well with CIBW
'pytest -n 4 tests --disable-warnings -m "not hypothesis" --ignore tests/test_well --ignore-glob="*forks.py"',
]
[tool.pydocstyle]
convention = "google"
match = '(?!(test_|_)).*\.py'
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "--verbose"
log_cli = "False"
log_cli_format = "%(levelname)8s (%(relativeCreated)6.0fms) %(filename)44s [%(funcName)40s()] %(lineno)4d >> %(message)s"
log_cli_level = "INFO"
testpaths = "tests"
markers = [
"bigtest: A big test not executed by default",
"requires_opm: A test requiring opm in the environment",
"requires_roxar: Test requires to run in RMS python",
]
doctest_optionflags = "ELLIPSIS"
[tool.setuptools_scm]
write_to = "src/xtgeo/common/version.py"
[tool.ruff]
line-length = 88
[tool.ruff.lint]
ignore = [
"C901",
]
select = [
"C",
"E",
"F",
"I",
"PIE",
"Q",
"RET",
"RSE",
"SIM",
"TCH",
"TID",
"W",
]
[tool.ruff.lint.isort]
combine-as-imports = true