-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
111 lines (94 loc) · 2.67 KB
/
Copy pathpyproject.toml
File metadata and controls
111 lines (94 loc) · 2.67 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 = ["maturin>=1.8,<2.0"]
build-backend = "maturin"
[project]
name = "polyshell"
requires-python = ">=3.10"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"Natural Language :: English",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Rust",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering"
]
authors = [
{ name = "Niall Oswald", email = "niall.oswald20@imperial.ac.uk" },
{ name = "Kenneth Martin", email = "k.martin24@imperial.ac.uk" },
{ name = "Jo Wayne Tan", email = "jo.tan17@imperial.ac.uk" },
]
description = "A high-performance coverage-preserving polygon reduction library for Python, written in Rust"
license = { text = "Apache License Version 2.0" }
dynamic = ["version", "readme"]
dependencies = []
[project.urls]
repository = "https://github.com/ecmwf/polyshell"
documentation = "https://ecmwf.github.io/PolyShell/"
issues = "https://github.com/ecmwf/polyshell/issues"
[tool.setuptools.dynamic]
readme = {file = ["README.md"], content-type = "text/markdown"}
[project.optional-dependencies]
dev = [
"pytest>=8.3.5",
"pytest-cases>=3.9.1",
"pre-commit",
"numpy>=2.2.6",
"shapely>=2.0.7",
]
tests = [
"pytest>=8.3.5",
"pytest-cases>=3.9.1",
"numpy>=2.2.6",
"shapely>=2.0.7",
]
readers = [
"numpy>=2.2.6",
"shapely>=2.0.7",
]
cli = [
"matplotlib>=3.10.5",
"typer>=0.17.4",
]
[dependency-groups]
docs = [
"mkdocs-material>=9.6.15",
"termynal>=0.13.1",
]
[tool.maturin]
python-source = "python"
module-name = "polyshell._polyshell"
features = ["pyo3/extension-module"]
[tool.uv]
# Rebuild package when any rust files change
cache-keys = [{ file = "pyproject.toml" }, { file = "rust/Cargo.toml" }, { file = "**/*.rs" }]
# Uncomment to build rust code in development mode
# config-settings = { build-args = '--profile=dev' }
[tool.uv.workspace]
members = ["scripts/benchmark"]
[project.scripts]
polyshell = "polyshell._cli:app"
[tool.pytest.ini_options]
minversion = "7.0"
addopts = [
"-v",
"--pdbcls=IPython.terminal.debugger:Pdb",
]
testpaths = ["tests"]
[tool.ruff.lint.isort]
known-first-party = [
"polyshell",
"benchmark",
"cli",
]
[tool.ruff.format]
quote-style = "double"
[tool.isort]
profile = "black" # Ensures compatibility with Black's formatting.
[tool.black]
skip-string-normalization = false