Skip to content

Commit 7a84ecf

Browse files
authored
Bump typespec-python 0.25.0 (#36352)
* do not record version of autorest.python * bump typespec-python
1 parent f8a0c21 commit 7a84ecf

File tree

3 files changed

+74
-32
lines changed

3 files changed

+74
-32
lines changed

eng/emitter-package-lock.json

Lines changed: 70 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

eng/emitter-package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
{
22
"main": "dist/src/index.js",
33
"dependencies": {
4-
"@azure-tools/typespec-python": "0.24.3"
4+
"@azure-tools/typespec-python": "0.25.0"
55
},
66
"devDependencies": {
77
"@azure-tools/typespec-autorest": "~0.43.0",
88
"@azure-tools/typespec-azure-core": "~0.43.0",
99
"@azure-tools/typespec-azure-rulesets": "~0.43.0",
1010
"@azure-tools/typespec-azure-resource-manager": "~0.43.0",
11-
"@azure-tools/typespec-client-generator-core": "~0.43.0",
11+
"@azure-tools/typespec-client-generator-core": "~0.43.1",
1212
"@typespec/compiler": "~0.57.0",
1313
"@typespec/http": "~0.57.0",
1414
"@typespec/openapi": "~0.57.0",
1515
"@typespec/rest": "~0.57.0",
16-
"@typespec/versioning": "~0.57.0"
16+
"@typespec/versioning": "~0.57.0",
17+
"@typespec/xml": "~0.57.0"
1718
}
1819
}

tools/azure-sdk-tools/packaging_tools/generate_utils.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,6 @@ def generate_ci(template_path: Path, folder_path: Path, package_name: str) -> No
436436

437437
def gen_typespec(typespec_relative_path: str, spec_folder: str, head_sha: str, rest_repo_url: str) -> Dict[str, Any]:
438438
typespec_python = "@azure-tools/typespec-python"
439-
autorest_python = "@autorest/python"
440439
# call scirpt to generate sdk
441440
try:
442441
tsp_dir = (Path(spec_folder) / typespec_relative_path).resolve()
@@ -449,13 +448,10 @@ def gen_typespec(typespec_relative_path: str, spec_folder: str, head_sha: str, r
449448
_LOGGER.error(f"Failed to generate sdk from typespec: {e.output.decode('utf-8')}")
450449
raise e
451450

452-
# get version of codegen used in generation
453-
autorest_python_version = getoutput(f"npm show {autorest_python} version")
454451
with open(Path("eng/emitter-package.json"), "r") as file_in:
455452
data = json.load(file_in)
456453
npm_package_verstion = {
457454
typespec_python: data["dependencies"][typespec_python],
458-
autorest_python: autorest_python_version,
459455
}
460456

461457
return npm_package_verstion

0 commit comments

Comments
 (0)