@azure-tools/typespec-python 0.38.1 → 0.38.2
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure-tools/typespec-python",
|
|
3
|
-
"version": "0.38.
|
|
3
|
+
"version": "0.38.2",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "TypeSpec emitter for Python SDKs",
|
|
6
6
|
"homepage": "https://github.com/Azure/autorest.python",
|
|
@@ -42,13 +42,13 @@
|
|
|
42
42
|
"@azure-tools/typespec-azure-resource-manager": ">=0.50.0 <1.0.0",
|
|
43
43
|
"@azure-tools/typespec-autorest": ">=0.50.0 <1.0.0",
|
|
44
44
|
"@azure-tools/typespec-azure-rulesets": ">=0.50.0 <3.0.0",
|
|
45
|
-
"@azure-tools/typespec-client-generator-core": ">=0.50.
|
|
45
|
+
"@azure-tools/typespec-client-generator-core": ">=0.50.2 <1.0.0"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"js-yaml": "~4.1.0",
|
|
49
49
|
"semver": "~7.6.2",
|
|
50
50
|
"tsx": "~4.19.1",
|
|
51
|
-
"@typespec/http-client-python": "~0.6.
|
|
51
|
+
"@typespec/http-client-python": "~0.6.9",
|
|
52
52
|
"fs-extra": "~11.2.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@azure-tools/typespec-azure-core": "~0.50.0",
|
|
62
62
|
"@azure-tools/typespec-azure-rulesets": "~0.50.0",
|
|
63
63
|
"@azure-tools/typespec-autorest": "~0.50.0",
|
|
64
|
-
"@azure-tools/typespec-client-generator-core": "~0.50.
|
|
64
|
+
"@azure-tools/typespec-client-generator-core": "~0.50.2",
|
|
65
65
|
"@azure-tools/azure-http-specs": "0.1.0-alpha.5",
|
|
66
66
|
"@typespec/http-specs": "0.1.0-alpha.7",
|
|
67
67
|
"@types/js-yaml": "~4.0.5",
|
|
Binary file
|
package/scripts/eng/mypy.ini
CHANGED
package/scripts/prepare.py
CHANGED
|
@@ -22,9 +22,9 @@ _ROOT_DIR = Path(__file__).parent.parent
|
|
|
22
22
|
|
|
23
23
|
def main():
|
|
24
24
|
venv_path = _ROOT_DIR / "venv"
|
|
25
|
-
|
|
25
|
+
venv_preexists = venv_path.exists()
|
|
26
26
|
|
|
27
|
-
assert
|
|
27
|
+
assert venv_preexists # Otherwise install was not done
|
|
28
28
|
|
|
29
29
|
env_builder = venv.EnvBuilder(with_pip=True)
|
|
30
30
|
venv_context = env_builder.ensure_directories(venv_path)
|
package/scripts/run_tsp.py
CHANGED
|
@@ -16,9 +16,9 @@ _LOGGER = logging.getLogger(__name__)
|
|
|
16
16
|
|
|
17
17
|
if __name__ == "__main__":
|
|
18
18
|
venv_path = _ROOT_DIR / "venv"
|
|
19
|
-
|
|
19
|
+
venv_preexists = venv_path.exists()
|
|
20
20
|
|
|
21
|
-
assert
|
|
21
|
+
assert venv_preexists # Otherwise install was not done
|
|
22
22
|
|
|
23
23
|
env_builder = venv.EnvBuilder(with_pip=True)
|
|
24
24
|
venv_context = env_builder.ensure_directories(venv_path)
|
package/scripts/venvtools.py
CHANGED
|
@@ -49,9 +49,9 @@ def create(
|
|
|
49
49
|
|
|
50
50
|
@contextmanager
|
|
51
51
|
def create_venv_with_package(packages):
|
|
52
|
-
"""Create a venv with these packages in a temp dir and
|
|
52
|
+
"""Create a venv with these packages in a temp dir and yield the env.
|
|
53
53
|
|
|
54
|
-
packages should be an iterable of pip version
|
|
54
|
+
packages should be an iterable of pip version instructions (e.g. package~=1.2.3)
|
|
55
55
|
"""
|
|
56
56
|
with tempfile.TemporaryDirectory() as tempdir:
|
|
57
57
|
myenv = create(tempdir, with_pip=True, upgrade_deps=True)
|