-
Notifications
You must be signed in to change notification settings - Fork 6
/
pyproject.toml
73 lines (63 loc) · 1.77 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
[build-system]
requires = [
"scikit-build-core",
# pybind11 2.12 added support for numpy 2.0
# pybind11 doesn't require numpy at build time, but xtensor-python does!
# packages built with numpy 2.x are compatible with numpy 1.xx
"pybind11>=2.12,<3",
"numpy>=2.0,<3",
]
build-backend = "scikit_build_core.build"
[project]
name = "fastscapelib"
version = "0.3.0"
description = "A C++/Python library of efficient algorithms for landscape evolution modeling"
keywords = ["modeling", "topography", "geomorphology", "landscape-evolution"]
readme = "README.rst"
license = {text = "GPL-3.0 license"}
authors = [
{name = "Benoît Bovy"},
]
maintainers = [
{name = "Fastscapelib contributors"},
]
requires-python = ">=3.10"
dependencies = [
"numpy>=1.24",
]
[project.urls]
Home = "https://fastscapelib.readthedocs.io"
Repository = "https://github.com/fastscape-lem/fastscapelib"
[project.optional-dependencies]
numba = ["numba"]
test = ["pytest>=6.0"]
[tool.scikit-build]
wheel.packages = ["python/fastscapelib"]
[tool.cibuildwheel]
environment = {SKBUILD_CMAKE_ARGS='-DFS_DOWNLOAD_XTENSOR_PYTHON=ON'}
test-extras = "test"
test-command = "pytest {project}/python/fastscapelib/tests"
build-verbosity = 1
[[tool.cibuildwheel.overrides]]
# TODO: remove when numba supports python 3.13
select = "cp3{10,11,12}-*"
inherit.test-requires = "append"
test-requires = ["numba"]
[tool.cibuildwheel.macos]
environment = {SKBUILD_CMAKE_ARGS='-DFS_DOWNLOAD_XTENSOR_PYTHON=ON', MACOSX_DEPLOYMENT_TARGET=10.13}
[tool.isort]
profile = "black"
skip_gitignore = true
float_to_top = true
default_section = "THIRDPARTY"
known_first_party = "fastscapelib"
[tool.mypy]
exclude = [
"doc/source/conf.py",
"build/",
]
[[tool.mypy.overrides]]
ignore_missing_imports = true
module = [
"numba.*"
]