@autorest/python 6.13.6 → 6.13.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1431,9 +1431,12 @@ class _PagingOperationSerializer(
|
|
|
1431
1431
|
"})",
|
|
1432
1432
|
]
|
|
1433
1433
|
)
|
|
1434
|
-
|
|
1435
|
-
|
|
1434
|
+
api_version = (
|
|
1435
|
+
"self._api_version"
|
|
1436
|
+
if self.code_model.options["multiapi"] and builder.group_name
|
|
1437
|
+
else api_version_param.full_client_name
|
|
1436
1438
|
)
|
|
1439
|
+
retval.append(f'_next_request_params["api-version"] = {api_version}')
|
|
1437
1440
|
query_str = ", params=_next_request_params"
|
|
1438
1441
|
next_link_str = "urllib.parse.urljoin(next_link, _parsed_next_link.path)"
|
|
1439
1442
|
except StopIteration:
|
package/package.json
CHANGED
package/prepare.py
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
# license information.
|
|
7
7
|
# --------------------------------------------------------------------------
|
|
8
8
|
import sys
|
|
9
|
-
if not sys.version_info >= (3,
|
|
9
|
+
if not sys.version_info >= (3, 8, 0):
|
|
10
10
|
raise Exception("Autorest for Python extension requires Python 3.8 at least")
|
|
11
11
|
|
|
12
12
|
from pathlib import Path
|
package/start.py
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
# license information.
|
|
7
7
|
# --------------------------------------------------------------------------
|
|
8
8
|
import sys
|
|
9
|
-
if not sys.version_info >= (3,
|
|
9
|
+
if not sys.version_info >= (3, 8, 0):
|
|
10
10
|
raise Exception("Autorest for Python extension requires Python 3.8 at least")
|
|
11
11
|
|
|
12
12
|
from pathlib import Path
|
|
@@ -23,7 +23,10 @@ def main():
|
|
|
23
23
|
|
|
24
24
|
assert venv_prexists # Otherwise install was not done
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
if sys.version_info < (3, 9, 0):
|
|
27
|
+
env_builder = venv.EnvBuilder(with_pip=True)
|
|
28
|
+
else:
|
|
29
|
+
env_builder = venv.EnvBuilder(with_pip=True, upgrade_deps=True)
|
|
27
30
|
venv_context = env_builder.ensure_directories(venv_path)
|
|
28
31
|
python_run(venv_context, "autorest.jsonrpc.server", command=sys.argv[1:])
|
|
29
32
|
|