forked from princeton-vl/infinigen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
132 lines (114 loc) · 3.06 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
[build-system]
requires = ["setuptools", "numpy", "Cython"]
build-backend = "setuptools.build_meta"
[project]
name = "infinigen"
readme = "README.md"
license = {file = "LICENSE"}
dynamic = ["version"]
description = "Infinite Photorealistic Worlds using Procedural Generation"
keywords = [
"computer vision",
"data generation",
"procedural"
]
classifiers = [
"Framework :: Blender",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10"
]
requires-python = "==3.10.*"
dependencies = [
"bpy==3.6.0",
"einops",
"flow_vis",
"frozendict",
"geomdl",
"gin_config>=0.5.0",
"imageio",
"matplotlib",
"numpy",
"opencv-python",
"psutil",
"scikit-image",
"scikit-learn",
"scipy",
"submitit",
"tqdm",
"trimesh",
"pandas",
"landlab>=2.6.0",
"pycparser",
"pyrender",
"pandas",
"vnoise",
]
[project.optional-dependencies]
dev = [
"pytest",
"pytest-ordering",
"pytest-cov",
"black",
"ruff",
"tabulate" # for integration test results
]
wandb = [
"wandb"
]
[tool.setuptools]
# include-package-data is terribly named. package-data is still included if false,
# just not the package-data setuptools would otherwise autogenerate from MANIFEST.in or version control
include-package-data = false
[tool.setuptools.packages.find]
include = ["infinigen*"]
# must be specified as module paths with ., using classic filepaths with / will silently not do anything
exclude = [
"infinigen.datagen.customgt.dependencies*",
"infinigen.datagen.customgt.build*",
]
[tool.setuptools.package-data]
"*" = ["*.gin", "*.txt", "*.json"]
# Must be specified as paths relative to infinigen/
"infinigen" = [
"terrain/**/*.soil", # extra files for SoilMachine
"terrain/lib/**/*.so", # created by terrain compilation
"terrain/lib/**/*.o", # created by terrain compilation
"datagen/customgt/build/customgt", # created during opengl compilation
"assets/creatures/parts/nurbs_data/*.npy", # stores creature nurbs centroids data, ideally will be deprecated
]
[tool.setuptools.dynamic]
version = {attr = "infinigen.__version__"}
[tool.pytest.ini_options]
testpaths = "tests"
junit_family = "xunit2"
[tool.cibuildwheel]
test-extras = ["dev"]
test-command = "pytest tests"
[tool.ruff]
select = [
"E9",
"F63",
"F7",
"F82"
#"E",
#"F",
#"B",
#"C901",
]
target-version = "py310"
line-length = 120 # will be reduced to 88 to match black soon
exclude = [
"*/dependencies/"
]
ignore = [
"E402", # we have lots of sys.path and opencv statements that must preceed imports, ignore for now
"E501", # ignore line length for now
"E701", # disable multi line statements until we enable black
"F401", # unused imports are sometimes necessary for gin to work
"E712", # some people think `if x == True` is more explicit, not going to force it
]
[tool.ruff.per-file-ignores]
"__init__.py" = []
"infinigen/assets/*" = ["F841"] #transpiler currently creates lots of unused variables
[tool.ruff.mccabe]
max-complexity = 10