forked from landlab/landlab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
196 lines (175 loc) · 5.2 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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
[build-system]
requires = ["cython~=3.0.0b3", "numpy<2", "setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "landlab"
description = "Open-source Python package for numerical modeling of Earth surface dynamics."
authors = [
{email = "[email protected]"},
{name = "The landlab team"}
]
maintainers = [
{email = "[email protected]"},
{name = "The landlab team"}
]
keywords = [
"bmi",
"component modeling",
"earth science",
"gridding engine",
"model coupling",
"numerical modeling",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Cython",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Scientific/Engineering :: Physics",
]
requires-python = ">=3.10"
dependencies = [
"bmipy",
"importlib-resources; python_version < '3.12'",
"matplotlib",
"netcdf4",
"numpy >=1.20,<2",
"pyyaml",
"pyshp != 2.3.0",
"rich-click",
"scipy",
"statsmodels",
"pandas",
"xarray >= 0.16",
]
dynamic = ["readme", "version"]
[project.license]
text = "MIT"
[project.urls]
homepage = "https://github.com/landlab"
documentation = "https://landlab.readthedocs.io"
repository = "https://github.com/landlab"
changelog = "https://github.com/landlab/landlab/blob/develop/CHANGES.rst"
[project.optional-dependencies]
dev = ["nox"]
testing = [
"coveralls",
"hypothesis",
"pytest",
"pytest-cov",
"pytest-datadir",
"pytest-xdist",
]
[project.scripts]
landlab = "landlab.cmd.landlab:landlab"
[tool.setuptools]
include-package-data = true
[tool.setuptools.package-data]
landlab = [
"tests/*txt",
"data/*asc",
"data/*nc",
"data/*shp",
"test/*shx",
"data/*dbf",
"preciptest.in",
"test_*/*nc",
"test_*/*asc",
]
[tool.setuptools.packages.find]
where = ["."]
include = ["landlab*"]
[tool.setuptools.dynamic]
readme = {file = ["README.rst", "AUTHORS.rst"]}
version = {attr = "landlab._version.__version__"}
[tool.pytest.ini_options]
minversion = "6.0"
testpaths = ["notebooks", "landlab", "tests"]
norecursedirs = [".*", "*.egg*", "build", "dist", "examples"]
addopts = """
--ignore setup.py
--tb native
--durations 16
--strict-markers
--doctest-modules
-vvv
--ignore-glob=*/animate-landlab-output.ipynb
--ignore-glob=*/cellular_automaton_vegetation_flat_domain.ipynb
--ignore-glob=*/cellular_automaton_vegetation_DEM.ipynb
--ignore-glob=*/lithology_and_litholayers.ipynb
--ignore-glob=*/nst_scaling_profiling.ipynb
--ignore-glob=*/test_networkcreator_otherDEMs.ipynb
--ignore-glob=*/run_network_generator_OpenTopoDEM.ipynb
"""
doctest_optionflags = [
"NORMALIZE_WHITESPACE",
"IGNORE_EXCEPTION_DETAIL"
]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"notebook: marks tests as notebook (deselect with '-m \"not notebook\"')"
]
[tool.isort]
combine_as_imports = true
known_first_party = "landlab"
profile = "black"
[tool.check-manifest]
ignore = [".nox", "build"]
[tool.cibuildwheel]
build = "cp310-* cp311-* cp312-*"
skip = "*-musllinux_* *-win32*"
archs = "x86_64,aarch64,arm64,AMD64,x86"
test-command = "python -c \"import landlab; print(landlab.__version__)\""
[tool.cibuildwheel.macos]
before-all = "brew install libomp"
# before-all = "brew install llvm libomp"
[tool.cibuildwheel.macos.environment]
LANDLAB_WITHOUT_OPENMP = "1"
LDFLAGS = "-Wl,-rpath,/opt/homebrew/opt/libomp/lib -L/opt/homebrew/opt/libomp/lib -L/opt/homebrew/opt/llvm/lib/c++ -Wl,-rpath,/opt/homebrew/opt/llvm/lib/c++ -lomp"
CPPFLAGS = "-Xpreprocessor -fopenmp -I/opt/homebrew/opt/libomp/include"
CFLAGS = "-Wno-implicit-function-declaration -I/opt/homebrew/opt/libomp/include"
CXXFLAGS = "-I/opt/homebrew/opt/libomp/include"
# PATH = "/opt/homebrew/opt/llvm/bin:$PATH"
[[tool.cibuildwheel.overrides]]
select = "*x86_64*"
environment = {"LANDLAB_WITHOUT_OPENMP"="1"}
[tool.cibuildwheel.windows.environment]
LANDLAB_WITHOUT_OPENMP = "1"
[tool.cython-lint]
max-line-length = 88
exclude = "tests/components/flow_router/ext/single_flow/priority_routing/test_breach_c.pyx"
[tool.conda-lock]
channels = ["conda-forge", "defaults"]
platforms = ["osx-arm64", "linux-64", "osx-64", "win-64"]
[tool.towncrier]
directory = "news"
package = "landlab"
filename = "CHANGES.rst"
single_file = true
underlines = "-`^"
issue_format = "`#{issue} <https://github.com/landlab/landlab/issues/{issue}>`_"
title_format = "{version} ({project_date})"
type = [
{name="New Components", directory="component", showcontent=true},
{name="New Tutorial Notebooks", directory="notebook", showcontent=true},
{name="New Features", directory="feature", showcontent=true},
{name="Bug Fixes", directory="bugfix", showcontent=true},
{name="Documentation Enhancements", directory="docs", showcontent=true},
{name="Other Changes and Additions", directory="misc", showcontent=true},
]
[tool.landlab.credits]
exclude = '''
(?x)^(
\(no\ author\)|
root|
.*\[bot\] # ignore all bots
)
'''
authors_file = "AUTHORS.rst"
author_format = "* `{name} <https://github.com/{github}>`_"