diff --git a/.chronus/changes/add-test-alternate-initial-verb-post-2026-3-18-22-38-49.md b/.chronus/changes/add-test-alternate-initial-verb-post-2026-3-18-22-38-49.md deleted file mode 100644 index bffe050bd80..00000000000 --- a/.chronus/changes/add-test-alternate-initial-verb-post-2026-3-18-22-38-49.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -changeKind: internal -packages: - - "@typespec/http-client-python" ---- - -Add mock API test case for the `AlternateInitialVerb` POST pagination scenario where the initial request uses POST with a filter body and subsequent next link requests use GET. diff --git a/.chronus/changes/add-xml-datetime-put-test-2026-3-16-3-9-2.md b/.chronus/changes/add-xml-datetime-put-test-2026-3-16-3-9-2.md deleted file mode 100644 index 9da462bf509..00000000000 --- a/.chronus/changes/add-xml-datetime-put-test-2026-3-16-3-9-2.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -changeKind: internal -packages: - - "@typespec/http-client-python" ---- - -Add PUT test coverage for `ModelWithDatetime` XML payload scenario and bump `@typespec/http-specs`/`@typespec/spec-api` dependencies to include the datetime validation fix from PR #9995. diff --git a/.chronus/changes/copilot-add-test-case-for-pull-4054-2026-2-17-9-28-21.md b/.chronus/changes/copilot-add-test-case-for-pull-4054-2026-2-17-9-28-21.md deleted file mode 100644 index e74b1b7dd7b..00000000000 --- a/.chronus/changes/copilot-add-test-case-for-pull-4054-2026-2-17-9-28-21.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -changeKind: internal -packages: - - "@typespec/http-client-python" ---- - -upgrade latest dev version of `@azure-tools/azure-http-specs` \ No newline at end of file diff --git a/.chronus/changes/fix_pkg_manager_detection-2026-2-19-14-33-30.md b/.chronus/changes/fix_pkg_manager_detection-2026-2-19-14-33-30.md deleted file mode 100644 index 3ed9d56f102..00000000000 --- a/.chronus/changes/fix_pkg_manager_detection-2026-2-19-14-33-30.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -changeKind: fix -packages: - - "@typespec/http-client-python" ---- - -Fix PermissionError when detecting package manager on WSL \ No newline at end of file diff --git a/.chronus/changes/jolov-publish-always-internal-2026-2-19-10-50-1.md b/.chronus/changes/jolov-publish-always-internal-2026-2-19-10-50-1.md deleted file mode 100644 index ab595f59673..00000000000 --- a/.chronus/changes/jolov-publish-always-internal-2026-2-19-10-50-1.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -changeKind: internal -packages: - - "@typespec/http-client-python" ---- - -Update internal npm feed from azure-sdk-for-js-test-autorest to azure-sdk-for-js \ No newline at end of file diff --git a/.chronus/changes/python-fix-api-version-docstring-2026-3-23.md b/.chronus/changes/python-fix-api-version-docstring-2026-3-23.md deleted file mode 100644 index 881973847e6..00000000000 --- a/.chronus/changes/python-fix-api-version-docstring-2026-3-23.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -changeKind: fix -packages: - - "@typespec/http-client-python" ---- - -Remove `None` from "Known values" in `api_version` parameter docstring since the parameter is typed as `str` and `None` is not a valid API version value. diff --git a/.chronus/changes/python-fix-paging-model-2026-2-24-7-24-1.md b/.chronus/changes/python-fix-paging-model-2026-2-24-7-24-1.md deleted file mode 100644 index 73917c94f41..00000000000 --- a/.chronus/changes/python-fix-paging-model-2026-2-24-7-24-1.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -changeKind: fix -packages: - - "@typespec/http-client-python" ---- - -Fix model usage which is referred both in request and response \ No newline at end of file diff --git a/.chronus/changes/python-test-client-operation-group-to-client-2026-3-16-22-50-0.md b/.chronus/changes/python-test-client-operation-group-to-client-2026-3-16-22-50-0.md deleted file mode 100644 index 9c58a6411d7..00000000000 --- a/.chronus/changes/python-test-client-operation-group-to-client-2026-3-16-22-50-0.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -changeKind: internal -packages: - - "@typespec/http-client-python" ---- - -Update test cases for Azure/typespec-azure#3997: replace `@operationGroup` with `@client` decorator changes. Remove deleted `multi-service-older-versions` tests and update client structure, naming tests to reflect new flat client hierarchy. diff --git a/.chronus/changes/skip-client-structure-tests-pending-tcgc-upgrade-2026-3-18.md b/.chronus/changes/skip-client-structure-tests-pending-tcgc-upgrade-2026-3-18.md deleted file mode 100644 index 936ea2cf78f..00000000000 --- a/.chronus/changes/skip-client-structure-tests-pending-tcgc-upgrade-2026-3-18.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -changeKind: internal -packages: - - "@typespec/http-client-python" ---- - -Skip 8 failing client structure test cases pending `@azure-tools/typespec-client-generator-core` upgrade to 0.67.0 diff --git a/packages/http-client-python/CHANGELOG.md b/packages/http-client-python/CHANGELOG.md index 5f102ed8a51..2f919deeba1 100644 --- a/packages/http-client-python/CHANGELOG.md +++ b/packages/http-client-python/CHANGELOG.md @@ -1,5 +1,14 @@ # Change Log - @typespec/http-client-python +## 0.28.1 + +### Bug Fixes + +- [#10084](https://github.com/microsoft/typespec/pull/10084) Fix PermissionError when detecting package manager on WSL +- [#10105](https://github.com/microsoft/typespec/pull/10105) Remove `None` from "Known values" in `api_version` parameter docstring since the parameter is typed as `str` and `None` is not a valid API version value. +- [#10117](https://github.com/microsoft/typespec/pull/10117) Fix model usage which is referred both in request and response + + ## 0.28.0 ### Features diff --git a/packages/http-client-python/package-lock.json b/packages/http-client-python/package-lock.json index b73bda80a11..9c4b5521736 100644 --- a/packages/http-client-python/package-lock.json +++ b/packages/http-client-python/package-lock.json @@ -1,12 +1,12 @@ { "name": "@typespec/http-client-python", - "version": "0.28.0", + "version": "0.28.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@typespec/http-client-python", - "version": "0.28.0", + "version": "0.28.1", "hasInstallScript": true, "license": "MIT", "dependencies": { @@ -22,14 +22,14 @@ "@azure-tools/typespec-azure-core": "~0.66.0", "@azure-tools/typespec-azure-resource-manager": "~0.66.0", "@azure-tools/typespec-azure-rulesets": "~0.66.0", - "@azure-tools/typespec-client-generator-core": "~0.66.2", + "@azure-tools/typespec-client-generator-core": "~0.66.3", "@types/js-yaml": "~4.0.5", "@types/node": "~25.0.2", "@types/semver": "7.5.8", "@typespec/compiler": "^1.10.0", "@typespec/events": "~0.80.0", "@typespec/http": "^1.10.0", - "@typespec/http-specs": "0.1.0-alpha.35-dev.4", + "@typespec/http-specs": "0.1.0-alpha.35", "@typespec/openapi": "^1.10.0", "@typespec/rest": "~0.80.0", "@typespec/spec-api": "0.1.0-alpha.14-dev.1", @@ -53,7 +53,7 @@ "@azure-tools/typespec-azure-core": ">=0.66.0 <1.0.0", "@azure-tools/typespec-azure-resource-manager": ">=0.66.0 <1.0.0", "@azure-tools/typespec-azure-rulesets": ">=0.66.0 <1.0.0", - "@azure-tools/typespec-client-generator-core": ">=0.66.2 <1.0.0", + "@azure-tools/typespec-client-generator-core": ">=0.66.3 <1.0.0", "@typespec/compiler": "^1.10.0", "@typespec/events": ">=0.80.0 <1.0.0", "@typespec/http": "^1.10.0", @@ -167,9 +167,9 @@ } }, "node_modules/@azure-tools/typespec-client-generator-core": { - "version": "0.66.2", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-core/-/typespec-client-generator-core-0.66.2.tgz", - "integrity": "sha512-Qr5fstJ0yQiTYNvp/EuY3+mUBue2ri9qNZkT6aC+CsfBt5yjfdjo++3SuEsDQtELyS8pBoDOT3weLiB0N+/fSw==", + "version": "0.66.3", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-core/-/typespec-client-generator-core-0.66.3.tgz", + "integrity": "sha512-sNetQ6igxAp/vL6X2kEIy715ToDTqoJeb+OL59GEUtOW/3KBSi5tsxvDdCwSfEoaNEmv/FYjh/gJDwAWCJdFJg==", "dev": true, "license": "MIT", "dependencies": { @@ -2492,25 +2492,25 @@ } }, "node_modules/@typespec/http-specs": { - "version": "0.1.0-alpha.35-dev.4", - "resolved": "https://registry.npmjs.org/@typespec/http-specs/-/http-specs-0.1.0-alpha.35-dev.4.tgz", - "integrity": "sha512-KI8b/wJDdWhNM8ypJEeOgl0Fj9xTxKqSQfmOUqgcQYqlaNeU+jpvqS/xD3wEOguh6YMrCUD9FG9h6mgp8409KA==", + "version": "0.1.0-alpha.35", + "resolved": "https://registry.npmjs.org/@typespec/http-specs/-/http-specs-0.1.0-alpha.35.tgz", + "integrity": "sha512-xLQUmldKvO0TTOf/wpYLbj2dIuXiQfw3gGKN0ZblD3Q3VGHOXEYEALdQ7lQWn3l2lV33cKgEfC3fX/q/p9N/ug==", "dev": true, "license": "MIT", "dependencies": { - "@typespec/spec-api": "^0.1.0-alpha.13 || >= 0.1.0-alpha.14-dev.2", - "@typespec/spector": "^0.1.0-alpha.24 || >= 0.1.0-dev.2", + "@typespec/spec-api": "^0.1.0-alpha.13", + "@typespec/spector": "^0.1.0-alpha.24", "deep-equal": "^2.2.3" }, "engines": { "node": ">=16.0.0" }, "peerDependencies": { - "@typespec/compiler": "^1.10.0 || >= 1.11.0-dev.4", - "@typespec/http": "^1.10.0 || >= 1.11.0-dev.2", - "@typespec/rest": "^0.80.0 || >= 0.81.0-dev.1", - "@typespec/versioning": "^0.80.0 || >= 0.81.0-dev.1", - "@typespec/xml": "^0.80.0 || >= 0.81.0-dev.1" + "@typespec/compiler": "^1.10.0", + "@typespec/http": "^1.10.0", + "@typespec/rest": "^0.80.0", + "@typespec/versioning": "^0.80.0", + "@typespec/xml": "^0.80.0" } }, "node_modules/@typespec/openapi": { diff --git a/packages/http-client-python/package.json b/packages/http-client-python/package.json index e76f85c0047..9215446359b 100644 --- a/packages/http-client-python/package.json +++ b/packages/http-client-python/package.json @@ -1,6 +1,6 @@ { "name": "@typespec/http-client-python", - "version": "0.28.0", + "version": "0.28.1", "author": "Microsoft Corporation", "description": "TypeSpec emitter for Python SDKs", "homepage": "https://typespec.io", @@ -58,7 +58,7 @@ "@azure-tools/typespec-azure-core": ">=0.66.0 <1.0.0", "@azure-tools/typespec-azure-resource-manager": ">=0.66.0 <1.0.0", "@azure-tools/typespec-azure-rulesets": ">=0.66.0 <1.0.0", - "@azure-tools/typespec-client-generator-core": ">=0.66.2 <1.0.0", + "@azure-tools/typespec-client-generator-core": ">=0.66.3 <1.0.0", "@typespec/compiler": "^1.10.0", "@typespec/http": "^1.10.0", "@typespec/openapi": "^1.10.0", @@ -81,7 +81,7 @@ "@azure-tools/typespec-azure-core": "~0.66.0", "@azure-tools/typespec-azure-resource-manager": "~0.66.0", "@azure-tools/typespec-azure-rulesets": "~0.66.0", - "@azure-tools/typespec-client-generator-core": "~0.66.2", + "@azure-tools/typespec-client-generator-core": "~0.66.3", "@azure-tools/azure-http-specs": "0.1.0-alpha.39-dev.4", "@typespec/compiler": "^1.10.0", "@typespec/http": "^1.10.0", @@ -94,7 +94,7 @@ "@typespec/sse": "~0.80.0", "@typespec/streams": "~0.80.0", "@typespec/xml": "~0.80.0", - "@typespec/http-specs": "0.1.0-alpha.35-dev.4", + "@typespec/http-specs": "0.1.0-alpha.35", "@types/js-yaml": "~4.0.5", "@types/node": "~25.0.2", "@types/semver": "7.5.8",