-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathpyproject.toml
More file actions
157 lines (145 loc) · 3.98 KB
/
pyproject.toml
File metadata and controls
157 lines (145 loc) · 3.98 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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
[project]
name = "quadrants"
description = "The Quadrants Programming Language"
maintainers = [{name = "Quadrants developers"}]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Topic :: Software Development :: Compilers",
"Topic :: Multimedia :: Graphics",
"Topic :: Games/Entertainment :: Simulation",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
license = {text = "Apache-2.0"}
keywords = ["graphics", "simulation"]
dynamic = ["version"]
readme = "README.md"
requires-python = ">=3.10,<3.14"
dependencies = [
"numpy>=1.26.0",
"colorama",
"dill",
"pydantic>=2.0.0", # rewrite of 1.10 from scratch
"rich>=1.0.0", # first non-beta version; 2020
"setuptools>=77.0.0", # Gives project.license-files
"cffi>=1.16.0",
]
[tool.setuptools_scm]
write_to = "python/quadrants/_version.py"
write_to_template = "__version__ = '{version}'\n"
[dependency-groups]
docs = [
"sphinx",
"sphinx-copybutton",
"myst_parser",
"sphinx-subfigure",
"sphinxcontrib-video",
"sphinx-togglebutton",
"sphinx-design",
"pydata-sphinx-theme",
"sphinx-autoapi",
"astroid<4.0.0", # upgrade to 4.0.0 on oct 5 2025 broke the build
]
dev = [
"cmake<4.0.0",
"colorama",
"coverage",
"Pillow",
# pybind11 should be less than 3.0.0 for now
# pybind11 3.0.0 caused builds to start failing.
# whilst we could probably get 3.0.0 working too, I feel that x.0.0 releases, in opensource (and closed source
# too often) might not always be very stable, so we might want to wait 3-6 months before trying it?)
"pybind11<3.0.0",
"pybind11-stubgen",
"pydantic",
"GitPython",
"yapf",
"distro",
"isort",
"pylint",
"pyright",
"requests",
"twine",
"wheel",
"astunparse",
"pre-commit",
"scikit-build",
"setuptools_scm>=6.0",
"numpy>=2.0.0",
"ninja; platform_system != 'Windows'",
"ruamel.yaml",
]
test = [
# You also need to:
# pip install -r requirements_test_xdist.txt
"Pillow",
"pytest",
# 16.0 upgrade broke xfail, caused fatal errors, see
# https://github.com/Genesis-Embodied-AI/quadrants/pull/162
"pytest-rerunfailures<16.0",
"pytest-cov",
"pytest-retry",
"numpy>=2.0.0", # otherwise, on windows, tries to install 1.26.4, which has no wheel for python 3.13
"psutil",
"autograd",
"requests",
"cffi",
"scipy",
"setproctitle",
"nbmake",
"marko",
"PyYAML",
"pyevtk",
"pyright",
]
[project.entry-points.pytest11]
quadrants = "quadrants.pytest_plugin"
[project.urls]
Homepage = "https://github.com/Genesis-Embodied-AI/quadrants"
[build-system]
requires = [
"setuptools>=77.0.0",
"wheel",
"numpy>=2.0.0",
"pybind11<3.0.0",
"pybind11-stubgen",
"cmake>=3.11",
"scikit-build",
"ninja; platform_system != 'Windows'",
"psutil",
"cffi>=1.16.0",
"setuptools_scm>=6.0",
]
# This will be used when doing `pip install -e .`, for fast installation of python
# things, without doing full c++ build
build-backend = "setuptools.build_meta"
[tool.coverage.paths]
source = [
"python/quadrants",
"*/site-packages/quadrants",
]
[tool.coverage.report]
[tool.pytest.ini_options]
filterwarnings = [
"ignore:Calling non-taichi function",
"ignore:`np.int` is a deprecated alias",
"ignore:Operator \"is\" in Taichi scope is deprecated",
"ignore:Operator \"is not\" in Taichi scope is deprecated"
]
[tool.yapf]
based_on_style = "pep8"
blank_line_before_nested_class_or_def = false
[tool.ruff]
exclude = [
"external/**/*",
]
[tool.ruff.lint]
select = ["I", "F401"] # Enable import ordering checks, and unused import checks
[tool.ruff.lint.isort]
known-local-folder = ["tests", ".github"]
known-first-party = ["quadrants"]
known-third-party = ["pytest"]