-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathpyproject.toml
108 lines (88 loc) · 2.92 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
[build-system]
requires = [
"scikit_build_core[rich]",
"pybind11>=2.11",
]
build-backend = "scikit_build_core.build"
[project]
name = "spherely"
version = "0.1.0"
description = "Manipulation and analysis of geometric objects on the sphere"
keywords = ["gis", "geometry", "s2geometry", "shapely"]
readme = "README.md"
license = {text = "BSD 3-Clause"}
authors = [
{name = "Benoît Bovy"},
]
maintainers = [
{name = "Spherely contributors"},
]
requires-python = ">=3.10"
dependencies = ["numpy"]
[project.urls]
Home = "https://spherely.readthedocs.io"
Repository = "https://github.com/benbovy/spherely"
[project.optional-dependencies]
test = ["pytest>=6.0"]
[tool.scikit-build]
sdist.exclude = [".github"]
build-dir = "build/{wheel_tag}"
[tool.mypy]
files = ["tests", "src/spherely.pyi"]
show_error_codes = true
warn_unused_ignores = true
[tool.pixi.project]
channels = ["conda-forge"]
platforms = ["linux-64", "osx-arm64", "osx-64", "win-64"]
[tool.pixi.environments]
default = {features = [], solve-group = "default"}
dev = {features = ["dev"], solve-group = "default"}
test = {features = ["test", "dev"], solve-group = "default"}
doc = {features = ["doc", "dev"], solve-group = "default"}
lint = {features = ["lint", "dev"], solve-group = "default"}
all = {features = ["lint", "doc", "test", "dev"], solve-group = "default"}
[tool.pixi.dependencies]
numpy = "*"
[tool.pixi.feature.dev.dependencies]
cxx-compiler = ">=1.9.0,<2"
cmake = ">=3.31.5,<4"
ninja = ">=1.12.1,<2"
pybind11 = ">=2.13.6,<3"
scikit-build-core = ">=0.10.7,<0.11"
s2geometry = ">=0.11.1,<0.12"
s2geography = ">=0.2.0,<0.3"
[tool.pixi.feature.dev.pypi-dependencies]
spherely = { path = ".", editable = true }
[tool.pixi.feature.dev.pypi-options]
no-build-isolation = ["spherely"]
[tool.pixi.feature.test.dependencies]
pytest = ">=8.3.4,<9"
geoarrow-pyarrow = ">=0.1.2,<0.2"
[tool.pixi.feature.doc.dependencies]
sphinx = ">=8.1.3,<9"
pydata-sphinx-theme = ">=0.16.1,<0.17"
sphinx-book-theme = ">=1.1.3,<2"
myst-nb = ">=1.1.2,<2"
[tool.pixi.feature.lint.dependencies]
pre-commit = ">=4.1.0,<5"
mypy = ">=1.14.1,<2"
[tool.pixi.feature.test.tasks]
tests = "pytest tests --color=yes"
[tool.pixi.feature.lint.tasks]
precommit-install = "pre-commit install"
mypy = "python -m mypy"
[tool.pixi.feature.doc.tasks]
build-doc = "sphinx-build -M html docs docs/build"
[tool.pixi.feature.dev.tasks.compile-commands]
cmd = "cmake -GNinja -S. -Bbuild/compile-commands -DCMAKE_EXPORT_COMPILE_COMMANDS=ON && cp build/compile-commands/compile_commands.json ."
inputs = ["CMakeLists.txt"]
outputs = ["compile_commands.json"]
[tool.pixi.feature.dev.tasks.configure]
cmd = "cmake -GNinja -S. -Bbuild/python -DSKBUILD_PROJECT_NAME=spherely -DSKBUILD_PROJECT_VERSION=0.0.0"
inputs = ["CMakeLists.txt"]
outputs = ["build/python/CMakeFiles/"]
[tool.pixi.feature.dev.tasks.compile]
cmd = "cmake --build build/python --config Debug"
depends-on = ["configure"]
inputs = ["src/*"]
outputs = ["build/python/spherely*"]