-
Notifications
You must be signed in to change notification settings - Fork 582
/
pyproject.toml
182 lines (160 loc) · 4.56 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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
[build-system]
build-backend = "setuptools.build_meta"
requires = ["setuptools >= 61.0", "wheel"]
[project]
name = "trimesh"
requires-python = ">=3.8"
version = "4.5.2"
license = {file = "LICENSE.md"}
description = "Import, export, process, analyze and view triangular meshes."
keywords = ["graphics", "mesh", "geometry", "3D"]
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",
"Topic :: Multimedia :: Graphics",
"Topic :: Multimedia :: Graphics :: 3D Modeling"
]
dependencies = ["numpy>=1.20"]
[project.urls]
homepage = "https://github.com/mikedh/trimesh"
documentation = "https://trimesh.org"
[project.readme]
file = "README.md"
content-type = "text/markdown"
[project.scripts]
trimesh = "trimesh:__main__.main"
[tool.setuptools]
packages = [
"trimesh",
"trimesh.ray",
"trimesh.path",
"trimesh.path.exchange",
"trimesh.scene",
"trimesh.voxel",
"trimesh.visual",
"trimesh.viewer",
"trimesh.exchange",
"trimesh.resources",
"trimesh.interfaces",
]
include-package-data = false
[tool.setuptools.package-data]
trimesh = [
"resources/templates/*",
"resources/*.json",
"resources/schema/*",
"resources/schema/primitive/*.json",
"resources/*.zip",
]
[project.optional-dependencies]
# this is the base extra most users will want
easy = [
"colorlog",
"manifold3d>=2.3.0", # do boolean operations
"chardet",
"lxml",
"jsonschema",
"networkx",
"svg.path",
"pycollada",
"setuptools",
"shapely",
"xxhash",
"rtree",
"httpx",
"scipy",
"embreex; platform_machine=='x86_64'",
"pillow",
"xatlas",
"vhacdx; python_version>='3.9'",
# old versions of mapbox_earcut produce incorrect values on numpy 2.0
"mapbox_earcut >= 1.0.2; python_version>='3.9'",
]
recommend = [
"sympy",
"meshio",
"pyglet<2",
"psutil",
"scikit-image",
"fast-simplification",
# "python-fcl", # do collision checks # TODO : broken on numpy 2
"openctm", # load `CTM` compressed models
"cascadio", # load `STEP` files
]
# stuff to run simple testing
test = [
"pytest-cov",
"pytest",
"pyinstrument",
"ruff",
]
# this is the list of everything that is ever added anywhere
# mostly useful for getting our test coverage up but may not
# be easy to install on all platforms and is only really
# a good idea in our "cannonical docker images"
test_more = [
"coveralls",
"pyright",
"ezdxf",
"pytest-beartype; python_version>='3.10'",
"matplotlib",
"pymeshlab",
"triangle",
]
# interfaces.gmsh will be dropped Jan 2025
deprecated = ["gmsh==4.12.2"]
# requires pip >= 21.2
# https://hynek.me/articles/python-recursive-optional-dependencies/
all = ["trimesh[easy,recommend,test,test_more,deprecated]"]
[tool.ruff]
target-version = "py38"
line-length = 90
# See https://github.com/charliermarsh/ruff#rules for error code definitions.
[tool.ruff.lint]
select = [
# "ANN", # annotations
"B", # bugbear
"C", # comprehensions
"E", # style errors
"F", # flakes
"I", # import sorting
"RUF", # ruff specific rules
"UP", # upgrade
"W", # style warnings
"YTT", # sys.version
"ISC002",
"NPY201",
"TID251"
]
ignore = [
"C901", # Comprehension is too complex (11 > 10)
"N802", # Function name should be lowercase
"N806", # Variable in function should be lowercase
"E501", # Line too long ({width} > {limit} characters)
"B904", # raise ... from err
"B905", # zip() without an explicit strict= parameter
"RUF005", # recommends non-type-aware expansion
]
# don't allow implicit string concatenation
flake8-implicit-str-concat = {"allow-multiline" = false}
[tool.ruff.lint.flake8-tidy-imports.banned-api]
"IPython.embed".msg = "you forgot to remove a debug embed ;)"
"numpy.empty".msg = "uninitialized arrays are haunted try numpy.zeros"
[tool.codespell]
skip = "*.js*,./docs/built/*,./docs/generate/*,./models*,*.toml"
ignore-words-list = "nd,coo,whats,bu,childs,mis,filetests"
[tool.mypy]
python_version = "3.8"
ignore_missing_imports = true
disallow_untyped_defs = false
disallow_untyped_calls = false
disable_error_code = ["method-assign", "var-annotated"]