-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
115 lines (98 loc) · 3.11 KB
/
Copy pathpyproject.toml
File metadata and controls
115 lines (98 loc) · 3.11 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
[build-system]
requires = ["poetry-core", "cython>=3.1",
"numpy==1.24.3; python_version <= '3.11'",
"numpy>=2.0.2; python_version > '3.11' and python_version < '3.14'",
"numpy>=2.4.0; python_version >= '3.14'",
"setuptools", "pytest", "pyMSVC;sys_platform=='win32'"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "mmcore"
version = "0.53.0"
description = "mmcore"
authors = ["Andrew Astakhov <sthv.developer@gmail.com>", ]
license = "Apache License Version 2.0"
readme = "README.md"
[tool.poetry.dependencies]
python = ">=3.9,<4.0"
numpy = [{ version = "2.0.2", markers = "python_version <= '3.11'" },
{ version = "^2.0.2", markers = "python_version > '3.11' and python_version < '3.14'" },
{ version = ">=2.4.0", markers = "python_version >= '3.14'", allow-prereleases = true },
]
earcut = { version = "^1.1.5" }
scipy = [
{ version = "<=1.13", markers = "python_version < '3.10'" },
{ version = ">1.13", markers = "python_version >= '3.10'" },
{ version = ">=1.16", markers = "python_version >= '3.14'" }
]
pyquaternion = "^0.9.9"
more-itertools = "^10.1.0"
steputils = "^0.1"
# Optional Deps
ipython = { version = "*", optional = true }
plotly = { version = "*", optional = true }
kaleido = { version = "*", optional = true }
pyrr = { version = "*", optional = true }
glfw = { version = "*", optional = true }
pyopengl = { version = "*", optional = true }
rhino3dm = { version = "^8.9.0", optional = true }
torch = { version = "*", optional = true }
[tool.poetry.group.dev.dependencies]
pytest = "^8.3.2"
matplotlib = { version = "^3.8.3", optional = true }
pydoc-markdown = { version = "^4.8.2", optional = true }
ipython = { version = "*", optional = true }
cython = "*"
cython-lint = "*"
python-dotenv = "^1.0.0"
setuptools = "*"
[tool.poetry.build]
generate-setup-file = false
script = 'build.py'
[tool.poetry.plugins."mmcore.extras.renderer"]
renderer = "mmcore.extras.renderer"
[tool.poetry.plugins."mmcore.extras.rhino"]
rhino = "mmcore.rhino"
[tool.poetry.plugins."mmcore.extras.torch"]
torch = "mmcore.extras.torch"
[tool.poetry.plugins."mmcore.extras.occ"]
occ = "mmcore.extras.occ"
[tool.poetry.extras]
torch = ["mmcore.extras.torch", "torch"]
rhino = ["rhino3dm", "mmcore.extras.rhino"]
renderer = ["plotly", "kaleido", "pyopengl", "pyrr", 'glfw', "mmcore.extras.renderer"]
all = ["plotly", "kaleido", "pyopengl", "pyrr", 'glfw', "ipython", "rhino3dm", "torch"]
# I don't think it can be installed via pip. But if you build it yourself or install it using conda,
# mmcore provides several useful functions for converting data to/from OCC.
# Also, where OCC is robust enough, we use it to test our own algorithms.
# This extra is not included in all
occ = ['mmcore.extras.occ']
[tool.black]
line-length = 140
target-version = ['py39', 'py310', 'py311', 'py312', 'py313', 'py314']
include = '\.pyi?$'
exclude = '''
/(
.git
| .github
| gen
| .idea
| .svn
| .hg
| .mypy_cache
| .tox
| .nox
| .venv
| _build
| buck-out
| build
| dist
| .computer_use_demo
| _build
| buck-out
| build
| dist
)/
'''
[tool.cython-lint]
max-line-length = 140
ignore = ['E503', 'E504']