Skip to content

Commit a9c52dd

Browse files
committed
Freeze versions of autorest
1 parent bf65cf2 commit a9c52dd

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

diracx-testing/src/diracx/testing/client_generation.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,18 +111,16 @@ def regenerate_client(openapi_spec: Path, client_module: str):
111111

112112
cmd = [
113113
"autorest",
114+
"--version=3.10.4",
115+
"--use=@autorest/python@6.34.1",
116+
"--use=@autorest/modelerfour@4.23.7",
114117
"--python",
115118
f"--input-file={openapi_spec}",
116119
"--models-mode=msrest",
117120
"--namespace=_generated",
118121
f"--output-folder={client_root}",
119122
]
120123

121-
# This is required to be able to work offline
122-
# TODO: if offline, find the version already installed
123-
# and use it
124-
# cmd += [f"--use=@autorest/python@{AUTOREST_VERSION}"]
125-
126124
# ruff: disable=S603
127125
subprocess.run(cmd, check=True)
128126

0 commit comments

Comments
 (0)