Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .chronus/changes/fix-packaging-for-arm-2025-6-30-17-55-15.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
changeKind: fix
packages:
- "@typespec/http-client-python"
---

fix outputfolder of packaging files for arm sdk
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,8 @@ def _serialize_and_write_package_files(self, client_namespace: str) -> None:
file = template_name.replace(".jinja2", "")
output_name = root_of_sdk / file
if not self.read_file(output_name) or file in _REGENERATE_FILES:
if self.keep_version_file and file == "setup.py":
# don't regenerate setup.py file if the version file is more up to date
if self.keep_version_file and file == "setup.py" and not self.code_model.options["azure-arm"]:
# don't regenerate setup.py file if the version file is more up to date for data-plane
continue
self.write_file(
output_name,
Expand Down Expand Up @@ -487,7 +487,11 @@ def exec_path_for_test_sample(self, namespace: str) -> Path:

# pylint: disable=line-too-long
def exec_path(self, namespace: str) -> Path:
if self.code_model.options["no-namespace-folders"] and not self.code_model.options["multiapi"]:
if (
self.code_model.options["no-namespace-folders"]
and not self.code_model.options["multiapi"]
and not self.code_model.options["azure-arm"]
):
# when output folder contains parts different from the namespace, we fall back to current folder directly.
# (e.g. https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/communication/azure-communication-callautomation/swagger/SWAGGER.md)
return Path(".")
Expand Down
Loading