-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathpyproject.toml
130 lines (111 loc) · 3.33 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
[build-system]
requires = ["scikit-build-core"]
build-backend = "scikit_build_core.build"
[project]
name = "splinepy"
authors = [
{name="Jaewook Lee", email="[email protected]"},
]
license = {file = "LICENSE"}
description = "Library for prototyping spline geometries of arbitrary dimensions and degrees, and IGA"
keywords = ["bezier", "rational bezier", "bspline", "nurbs", "multi patch"]
urls = {Homepage = "https://github.com/tataratat/splinepy"}
classifiers=[
"Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"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",
"Natural Language :: English",
"Topic :: Scientific/Engineering",
]
dependencies = ["numpy", "gustaf>=0.0.25"]
requires-python = '>=3.8'
dynamic = ["version"]
[project.readme]
file = "README.md"
content-type = "text/markdown"
[project.optional-dependencies]
all = ["gustaf[all]>=0.0.25"]
test = ["funi>=0.1.0", "pytest"]
[project.scripts]
splinepy = "splinepy.cli:entry"
[tool.scikit-build]
wheel.packages = [
"splinepy",
"splinepy.io",
"splinepy.utils",
"splinepy.helpme",
"splinepy.microstructure",
"splinepy.microstructure.tiles",
]
build-dir = "build"
install.strip = true
[tool.scikit-build.metadata.version]
provider = "scikit_build_core.metadata.regex"
input = "splinepy/_version.py"
[tool.cibuildwheel]
test-extras = ["test"]
test-command = "pytest {project}/tests"
before-all = "python {project}/docs/source/handle_markdown.py -b"
[tool.cibuildwheel.macos]
archs = ["x86_64", "arm64"]
build = ["cp*"]
[tool.cibuildwheel.linux]
archs = ["x86_64"]
build = ["cp*-many*"]
[tool.cibuildwheel.windows]
skip = "pp*"
[tool.ruff]
lint.select = [
"E", "F", "W", # flake8
"B", # flake8-bugbear
"ARG", # flake8-unused-arguments
"C4", # flake8-comprehensions
"PL", # pylint
"SIM", # flake8-simplify
"T20", # flake8-print
"NPY", # numpy specific rules
"I", # isort specific rules
"UP", # pyupdate specific rules
"C400","C401","C402","C403","C404","C405", # additional pyupgrade rules
"FURB", # refurb items
"YTT", # flake8 check version comparison mistakes
"A", # flake8-builtins
]
lint.fixable = ["ALL"]
target-version = "py38"
lint.ignore = [
"PLR2004", # TODO!
"PLR0912", # Too many branches
"PLR0913", # Too many arguments to function call
"PLR0915", # Too many statements
"B904", # Within an `except` clause, raise exceptions with ...
"PLR0911", # Too many return statements
]
[tool.ruff.lint.per-file-ignores]
"setup.py" = ["T201"]
"examples/*.py" = ["T201"]
"tests/common.py" = ["T201"]
"splinepy/cli.py" = ["T201"]
"splinepy/io/**" = ["A001"]
[tool.codespell]
ignore-words-list = "connec,tye,ned"
skip="./docs/source/_generated/**,./docs/build/*,./build/*,./third_party/*,./tests/data/*.svg,*.html,*.js"
[tool.black]
line-length = 79
exclude = "third_party"
[tool.blackdoc]
line-length = 75
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra --import-mode=append"
testpaths = [
"tests",
]
filterwarnings = [
"ignore::DeprecationWarning:jupyter_client",
]