-
-
Notifications
You must be signed in to change notification settings - Fork 114
Expand file tree
/
Copy pathpyproject.toml
More file actions
133 lines (118 loc) · 3.16 KB
/
Copy pathpyproject.toml
File metadata and controls
133 lines (118 loc) · 3.16 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
[build-system]
requires = ["uv_build>=0.11.0,<0.12"]
build-backend = "uv_build"
[project]
name = "numpy-stl"
version = "4.0.1"
description = "Library to make reading, writing and modifying both binary and ascii STL files easy."
readme = "README.md"
license = "BSD-3-Clause"
license-files = ["LICENSE"]
requires-python = ">=3.10"
authors = [{ name = "Rick van Hattem", email = "Wolph@Wol.ph" }]
classifiers = [
"Development Status :: 6 - Mature",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Natural Language :: English",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
dependencies = [
# np.fromiter with a structured dtype needs numpy>=1.23; 1.24 is
# the oldest version in the test matrix.
"numpy>=1.24",
"python-utils>=3.4.5",
# Already transitive via python-utils; declared because stl.stl
# imports assert_never at runtime.
"typing_extensions>=4.1",
]
[project.urls]
Homepage = "https://github.com/WoLpH/numpy-stl/"
Funding = "https://github.com/sponsors/wolph"
[project.scripts]
stl = "stl.main:main"
stl2ascii = "stl.main:to_ascii"
stl2bin = "stl.main:to_binary"
[project.optional-dependencies]
docs = [
"sphinx>=8.0; python_version < '3.11'",
"sphinx>=9.0; python_version >= '3.11'",
"furo>=2025.1",
]
tests = [
"pytest>=9.0",
"pytest-cov>=7.0",
"coverage>=7.0",
]
dev = [
"numpy-stl[tests]",
"ruff>=0.15.0",
"mypy>=1.0",
"basedpyright>=1.0",
"pyrefly>=0.1",
"ty>=0.0.1",
]
# stl._compat imports from speedups.stl, which exists since 2.1.0.
fast = ["speedups>=2.1.0"]
tox = [
"tox>=4.0",
"tox-uv>=1.0",
"tox-gh-actions>=3.0",
]
[tool.uv.build-backend]
module-root = ""
module-name = "stl"
[tool.pytest.ini_options]
doctest_optionflags = "NORMALIZE_WHITESPACE"
python_files = ["stl/*.py", "tests/*.py"]
addopts = [
"--doctest-modules",
"--cov=stl",
"--cov-report=term-missing",
"--cov-report=html",
"--no-cov-on-fail",
"--ignore=build",
"--basetemp=tmp",
]
[tool.mypy]
packages = ["stl"]
mypy_path = "typings"
local_partial_types = true
allow_redefinition_new = true
strict = true
enable_error_code = [
"exhaustive-match",
"ignore-without-code",
"redundant-expr",
"truthy-bool",
]
warn_return_any = false
[[tool.mypy.overrides]]
module = ["speedups", "speedups.*"]
ignore_missing_imports = true
[tool.pyright]
pythonPlatform = "All"
include = ["stl"]
ignore = [".venv"]
stubPath = "typings"
typeCheckingMode = "strict"
reportPrivateUsage = false # dupe of PLC2701
reportUnusedParameter = false # dupe of F841
reportUnusedVariable = false # dupe of F841
[tool.pyrefly]
project-includes = ["stl"]
ignore-missing-imports = ["speedups", "speedups.*"]
[[tool.ty.overrides]]
include = ["stl/_compat.py"]
[tool.ty.overrides.rules]
unresolved-import = "ignore"
[tool.uv]
exclude-newer = "14 days"