forked from mikedh/trimesh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
160 lines (142 loc) · 3.76 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
[build-system]
build-backend = "setuptools.build_meta"
requires = ["setuptools >= 61.0", "wheel"]
[project]
name = "trimesh"
requires-python = ">=3.7"
version = "4.2.2"
authors = [{name = "Michael Dawson-Haggerty", email = "mikedh@kerfed.com"}]
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.7",
"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"
]
urls = {Homepage = "https://github.com/mikedh/trimesh"}
dependencies = ["numpy>=1.20"]
[project.readme]
file = "README.md"
content-type = "text/markdown"
[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",
"mapbox-earcut",
"chardet",
"lxml",
"jsonschema",
"networkx",
"svg.path",
"pycollada",
"setuptools",
"shapely",
"xxhash",
"rtree",
"httpx",
"scipy",
"embreex",
"pillow",
"vhacdx",
"xatlas",
]
recommend = [
"glooey",
"sympy",
"meshio",
"pyglet<2",
"psutil",
"scikit-image",
"python-fcl", # do collision checks
"openctm", # load `CTM` compressed models
"cascadio", # load `STEP` files
"manifold3d>=2.3.0" # do boolean operations
]
# this is the list of everything that is ever added anywhere
# mostly useful for getting our test coverage up
test = [
"pytest-cov",
"coveralls",
"pyright",
"ezdxf",
"pytest",
"pymeshlab",
"pyinstrument",
"matplotlib",
"ruff",
"pytest-beartype; python_version>='3.10'"
]
# requires pip >= 21.2
# https://hynek.me/articles/python-recursive-optional-dependencies/
all = ["trimesh[easy,recommend,test]"]
[tool.ruff]
target-version = "py37"
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
"RUF100", # meta
"UP", # upgrade
"W", # style warnings
"YTT", # sys.version
"ISC002"
]
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
]
# don't allow implicit string concatenation
flake8-implicit-str-concat = {"allow-multiline" = false}
[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"]