-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathrepo.toml
326 lines (287 loc) · 8.85 KB
/
repo.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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
[repo]
name = "usd-exchange-sdk"
logging = "warning"
folders.version_file = "CHANGELOG.md"
extra_tool_paths."++" = [
"$root/tools/repoman",
]
# keep in-sync with the tokens below
default_flavor = "usd_24.08_py_3.10"
[repo.tokens]
usd_flavor = "usd"
usd_ver = "24.08"
python_ver = "3.10"
abi = "2.35"
[repo_version_header]
enabled = true
company = "NVIDIA"
product = "OpenUSD Exchange SDK"
macro_namespace = "USDEX"
target_version_header_file = "include/usdex/core/Version.h"
target_resource_file = "version.rc"
generate_version_stub_file = true
[repo_feature_header]
enabled = true
target_file = "include/usdex/core/Feature.h"
[repo_build_number]
enabled = true
[repo_build]
fetch.packman_target_files_to_pull = [
"$root/deps/target-deps.packman.xml"
]
# enable only for internal use
# if enabled, requires a `docker.image_url` matching the `repo.tokens.abi` glibc version
docker.enabled = false
premake."token:abi==2.35".linux_x86_64_cxx_abi = true
clean.folders."++" = ["$root/_conan", "$root/_deps"]
# enable only for internal use
licensing.enabled = false
licensing.fail_on_missing = true
# pip is not used currently
fetch.pip.files_to_pull = []
fetch.before_pull_commands = [
[
"$root/repo${shell_ext}",
"usd",
"--generate-usd-deps",
"--usd-flavor", "${usd_flavor}",
"--usd-ver", "${usd_ver}",
"--python-ver", "${python_ver}",
],
]
# pre_build.commands happens after project generation, this is too late
fetch.after_pull_commands = [
["$root/repo${shell_ext}", "version_header"],
["$root/repo${shell_ext}", "feature_header", "--python", "${python_ver}"],
]
post_build.commands = [
[
"$root/repo${shell_ext}",
"--set-token", "usd_flavor:${usd_flavor}",
"--set-token", "usd_ver:${usd_ver}",
"--set-token", "python_ver:${python_ver}",
"--abi=${abi}",
"install_usdex",
"-c", "$config",
"--use-existing-build",
"--install-test",
"--staging-dir", "_build",
"--install-dir", "_build/$platform/$config",
],
["$root/repo${shell_ext}", "--set-token", "python_ver:${python_ver}", "stubgen", "-c", "$config"],
]
msbuild.link_host_toolchain = true
msbuild.sln_file = "${conf:repo.name}.sln"
msbuild.vs_version = "" # choose the latest on the system
fetch.generated_packman_file = "$root/_build/$platform/$config/dev/deps/all-deps.packman.xml"
fetch.strip_deps = ["msvc", "winsdk", "linbuild"] # internal-only deps
[[repo_build.argument]]
name = "usd_flavor"
help = "Set the USD flavor to build against"
extra_premake_args = ["--usd-flavor=${usd_flavor}"]
[[repo_build.argument]]
name = "usd_version"
help = "Set the USD version to build against"
extra_premake_args = ["--usd-ver=${usd_ver}"]
[[repo_build.argument]]
name = "python_ver"
help = "Set the python version to build against"
extra_premake_args = ["--python-ver=${python_ver}"]
# Setup IntelliSense in VSCode
[repo_build.vscode]
settings_template_file = "$root/tools/vscode/settings.template.json"
write_python_paths_in_settings_json = true
generate_python_env_file = false
generate_python_setup_shell_script = false
# note: remove this when repo_build supports the generic `repo.python_executable` settings
python = "$root/_build/target-deps/python/python${exe_ext}"
python_env.PATH."++" = [
"$root/_build/$platform/$config/lib",
]
python_env.PYTHONPATH."++" = [
"$root/_build/$platform/$config/python",
"$root/_repo/deps/repo_man",
"$root/_repo/deps/repo_test",
"$root/_repo/deps/repo_ci",
]
[repo_stubgen]
enabled = true
stubgen_exclude = [
"$root/_build/$platform/$config/python/pxr/UsdMtlx", # fails on some flavors (eg houdini)
]
[repo_test]
default_config = "release"
default_suite = "all"
test_root = "$root/_build/$platform/$config"
catch2.junit_output = true
aggregated_log_file = "$root/_build/tests/test_results.xml"
archive_pattern = "$root/_build/packages/usd-exchange_${usd_flavor}_${usd_ver}_py_${python_ver}*${platform_target_abi}.$config.7z"
archive_post_unpack_cmds = [
[
"$root/repo${shell_ext}",
"--set-token", "usd_flavor:${usd_flavor}",
"--set-token", "usd_ver:${usd_ver}",
"--set-token", "python_ver:${python_ver}",
"--abi=${abi}",
"install_usdex",
"-c", "$config",
"--use-existing-build",
"--install-test",
"--staging-dir", "_build",
"--install-dir", "${test_root}",
],
]
library_paths = [
"${test_root}/lib",
# required because the CI runners don't necessarily match the python flavor requested
"$root/_build/target-deps/python/lib", # for linux
"$root/_build/target-deps/python", # for windows
]
python_paths = [
"${test_root}/python",
]
env_vars = [
[ "USD_FLAVOR", "${usd_flavor}" ], # We pass the USD flavor token to environment so it can be queried in tests.
]
# note: move this to `repo.python_executable` when all tools support it
[repo_test.python_executable]
packman_file_path = "deps/target-deps.packman.xml"
packman_package_name = "python"
python_executable_path = "python${exe_ext}"
[repo_test.suites.main]
kind = "unittest"
log_file = "${test_root}/tests/usdex.${bucket_name}.results.xml"
discover_path = "$root/source/${bucket_name}/tests/unittest"
verbosity = 1
[[repo_test.suites.main.bucket]]
name = "core"
[[repo_test.suites.main.bucket]]
name = "rtx"
[repo_test.suites.cpp]
kind = "catch2"
tests_per_process = 0
executables = [
"$root/_build/$platform/$config/bin/test_usdex_${bucket_name}",
]
[[repo_test.suites.cpp.bucket]]
name = "core"
[[repo_test.suites.cpp.bucket]]
name = "rtx"
executables = [] # no cpp tests currently
[repo_format]
cpp.files.exclude = [
"include/usdex/pybind/BindingUtils.h",
"_*/**",
]
python.files.exclude."++" = [
"tools/repoman/pybind11_stubgen.py",
"_*/**",
]
python.line_length = 150
python.maintain_legal_blurbs = true
python.python_version = "py310"
[repo_install_usdex]
enabled = true
usd_flavor = "${usd_flavor}"
usd_ver = "${usd_ver}"
python_ver = "${python_ver}"
[repo_docs]
enabled = true
project = "${conf:repo.name}"
name = "OpenUSD Exchange SDK"
copyright_start = 2022
config = "release"
enable_dark_theme_switcher = true
sphinx_conf_py_extra = """
autodoc_member_order = 'bysource'
extensions += ["autodocsumm"] # enables :autosummary: flag in automodule directives
"""
sphinx_exclude_patterns = [
"CHANGELOG.md",
"CITATION.md",
"CODE_OF_CONDUCT.md",
"CONTRIBUTING.md",
"LICENSE.md",
"SECURITY.md",
"_build",
"_install",
".gitlab",
".github",
".cache",
"usd-exchange-ci", # exists in CI
]
use_fast_doxygen_conversion = true
only_preprocessor_enabled = true
api_root_page = {docname = "api", title = "OpenUSD Exchange C++ API", toc_docnames = "*"}
doxygen_input = [
"include/usdex/core",
"include/usdex/rtx",
"include/usdex/test",
]
doxygen_predefined = [
"__cplusplus",
"USDEX_API",
"USDEX_RTX_API",
"USDEX_IMPORT",
"USDEX_WITH_PYTHON",
]
api_title = "OpenUSD Exchange C++ API"
api_output_directory = "api"
library_paths = [
"$root/_build/$platform/$config/lib",
]
python_paths = [
"$root/_build/$platform/$config/python",
]
# controls the runtime python executable
# note: remove this when repo_docs supports the generic `repo.python_executable` settings
python_path = "$root/_build/target-deps/python/python${exe_ext}"
[repo_docs.editions.s3web]
protocol = "s3"
bucket_name = "omniverse-docs"
bucket_dir = "${project}/${version}"
[repo_package]
[repo_package.packages.usdex]
omniverse_flow_version_scheme = true
archive_name = "usd-exchange_${usd_flavor}_${usd_ver}_py_${python_ver}"
warn_if_not_exist = true
package_per_config = true
remove_pycache = true
files = [
["_build/$platform/$config/include", "include"],
["_build/$platform/$config/lib/${lib_prefix}usdex_*", "lib"],
["_build/$platform/$config/python/usdex", "python/usdex"],
["_build/$platform/$config/dev", "dev"],
["_build/PACKAGE-LICENSES/**", "PACKAGE-LICENSES"],
["PACKAGE-DEPS.yaml", "PACKAGE-DEPS.yaml"],
]
files_exclude = [
["**.pdb"],
["**.exp"],
["**.sym"],
]
[repo_package.packages."platform:linux-x86_64".docs]
omniverse_flow_version_scheme_2 = true
files = [
["_build/docs"]
]
warn_if_not_exist = true
[repo_codesign]
enabled = true
folder_input = "${root}/_build/unsignedpackages"
folder_output = "${root}/_build/signedpackages"
[repo_publish]
enabled = true
fail_if_nothing_found = true
fail_if_exist = false # allow re-runs of failed publish CI jobs to account for infrastructure issues
packages = ["usd-exchange*"]
[repo_verify_deps]
enabled = true
[repo_ci.jobs]
format.script = "$root/tools/ci/format.py"
build.script = "$root/tools/ci/build.py"
test.script = "$root/tools/ci/test.py"
verify_deps.script = "$root/tools/ci/verify_deps.py"
# the publishing scripts only exist during CI
publish_packages.script = "$root/usd-exchange-ci/scripts/publish_packages.py"
publish_docs.script = "$root/usd-exchange-ci/scripts/publish_docs.py"