@autorest/python 6.1.0 → 6.1.1
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.
- package/ChangeLog.md +15 -0
- package/package.json +3 -2
- package/run_cadl.py +26 -0
package/ChangeLog.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Release History
|
|
2
2
|
|
|
3
|
+
### 2022-07-20 - 6.1.1
|
|
4
|
+
|
|
5
|
+
| Library | Min Version |
|
|
6
|
+
| ----------------------------------------------------------------------- | ----------- |
|
|
7
|
+
| `@autorest/core` | `3.8.1` |
|
|
8
|
+
| `@autorest/modelerfour` | `4.23.5` |
|
|
9
|
+
| `azure-core` dep of generated code | `1.24.0` |
|
|
10
|
+
| `isodate` dep of generated code | `0.6.1` |
|
|
11
|
+
| `msrest` dep of generated code (If generating legacy code) | `0.7.1` |
|
|
12
|
+
| `azure-mgmt-core` dep of generated code (If generating mgmt plane code) | `1.3.0` |
|
|
13
|
+
|
|
14
|
+
**Other Changes**
|
|
15
|
+
|
|
16
|
+
- Get skeleton for cadl generation released #1358
|
|
17
|
+
|
|
3
18
|
### 2022-07-20 - 6.1.0
|
|
4
19
|
|
|
5
20
|
| Library | Min Version |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@autorest/python",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.1",
|
|
4
4
|
"description": "The Python extension for generators in AutoRest.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"prepare": "node run-python3.js prepare.py",
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"start.py",
|
|
39
39
|
"venvtools.py",
|
|
40
40
|
"run-python3.js",
|
|
41
|
-
"requirements.txt"
|
|
41
|
+
"requirements.txt",
|
|
42
|
+
"run_cadl.py"
|
|
42
43
|
]
|
|
43
44
|
}
|
package/run_cadl.py
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# -------------------------------------------------------------------------
|
|
2
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
# Licensed under the MIT License. See License.txt in the project root for
|
|
4
|
+
# license information.
|
|
5
|
+
# --------------------------------------------------------------------------
|
|
6
|
+
import sys
|
|
7
|
+
import venv
|
|
8
|
+
from pathlib import Path
|
|
9
|
+
from venvtools import python_run
|
|
10
|
+
|
|
11
|
+
_ROOT_DIR = Path(__file__).parent
|
|
12
|
+
|
|
13
|
+
if __name__ == "__main__":
|
|
14
|
+
venv_path = _ROOT_DIR / "venv"
|
|
15
|
+
venv_prexists = venv_path.exists()
|
|
16
|
+
|
|
17
|
+
assert venv_prexists # Otherwise install was not done
|
|
18
|
+
|
|
19
|
+
env_builder = venv.EnvBuilder(with_pip=True)
|
|
20
|
+
venv_context = env_builder.ensure_directories(venv_path)
|
|
21
|
+
|
|
22
|
+
# run m2r
|
|
23
|
+
python_run(venv_context, "autorest.m2r.__init__", command=sys.argv[1:])
|
|
24
|
+
python_run(venv_context, "autorest.preprocess.__init__", command=sys.argv[1:])
|
|
25
|
+
python_run(venv_context, "autorest.codegen.__init__", command=sys.argv[1:])
|
|
26
|
+
python_run(venv_context, "autorest.black.__init__", command=sys.argv[1:])
|