diff --git a/.chronus/changes/auto-swathipil-tsp-python-exclude-doc-from-pyproject-2025-7-6-13-9-37.md b/.chronus/changes/auto-swathipil-tsp-python-exclude-doc-from-pyproject-2025-7-6-13-9-37.md new file mode 100644 index 00000000000..9056b8ded9c --- /dev/null +++ b/.chronus/changes/auto-swathipil-tsp-python-exclude-doc-from-pyproject-2025-7-6-13-9-37.md @@ -0,0 +1,8 @@ +--- +changeKind: fix +packages: + - "@autorest/python" + - "@azure-tools/typespec-python" +--- + +Update pyproject.toml to exclude doc/ and for pep 639 \ No newline at end of file diff --git a/packages/autorest.python/package.json b/packages/autorest.python/package.json index a94ffd452dc..e910ea7c8ba 100644 --- a/packages/autorest.python/package.json +++ b/packages/autorest.python/package.json @@ -29,7 +29,7 @@ }, "homepage": "https://github.com/Azure/autorest.python/blob/main/README.md", "dependencies": { - "@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTE4NzMzOC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.15.0.tgz", + "@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTE4ODIwOS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.15.0.tgz", "@autorest/system-requirements": "~1.0.2", "fs-extra": "~11.2.0", "tsx": "~4.19.1" @@ -47,4 +47,4 @@ "requirements.txt", "generator/" ] -} +} \ No newline at end of file diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/pyproject.toml b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/pyproject.toml index 6ee8eaad563..809f91c5c2d 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/pyproject.toml +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Package Mode Batch Mgmt Plane Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 5 - Production/Stable", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "azure", "azure.packagemode", ] diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeDataPlane/pyproject.toml b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeDataPlane/pyproject.toml index e23a169b11c..ce1e890d9de 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeDataPlane/pyproject.toml +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeDataPlane/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Package Mode Data Plane Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 5 - Production/Stable", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "azure", "azure.packagemode", ] diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeMgmtPlane/pyproject.toml b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeMgmtPlane/pyproject.toml index 83c8570230b..f4e100dd382 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeMgmtPlane/pyproject.toml +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeMgmtPlane/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Package Mode Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 5 - Production/Stable", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "azure", "azure.package", ] diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/InternalOperation/pyproject.toml b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/InternalOperation/pyproject.toml index d0b66750f1a..9b2ec0a4be9 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/InternalOperation/pyproject.toml +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/InternalOperation/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Internal Operation Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", ] [tool.setuptools.package-data] diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/PackageModeDataPlane/pyproject.toml b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/PackageModeDataPlane/pyproject.toml index ac1deaa65a1..3c701f1d21c 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/PackageModeDataPlane/pyproject.toml +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/PackageModeDataPlane/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Package Mode Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", ] [tool.setuptools.package-data] diff --git a/packages/typespec-python/package.json b/packages/typespec-python/package.json index 890e0fd7c52..16164eec0f2 100644 --- a/packages/typespec-python/package.json +++ b/packages/typespec-python/package.json @@ -67,7 +67,7 @@ "js-yaml": "~4.1.0", "semver": "~7.6.2", "tsx": "~4.19.1", - "@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTE4NzMzOC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.15.0.tgz", + "@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTE4ODIwOS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.15.0.tgz", "fs-extra": "~11.2.0" }, "devDependencies": { @@ -103,4 +103,4 @@ "chalk": "5.3.0", "@types/fs-extra": "11.0.4" } -} +} \ No newline at end of file diff --git a/packages/typespec-python/test/azure/generated/authentication-api-key-subdir/authentication/api/key/subdir/_generated/_operations/_operations.py b/packages/typespec-python/test/azure/generated/authentication-api-key-subdir/authentication/api/key/subdir/_generated/_operations/_operations.py index a79d35adcc2..104d8af49e3 100644 --- a/packages/typespec-python/test/azure/generated/authentication-api-key-subdir/authentication/api/key/subdir/_generated/_operations/_operations.py +++ b/packages/typespec-python/test/azure/generated/authentication-api-key-subdir/authentication/api/key/subdir/_generated/_operations/_operations.py @@ -145,7 +145,7 @@ def invalid(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return map_error(status_code=response.status_code, response=response, error_map=error_map) error = None if response.status_code == 403: - error = _failsafe_deserialize(_models.InvalidAuth, response) + error = _failsafe_deserialize(_models.InvalidAuth, response.json()) raise HttpResponseError(response=response, model=error) if cls: diff --git a/packages/typespec-python/test/azure/generated/authentication-api-key-subdir/authentication/api/key/subdir/_generated/_utils/model_base.py b/packages/typespec-python/test/azure/generated/authentication-api-key-subdir/authentication/api/key/subdir/_generated/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/authentication-api-key-subdir/authentication/api/key/subdir/_generated/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/authentication-api-key-subdir/authentication/api/key/subdir/_generated/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/authentication-api-key-subdir/authentication/api/key/subdir/_generated/aio/_operations/_operations.py b/packages/typespec-python/test/azure/generated/authentication-api-key-subdir/authentication/api/key/subdir/_generated/aio/_operations/_operations.py index 0d9890873fa..52a900f805b 100644 --- a/packages/typespec-python/test/azure/generated/authentication-api-key-subdir/authentication/api/key/subdir/_generated/aio/_operations/_operations.py +++ b/packages/typespec-python/test/azure/generated/authentication-api-key-subdir/authentication/api/key/subdir/_generated/aio/_operations/_operations.py @@ -121,7 +121,7 @@ async def invalid(self, **kwargs: Any) -> None: map_error(status_code=response.status_code, response=response, error_map=error_map) error = None if response.status_code == 403: - error = _failsafe_deserialize(_models.InvalidAuth, response) + error = _failsafe_deserialize(_models.InvalidAuth, response.json()) raise HttpResponseError(response=response, model=error) if cls: diff --git a/packages/typespec-python/test/azure/generated/authentication-api-key-subdir/pyproject.toml b/packages/typespec-python/test/azure/generated/authentication-api-key-subdir/pyproject.toml index 82fbf2781b0..d13e3961a87 100644 --- a/packages/typespec-python/test/azure/generated/authentication-api-key-subdir/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/authentication-api-key-subdir/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Authentication Api Key Subdir Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "authentication", "authentication.api", "authentication.api.key", diff --git a/packages/typespec-python/test/azure/generated/authentication-api-key/authentication/apikey/_operations/_operations.py b/packages/typespec-python/test/azure/generated/authentication-api-key/authentication/apikey/_operations/_operations.py index a79d35adcc2..104d8af49e3 100644 --- a/packages/typespec-python/test/azure/generated/authentication-api-key/authentication/apikey/_operations/_operations.py +++ b/packages/typespec-python/test/azure/generated/authentication-api-key/authentication/apikey/_operations/_operations.py @@ -145,7 +145,7 @@ def invalid(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return map_error(status_code=response.status_code, response=response, error_map=error_map) error = None if response.status_code == 403: - error = _failsafe_deserialize(_models.InvalidAuth, response) + error = _failsafe_deserialize(_models.InvalidAuth, response.json()) raise HttpResponseError(response=response, model=error) if cls: diff --git a/packages/typespec-python/test/azure/generated/authentication-api-key/authentication/apikey/_utils/model_base.py b/packages/typespec-python/test/azure/generated/authentication-api-key/authentication/apikey/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/authentication-api-key/authentication/apikey/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/authentication-api-key/authentication/apikey/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/authentication-api-key/authentication/apikey/aio/_operations/_operations.py b/packages/typespec-python/test/azure/generated/authentication-api-key/authentication/apikey/aio/_operations/_operations.py index 0d9890873fa..52a900f805b 100644 --- a/packages/typespec-python/test/azure/generated/authentication-api-key/authentication/apikey/aio/_operations/_operations.py +++ b/packages/typespec-python/test/azure/generated/authentication-api-key/authentication/apikey/aio/_operations/_operations.py @@ -121,7 +121,7 @@ async def invalid(self, **kwargs: Any) -> None: map_error(status_code=response.status_code, response=response, error_map=error_map) error = None if response.status_code == 403: - error = _failsafe_deserialize(_models.InvalidAuth, response) + error = _failsafe_deserialize(_models.InvalidAuth, response.json()) raise HttpResponseError(response=response, model=error) if cls: diff --git a/packages/typespec-python/test/azure/generated/authentication-api-key/pyproject.toml b/packages/typespec-python/test/azure/generated/authentication-api-key/pyproject.toml index 4ac48b5af28..a3cacf4a741 100644 --- a/packages/typespec-python/test/azure/generated/authentication-api-key/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/authentication-api-key/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Authentication Apikey Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "authentication", ] diff --git a/packages/typespec-python/test/azure/generated/authentication-http-custom/authentication/http/custom/_operations/_operations.py b/packages/typespec-python/test/azure/generated/authentication-http-custom/authentication/http/custom/_operations/_operations.py index 5b26c016a03..40dd4aa36dd 100644 --- a/packages/typespec-python/test/azure/generated/authentication-http-custom/authentication/http/custom/_operations/_operations.py +++ b/packages/typespec-python/test/azure/generated/authentication-http-custom/authentication/http/custom/_operations/_operations.py @@ -145,7 +145,7 @@ def invalid(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return map_error(status_code=response.status_code, response=response, error_map=error_map) error = None if response.status_code == 403: - error = _failsafe_deserialize(_models.InvalidAuth, response) + error = _failsafe_deserialize(_models.InvalidAuth, response.json()) raise HttpResponseError(response=response, model=error) if cls: diff --git a/packages/typespec-python/test/azure/generated/authentication-http-custom/authentication/http/custom/_utils/model_base.py b/packages/typespec-python/test/azure/generated/authentication-http-custom/authentication/http/custom/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/authentication-http-custom/authentication/http/custom/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/authentication-http-custom/authentication/http/custom/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/authentication-http-custom/authentication/http/custom/aio/_operations/_operations.py b/packages/typespec-python/test/azure/generated/authentication-http-custom/authentication/http/custom/aio/_operations/_operations.py index 5e9e7a39ef3..e32db8bfe64 100644 --- a/packages/typespec-python/test/azure/generated/authentication-http-custom/authentication/http/custom/aio/_operations/_operations.py +++ b/packages/typespec-python/test/azure/generated/authentication-http-custom/authentication/http/custom/aio/_operations/_operations.py @@ -121,7 +121,7 @@ async def invalid(self, **kwargs: Any) -> None: map_error(status_code=response.status_code, response=response, error_map=error_map) error = None if response.status_code == 403: - error = _failsafe_deserialize(_models.InvalidAuth, response) + error = _failsafe_deserialize(_models.InvalidAuth, response.json()) raise HttpResponseError(response=response, model=error) if cls: diff --git a/packages/typespec-python/test/azure/generated/authentication-http-custom/pyproject.toml b/packages/typespec-python/test/azure/generated/authentication-http-custom/pyproject.toml index 734538ef598..4a835f70b09 100644 --- a/packages/typespec-python/test/azure/generated/authentication-http-custom/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/authentication-http-custom/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Authentication Http Custom Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "authentication", "authentication.http", ] diff --git a/packages/typespec-python/test/azure/generated/authentication-oauth2/authentication/oauth2/_operations/_operations.py b/packages/typespec-python/test/azure/generated/authentication-oauth2/authentication/oauth2/_operations/_operations.py index 33e66f0269c..7d7feb8aeb2 100644 --- a/packages/typespec-python/test/azure/generated/authentication-oauth2/authentication/oauth2/_operations/_operations.py +++ b/packages/typespec-python/test/azure/generated/authentication-oauth2/authentication/oauth2/_operations/_operations.py @@ -145,7 +145,7 @@ def invalid(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return map_error(status_code=response.status_code, response=response, error_map=error_map) error = None if response.status_code == 403: - error = _failsafe_deserialize(_models.InvalidAuth, response) + error = _failsafe_deserialize(_models.InvalidAuth, response.json()) raise HttpResponseError(response=response, model=error) if cls: diff --git a/packages/typespec-python/test/azure/generated/authentication-oauth2/authentication/oauth2/_utils/model_base.py b/packages/typespec-python/test/azure/generated/authentication-oauth2/authentication/oauth2/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/authentication-oauth2/authentication/oauth2/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/authentication-oauth2/authentication/oauth2/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/authentication-oauth2/authentication/oauth2/aio/_operations/_operations.py b/packages/typespec-python/test/azure/generated/authentication-oauth2/authentication/oauth2/aio/_operations/_operations.py index f5bd15d2660..27d6cc6dad0 100644 --- a/packages/typespec-python/test/azure/generated/authentication-oauth2/authentication/oauth2/aio/_operations/_operations.py +++ b/packages/typespec-python/test/azure/generated/authentication-oauth2/authentication/oauth2/aio/_operations/_operations.py @@ -121,7 +121,7 @@ async def invalid(self, **kwargs: Any) -> None: map_error(status_code=response.status_code, response=response, error_map=error_map) error = None if response.status_code == 403: - error = _failsafe_deserialize(_models.InvalidAuth, response) + error = _failsafe_deserialize(_models.InvalidAuth, response.json()) raise HttpResponseError(response=response, model=error) if cls: diff --git a/packages/typespec-python/test/azure/generated/authentication-oauth2/pyproject.toml b/packages/typespec-python/test/azure/generated/authentication-oauth2/pyproject.toml index 258f942068a..11869a90733 100644 --- a/packages/typespec-python/test/azure/generated/authentication-oauth2/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/authentication-oauth2/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Authentication Oauth2 Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "authentication", ] diff --git a/packages/typespec-python/test/azure/generated/authentication-union/authentication/union/_utils/model_base.py b/packages/typespec-python/test/azure/generated/authentication-union/authentication/union/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/authentication-union/authentication/union/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/authentication-union/authentication/union/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/authentication-union/pyproject.toml b/packages/typespec-python/test/azure/generated/authentication-union/pyproject.toml index 5c8de737f76..42535e68a68 100644 --- a/packages/typespec-python/test/azure/generated/authentication-union/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/authentication-union/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Authentication Union Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "authentication", ] diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-access/pyproject.toml b/packages/typespec-python/test/azure/generated/azure-client-generator-core-access/pyproject.toml index b0affd00ca9..88f83b43878 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-access/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-access/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Specs Azure Clientgenerator Core Access Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "specs", "specs.azure", "specs.azure.clientgenerator", diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-access/specs/azure/clientgenerator/core/access/_utils/model_base.py b/packages/typespec-python/test/azure/generated/azure-client-generator-core-access/specs/azure/clientgenerator/core/access/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-access/specs/azure/clientgenerator/core/access/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-access/specs/azure/clientgenerator/core/access/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-client-initialization/pyproject.toml b/packages/typespec-python/test/azure/generated/azure-client-generator-core-client-initialization/pyproject.toml index 756d5cc049e..c20c30ce81b 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-client-initialization/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-client-initialization/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Specs Azure Clientgenerator Core Clientinitialization Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "specs", "specs.azure", "specs.azure.clientgenerator", diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-client-initialization/specs/azure/clientgenerator/core/clientinitialization/_utils/model_base.py b/packages/typespec-python/test/azure/generated/azure-client-generator-core-client-initialization/specs/azure/clientgenerator/core/clientinitialization/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-client-initialization/specs/azure/clientgenerator/core/clientinitialization/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-client-initialization/specs/azure/clientgenerator/core/clientinitialization/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-client-location/pyproject.toml b/packages/typespec-python/test/azure/generated/azure-client-generator-core-client-location/pyproject.toml index b9a360d8439..a16fabf3c4e 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-client-location/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-client-location/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Specs Azure Clientgenerator Core Clientlocation Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "specs", "specs.azure", "specs.azure.clientgenerator", diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-client-location/specs/azure/clientgenerator/core/clientlocation/_utils/model_base.py b/packages/typespec-python/test/azure/generated/azure-client-generator-core-client-location/specs/azure/clientgenerator/core/clientlocation/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-client-location/specs/azure/clientgenerator/core/clientlocation/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-client-location/specs/azure/clientgenerator/core/clientlocation/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-deserialize-empty-string-as-null/pyproject.toml b/packages/typespec-python/test/azure/generated/azure-client-generator-core-deserialize-empty-string-as-null/pyproject.toml index 7fcf596e367..f61389f7beb 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-deserialize-empty-string-as-null/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-deserialize-empty-string-as-null/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Specs Azure Clientgenerator Core Emptystring Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "specs", "specs.azure", "specs.azure.clientgenerator", diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-deserialize-empty-string-as-null/specs/azure/clientgenerator/core/emptystring/_utils/model_base.py b/packages/typespec-python/test/azure/generated/azure-client-generator-core-deserialize-empty-string-as-null/specs/azure/clientgenerator/core/emptystring/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-deserialize-empty-string-as-null/specs/azure/clientgenerator/core/emptystring/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-deserialize-empty-string-as-null/specs/azure/clientgenerator/core/emptystring/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-flatten-property/pyproject.toml b/packages/typespec-python/test/azure/generated/azure-client-generator-core-flatten-property/pyproject.toml index 3e1d7e1ff6a..e2eedf1caa0 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-flatten-property/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-flatten-property/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Specs Azure Clientgenerator Core Flattenproperty Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "specs", "specs.azure", "specs.azure.clientgenerator", diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-flatten-property/specs/azure/clientgenerator/core/flattenproperty/_utils/model_base.py b/packages/typespec-python/test/azure/generated/azure-client-generator-core-flatten-property/specs/azure/clientgenerator/core/flattenproperty/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-flatten-property/specs/azure/clientgenerator/core/flattenproperty/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-flatten-property/specs/azure/clientgenerator/core/flattenproperty/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-override/pyproject.toml b/packages/typespec-python/test/azure/generated/azure-client-generator-core-override/pyproject.toml index 9cf6a6fba54..b96d77e34ec 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-override/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-override/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Specs Azure Clientgenerator Core Override Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "specs", "specs.azure", "specs.azure.clientgenerator", diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-override/specs/azure/clientgenerator/core/override/_utils/model_base.py b/packages/typespec-python/test/azure/generated/azure-client-generator-core-override/specs/azure/clientgenerator/core/override/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-override/specs/azure/clientgenerator/core/override/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-override/specs/azure/clientgenerator/core/override/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-usage/pyproject.toml b/packages/typespec-python/test/azure/generated/azure-client-generator-core-usage/pyproject.toml index 4fb3b637201..4deb28db031 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-usage/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-usage/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Specs Azure Clientgenerator Core Usage Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "specs", "specs.azure", "specs.azure.clientgenerator", diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-usage/specs/azure/clientgenerator/core/usage/_utils/model_base.py b/packages/typespec-python/test/azure/generated/azure-client-generator-core-usage/specs/azure/clientgenerator/core/usage/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-usage/specs/azure/clientgenerator/core/usage/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-usage/specs/azure/clientgenerator/core/usage/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/azure-core-basic/pyproject.toml b/packages/typespec-python/test/azure/generated/azure-core-basic/pyproject.toml index 030ec4ef6a7..531d7bc9362 100644 --- a/packages/typespec-python/test/azure/generated/azure-core-basic/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/azure-core-basic/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Specs Azure Core Basic Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "specs", "specs.azure", "specs.azure.core", diff --git a/packages/typespec-python/test/azure/generated/azure-core-basic/specs/azure/core/basic/_utils/model_base.py b/packages/typespec-python/test/azure/generated/azure-core-basic/specs/azure/core/basic/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/azure-core-basic/specs/azure/core/basic/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/azure-core-basic/specs/azure/core/basic/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/azure-core-lro-rpc/pyproject.toml b/packages/typespec-python/test/azure/generated/azure-core-lro-rpc/pyproject.toml index e6b9ab3291d..53e187141cb 100644 --- a/packages/typespec-python/test/azure/generated/azure-core-lro-rpc/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/azure-core-lro-rpc/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Specs Azure Core Lro Rpc Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "specs", "specs.azure", "specs.azure.core", diff --git a/packages/typespec-python/test/azure/generated/azure-core-lro-rpc/specs/azure/core/lro/rpc/_utils/model_base.py b/packages/typespec-python/test/azure/generated/azure-core-lro-rpc/specs/azure/core/lro/rpc/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/azure-core-lro-rpc/specs/azure/core/lro/rpc/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/azure-core-lro-rpc/specs/azure/core/lro/rpc/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/azure-core-lro-standard/pyproject.toml b/packages/typespec-python/test/azure/generated/azure-core-lro-standard/pyproject.toml index 40cd2dbae7e..4994a3fe57c 100644 --- a/packages/typespec-python/test/azure/generated/azure-core-lro-standard/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/azure-core-lro-standard/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Specs Azure Core Lro Standard Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "specs", "specs.azure", "specs.azure.core", diff --git a/packages/typespec-python/test/azure/generated/azure-core-lro-standard/specs/azure/core/lro/standard/_utils/model_base.py b/packages/typespec-python/test/azure/generated/azure-core-lro-standard/specs/azure/core/lro/standard/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/azure-core-lro-standard/specs/azure/core/lro/standard/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/azure-core-lro-standard/specs/azure/core/lro/standard/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/azure-core-model/pyproject.toml b/packages/typespec-python/test/azure/generated/azure-core-model/pyproject.toml index f944c6dd83d..9f8523e3f9b 100644 --- a/packages/typespec-python/test/azure/generated/azure-core-model/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/azure-core-model/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Specs Azure Core Model Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "specs", "specs.azure", "specs.azure.core", diff --git a/packages/typespec-python/test/azure/generated/azure-core-model/specs/azure/core/model/_utils/model_base.py b/packages/typespec-python/test/azure/generated/azure-core-model/specs/azure/core/model/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/azure-core-model/specs/azure/core/model/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/azure-core-model/specs/azure/core/model/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/azure-core-page/pyproject.toml b/packages/typespec-python/test/azure/generated/azure-core-page/pyproject.toml index 488f66fda8b..245952d3f5a 100644 --- a/packages/typespec-python/test/azure/generated/azure-core-page/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/azure-core-page/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Specs Azure Core Page Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "specs", "specs.azure", "specs.azure.core", diff --git a/packages/typespec-python/test/azure/generated/azure-core-page/specs/azure/core/page/_utils/model_base.py b/packages/typespec-python/test/azure/generated/azure-core-page/specs/azure/core/page/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/azure-core-page/specs/azure/core/page/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/azure-core-page/specs/azure/core/page/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/azure-core-scalar/pyproject.toml b/packages/typespec-python/test/azure/generated/azure-core-scalar/pyproject.toml index 5d49e3d85b2..5cd8bb8653c 100644 --- a/packages/typespec-python/test/azure/generated/azure-core-scalar/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/azure-core-scalar/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Specs Azure Core Scalar Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "specs", "specs.azure", "specs.azure.core", diff --git a/packages/typespec-python/test/azure/generated/azure-core-scalar/specs/azure/core/scalar/_utils/model_base.py b/packages/typespec-python/test/azure/generated/azure-core-scalar/specs/azure/core/scalar/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/azure-core-scalar/specs/azure/core/scalar/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/azure-core-scalar/specs/azure/core/scalar/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/azure-core-traits/pyproject.toml b/packages/typespec-python/test/azure/generated/azure-core-traits/pyproject.toml index 0103442bf9b..2f96a74844e 100644 --- a/packages/typespec-python/test/azure/generated/azure-core-traits/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/azure-core-traits/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Specs Azure Core Traits Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "specs", "specs.azure", "specs.azure.core", diff --git a/packages/typespec-python/test/azure/generated/azure-core-traits/specs/azure/core/traits/_utils/model_base.py b/packages/typespec-python/test/azure/generated/azure-core-traits/specs/azure/core/traits/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/azure-core-traits/specs/azure/core/traits/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/azure-core-traits/specs/azure/core/traits/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/azure-encode-duration/pyproject.toml b/packages/typespec-python/test/azure/generated/azure-encode-duration/pyproject.toml index 0bcc9ec131e..f917bb7d76a 100644 --- a/packages/typespec-python/test/azure/generated/azure-encode-duration/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/azure-encode-duration/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Specs Azure Encode Duration Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "specs", "specs.azure", "specs.azure.encode", diff --git a/packages/typespec-python/test/azure/generated/azure-encode-duration/specs/azure/encode/duration/_utils/model_base.py b/packages/typespec-python/test/azure/generated/azure-encode-duration/specs/azure/encode/duration/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/azure-encode-duration/specs/azure/encode/duration/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/azure-encode-duration/specs/azure/encode/duration/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/azure-example-basic/pyproject.toml b/packages/typespec-python/test/azure/generated/azure-example-basic/pyproject.toml index b46a2d01643..fc5953b4459 100644 --- a/packages/typespec-python/test/azure/generated/azure-example-basic/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/azure-example-basic/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Specs Azure Example Basic Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "specs", "specs.azure", "specs.azure.example", diff --git a/packages/typespec-python/test/azure/generated/azure-example-basic/specs/azure/example/basic/_utils/model_base.py b/packages/typespec-python/test/azure/generated/azure-example-basic/specs/azure/example/basic/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/azure-example-basic/specs/azure/example/basic/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/azure-example-basic/specs/azure/example/basic/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/azure-payload-pageable/pyproject.toml b/packages/typespec-python/test/azure/generated/azure-payload-pageable/pyproject.toml index 971d104fa10..67347bd823d 100644 --- a/packages/typespec-python/test/azure/generated/azure-payload-pageable/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/azure-payload-pageable/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Specs Azure Payload Pageable Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "specs", "specs.azure", "specs.azure.payload", diff --git a/packages/typespec-python/test/azure/generated/azure-payload-pageable/specs/azure/payload/pageable/_utils/model_base.py b/packages/typespec-python/test/azure/generated/azure-payload-pageable/specs/azure/payload/pageable/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/azure-payload-pageable/specs/azure/payload/pageable/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/azure-payload-pageable/specs/azure/payload/pageable/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/azure-resource-manager-common-properties/azure/resourcemanager/commonproperties/_utils/model_base.py b/packages/typespec-python/test/azure/generated/azure-resource-manager-common-properties/azure/resourcemanager/commonproperties/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/azure-resource-manager-common-properties/azure/resourcemanager/commonproperties/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/azure-resource-manager-common-properties/azure/resourcemanager/commonproperties/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/azure-resource-manager-common-properties/azure/resourcemanager/commonproperties/aio/operations/_operations.py b/packages/typespec-python/test/azure/generated/azure-resource-manager-common-properties/azure/resourcemanager/commonproperties/aio/operations/_operations.py index cd6e45e136f..d000ea9b14f 100644 --- a/packages/typespec-python/test/azure/generated/azure-resource-manager-common-properties/azure/resourcemanager/commonproperties/aio/operations/_operations.py +++ b/packages/typespec-python/test/azure/generated/azure-resource-manager-common-properties/azure/resourcemanager/commonproperties/aio/operations/_operations.py @@ -117,7 +117,7 @@ async def get( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if _stream: @@ -288,7 +288,7 @@ async def create_with_system_assigned( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if _stream: @@ -459,7 +459,7 @@ async def update_with_user_assigned_and_system_assigned( # pylint: disable=name except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if _stream: @@ -545,7 +545,7 @@ async def get_for_predefined_error( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if _stream: @@ -712,7 +712,7 @@ async def create_for_user_defined_error( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.CloudError, response) + error = _failsafe_deserialize(_models.CloudError, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if _stream: diff --git a/packages/typespec-python/test/azure/generated/azure-resource-manager-common-properties/azure/resourcemanager/commonproperties/operations/_operations.py b/packages/typespec-python/test/azure/generated/azure-resource-manager-common-properties/azure/resourcemanager/commonproperties/operations/_operations.py index b69f55badce..fb44c92c7e3 100644 --- a/packages/typespec-python/test/azure/generated/azure-resource-manager-common-properties/azure/resourcemanager/commonproperties/operations/_operations.py +++ b/packages/typespec-python/test/azure/generated/azure-resource-manager-common-properties/azure/resourcemanager/commonproperties/operations/_operations.py @@ -269,7 +269,7 @@ def get( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if _stream: @@ -440,7 +440,7 @@ def create_with_system_assigned( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if _stream: @@ -611,7 +611,7 @@ def update_with_user_assigned_and_system_assigned( # pylint: disable=name-too-l except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if _stream: @@ -697,7 +697,7 @@ def get_for_predefined_error( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if _stream: @@ -864,7 +864,7 @@ def create_for_user_defined_error( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.CloudError, response) + error = _failsafe_deserialize(_models.CloudError, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if _stream: diff --git a/packages/typespec-python/test/azure/generated/azure-resource-manager-common-properties/pyproject.toml b/packages/typespec-python/test/azure/generated/azure-resource-manager-common-properties/pyproject.toml index e8efb311339..11a19123f33 100644 --- a/packages/typespec-python/test/azure/generated/azure-resource-manager-common-properties/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/azure-resource-manager-common-properties/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Resourcemanager Commonproperties Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "azure", "azure.resourcemanager", ] diff --git a/packages/typespec-python/test/azure/generated/azure-resource-manager-large-header/azure/resourcemanager/largeheader/_utils/model_base.py b/packages/typespec-python/test/azure/generated/azure-resource-manager-large-header/azure/resourcemanager/largeheader/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/azure-resource-manager-large-header/azure/resourcemanager/largeheader/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/azure-resource-manager-large-header/azure/resourcemanager/largeheader/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/azure-resource-manager-large-header/azure/resourcemanager/largeheader/aio/operations/_operations.py b/packages/typespec-python/test/azure/generated/azure-resource-manager-large-header/azure/resourcemanager/largeheader/aio/operations/_operations.py index 87590419a24..ef8547a1209 100644 --- a/packages/typespec-python/test/azure/generated/azure-resource-manager-large-header/azure/resourcemanager/largeheader/aio/operations/_operations.py +++ b/packages/typespec-python/test/azure/generated/azure-resource-manager-large-header/azure/resourcemanager/largeheader/aio/operations/_operations.py @@ -95,7 +95,7 @@ async def _two6_k_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} diff --git a/packages/typespec-python/test/azure/generated/azure-resource-manager-large-header/azure/resourcemanager/largeheader/operations/_operations.py b/packages/typespec-python/test/azure/generated/azure-resource-manager-large-header/azure/resourcemanager/largeheader/operations/_operations.py index 0805827a1a2..2f096189ab7 100644 --- a/packages/typespec-python/test/azure/generated/azure-resource-manager-large-header/azure/resourcemanager/largeheader/operations/_operations.py +++ b/packages/typespec-python/test/azure/generated/azure-resource-manager-large-header/azure/resourcemanager/largeheader/operations/_operations.py @@ -125,7 +125,7 @@ def _two6_k_initial(self, resource_group_name: str, large_header_name: str, **kw except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} diff --git a/packages/typespec-python/test/azure/generated/azure-resource-manager-large-header/pyproject.toml b/packages/typespec-python/test/azure/generated/azure-resource-manager-large-header/pyproject.toml index a2654eaa2e2..6999e5fdefa 100644 --- a/packages/typespec-python/test/azure/generated/azure-resource-manager-large-header/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/azure-resource-manager-large-header/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Resourcemanager Largeheader Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "azure", "azure.resourcemanager", ] diff --git a/packages/typespec-python/test/azure/generated/azure-resource-manager-non-resource/azure/resourcemanager/nonresource/_utils/model_base.py b/packages/typespec-python/test/azure/generated/azure-resource-manager-non-resource/azure/resourcemanager/nonresource/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/azure-resource-manager-non-resource/azure/resourcemanager/nonresource/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/azure-resource-manager-non-resource/azure/resourcemanager/nonresource/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/azure-resource-manager-non-resource/azure/resourcemanager/nonresource/aio/operations/_operations.py b/packages/typespec-python/test/azure/generated/azure-resource-manager-non-resource/azure/resourcemanager/nonresource/aio/operations/_operations.py index ad85ce40dcc..214957d166d 100644 --- a/packages/typespec-python/test/azure/generated/azure-resource-manager-non-resource/azure/resourcemanager/nonresource/aio/operations/_operations.py +++ b/packages/typespec-python/test/azure/generated/azure-resource-manager-non-resource/azure/resourcemanager/nonresource/aio/operations/_operations.py @@ -110,7 +110,7 @@ async def get(self, location: str, parameter: str, **kwargs: Any) -> _models.Non except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if _stream: @@ -256,7 +256,7 @@ async def create( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if _stream: diff --git a/packages/typespec-python/test/azure/generated/azure-resource-manager-non-resource/azure/resourcemanager/nonresource/operations/_operations.py b/packages/typespec-python/test/azure/generated/azure-resource-manager-non-resource/azure/resourcemanager/nonresource/operations/_operations.py index 36ed29eee3c..34d992a8a1b 100644 --- a/packages/typespec-python/test/azure/generated/azure-resource-manager-non-resource/azure/resourcemanager/nonresource/operations/_operations.py +++ b/packages/typespec-python/test/azure/generated/azure-resource-manager-non-resource/azure/resourcemanager/nonresource/operations/_operations.py @@ -169,7 +169,7 @@ def get(self, location: str, parameter: str, **kwargs: Any) -> _models.NonResour except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if _stream: @@ -315,7 +315,7 @@ def create( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if _stream: diff --git a/packages/typespec-python/test/azure/generated/azure-resource-manager-non-resource/pyproject.toml b/packages/typespec-python/test/azure/generated/azure-resource-manager-non-resource/pyproject.toml index 4c333e1a18a..2ad8034a1d6 100644 --- a/packages/typespec-python/test/azure/generated/azure-resource-manager-non-resource/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/azure-resource-manager-non-resource/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Resourcemanager Nonresource Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "azure", "azure.resourcemanager", ] diff --git a/packages/typespec-python/test/azure/generated/azure-resource-manager-operation-templates/azure/resourcemanager/operationtemplates/_utils/model_base.py b/packages/typespec-python/test/azure/generated/azure-resource-manager-operation-templates/azure/resourcemanager/operationtemplates/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/azure-resource-manager-operation-templates/azure/resourcemanager/operationtemplates/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/azure-resource-manager-operation-templates/azure/resourcemanager/operationtemplates/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/azure-resource-manager-operation-templates/azure/resourcemanager/operationtemplates/aio/operations/_operations.py b/packages/typespec-python/test/azure/generated/azure-resource-manager-operation-templates/azure/resourcemanager/operationtemplates/aio/operations/_operations.py index f26a8b4925f..23b30584609 100644 --- a/packages/typespec-python/test/azure/generated/azure-resource-manager-operation-templates/azure/resourcemanager/operationtemplates/aio/operations/_operations.py +++ b/packages/typespec-python/test/azure/generated/azure-resource-manager-operation-templates/azure/resourcemanager/operationtemplates/aio/operations/_operations.py @@ -149,7 +149,7 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -288,7 +288,7 @@ async def check_global( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if _stream: @@ -429,7 +429,7 @@ async def check_local( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if _stream: @@ -512,7 +512,7 @@ async def _create_or_replace_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -744,7 +744,7 @@ async def _export_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -972,7 +972,7 @@ async def _delete_initial(self, resource_group_name: str, order_name: str, **kwa except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -1115,7 +1115,7 @@ async def get(self, resource_group_name: str, widget_name: str, **kwargs: Any) - except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if _stream: @@ -1284,7 +1284,7 @@ async def patch( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if _stream: @@ -1453,7 +1453,7 @@ async def post( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if _stream: @@ -1583,7 +1583,7 @@ async def provider_post( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if _stream: diff --git a/packages/typespec-python/test/azure/generated/azure-resource-manager-operation-templates/azure/resourcemanager/operationtemplates/operations/_operations.py b/packages/typespec-python/test/azure/generated/azure-resource-manager-operation-templates/azure/resourcemanager/operationtemplates/operations/_operations.py index 910de03e7b3..385a7ea8502 100644 --- a/packages/typespec-python/test/azure/generated/azure-resource-manager-operation-templates/azure/resourcemanager/operationtemplates/operations/_operations.py +++ b/packages/typespec-python/test/azure/generated/azure-resource-manager-operation-templates/azure/resourcemanager/operationtemplates/operations/_operations.py @@ -426,7 +426,7 @@ def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -565,7 +565,7 @@ def check_global( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if _stream: @@ -706,7 +706,7 @@ def check_local( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if _stream: @@ -789,7 +789,7 @@ def _create_or_replace_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -1017,7 +1017,7 @@ def _export_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -1245,7 +1245,7 @@ def _delete_initial(self, resource_group_name: str, order_name: str, **kwargs: A except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -1388,7 +1388,7 @@ def get(self, resource_group_name: str, widget_name: str, **kwargs: Any) -> _mod except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if _stream: @@ -1557,7 +1557,7 @@ def patch( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if _stream: @@ -1726,7 +1726,7 @@ def post( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if _stream: @@ -1856,7 +1856,7 @@ def provider_post( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if _stream: diff --git a/packages/typespec-python/test/azure/generated/azure-resource-manager-operation-templates/pyproject.toml b/packages/typespec-python/test/azure/generated/azure-resource-manager-operation-templates/pyproject.toml index fe86db5a6ec..14a309d3210 100644 --- a/packages/typespec-python/test/azure/generated/azure-resource-manager-operation-templates/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/azure-resource-manager-operation-templates/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Resourcemanager Operationtemplates Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "azure", "azure.resourcemanager", ] diff --git a/packages/typespec-python/test/azure/generated/azure-resource-manager-resources/azure/resourcemanager/resources/_utils/model_base.py b/packages/typespec-python/test/azure/generated/azure-resource-manager-resources/azure/resourcemanager/resources/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/azure-resource-manager-resources/azure/resourcemanager/resources/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/azure-resource-manager-resources/azure/resourcemanager/resources/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/azure-resource-manager-resources/azure/resourcemanager/resources/aio/operations/_operations.py b/packages/typespec-python/test/azure/generated/azure-resource-manager-resources/azure/resourcemanager/resources/aio/operations/_operations.py index 0bc8751d03e..db3f9165a93 100644 --- a/packages/typespec-python/test/azure/generated/azure-resource-manager-resources/azure/resourcemanager/resources/aio/operations/_operations.py +++ b/packages/typespec-python/test/azure/generated/azure-resource-manager-resources/azure/resourcemanager/resources/aio/operations/_operations.py @@ -143,7 +143,7 @@ async def get( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if _stream: @@ -212,7 +212,7 @@ async def _create_or_replace_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -449,7 +449,7 @@ async def _update_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -670,7 +670,7 @@ async def _delete_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -828,7 +828,7 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -913,7 +913,7 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -1068,7 +1068,7 @@ async def action_sync( if response.status_code not in [204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -1154,7 +1154,7 @@ async def get( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if _stream: @@ -1225,7 +1225,7 @@ async def _create_or_replace_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -1477,7 +1477,7 @@ async def _update_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -1716,7 +1716,7 @@ async def _delete_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -1884,7 +1884,7 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -1960,7 +1960,7 @@ async def get_by_resource_group(self, resource_group_name: str, **kwargs: Any) - except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if _stream: @@ -2027,7 +2027,7 @@ async def _create_or_update_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -2320,7 +2320,7 @@ async def update( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if _stream: @@ -2417,7 +2417,7 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -2494,7 +2494,7 @@ async def get(self, resource_uri: str, extensions_resource_name: str, **kwargs: except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if _stream: @@ -2562,7 +2562,7 @@ async def _create_or_update_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -2895,7 +2895,7 @@ async def update( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if _stream: @@ -2955,7 +2955,7 @@ async def delete(self, resource_uri: str, extensions_resource_name: str, **kwarg if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -3042,7 +3042,7 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -3119,7 +3119,7 @@ async def get(self, location: str, location_resource_name: str, **kwargs: Any) - except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if _stream: @@ -3281,7 +3281,7 @@ async def create_or_update( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if _stream: @@ -3443,7 +3443,7 @@ async def update( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if _stream: @@ -3503,7 +3503,7 @@ async def delete(self, location: str, location_resource_name: str, **kwargs: Any if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -3590,7 +3590,7 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response diff --git a/packages/typespec-python/test/azure/generated/azure-resource-manager-resources/azure/resourcemanager/resources/operations/_operations.py b/packages/typespec-python/test/azure/generated/azure-resource-manager-resources/azure/resourcemanager/resources/operations/_operations.py index aa4b91a9f8e..869561404aa 100644 --- a/packages/typespec-python/test/azure/generated/azure-resource-manager-resources/azure/resourcemanager/resources/operations/_operations.py +++ b/packages/typespec-python/test/azure/generated/azure-resource-manager-resources/azure/resourcemanager/resources/operations/_operations.py @@ -902,7 +902,7 @@ def get( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if _stream: @@ -971,7 +971,7 @@ def _create_or_replace_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -1208,7 +1208,7 @@ def _update_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -1429,7 +1429,7 @@ def _delete_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -1587,7 +1587,7 @@ def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -1672,7 +1672,7 @@ def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -1827,7 +1827,7 @@ def action_sync( # pylint: disable=inconsistent-return-statements if response.status_code not in [204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -1913,7 +1913,7 @@ def get( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if _stream: @@ -1984,7 +1984,7 @@ def _create_or_replace_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -2236,7 +2236,7 @@ def _update_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -2475,7 +2475,7 @@ def _delete_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -2643,7 +2643,7 @@ def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -2719,7 +2719,7 @@ def get_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> _mod except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if _stream: @@ -2786,7 +2786,7 @@ def _create_or_update_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -3079,7 +3079,7 @@ def update( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if _stream: @@ -3176,7 +3176,7 @@ def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -3253,7 +3253,7 @@ def get(self, resource_uri: str, extensions_resource_name: str, **kwargs: Any) - except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if _stream: @@ -3321,7 +3321,7 @@ def _create_or_update_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -3654,7 +3654,7 @@ def update( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if _stream: @@ -3716,7 +3716,7 @@ def delete( # pylint: disable=inconsistent-return-statements if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -3803,7 +3803,7 @@ def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -3880,7 +3880,7 @@ def get(self, location: str, location_resource_name: str, **kwargs: Any) -> _mod except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if _stream: @@ -4042,7 +4042,7 @@ def create_or_update( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if _stream: @@ -4204,7 +4204,7 @@ def update( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if _stream: @@ -4266,7 +4266,7 @@ def delete( # pylint: disable=inconsistent-return-statements if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -4352,7 +4352,7 @@ def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize(_models.ErrorResponse, response) + error = _failsafe_deserialize(_models.ErrorResponse, response.json()) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response diff --git a/packages/typespec-python/test/azure/generated/azure-resource-manager-resources/pyproject.toml b/packages/typespec-python/test/azure/generated/azure-resource-manager-resources/pyproject.toml index 20ffb554b92..df422150f24 100644 --- a/packages/typespec-python/test/azure/generated/azure-resource-manager-resources/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/azure-resource-manager-resources/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Resourcemanager Resources Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "azure", "azure.resourcemanager", ] diff --git a/packages/typespec-python/test/azure/generated/azure-special-headers-client-request-id/azure/specialheaders/xmsclientrequestid/_utils/model_base.py b/packages/typespec-python/test/azure/generated/azure-special-headers-client-request-id/azure/specialheaders/xmsclientrequestid/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/azure-special-headers-client-request-id/azure/specialheaders/xmsclientrequestid/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/azure-special-headers-client-request-id/azure/specialheaders/xmsclientrequestid/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/azure-special-headers-client-request-id/pyproject.toml b/packages/typespec-python/test/azure/generated/azure-special-headers-client-request-id/pyproject.toml index cce1989ebc0..450dd544cb3 100644 --- a/packages/typespec-python/test/azure/generated/azure-special-headers-client-request-id/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/azure-special-headers-client-request-id/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Specialheaders Xmsclientrequestid Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "azure", "azure.specialheaders", ] diff --git a/packages/typespec-python/test/azure/generated/client-namespace/client/clientnamespace/_utils/model_base.py b/packages/typespec-python/test/azure/generated/client-namespace/client/clientnamespace/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/client-namespace/client/clientnamespace/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/client-namespace/client/clientnamespace/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/client-namespace/client/clientnamespace/second/_utils/model_base.py b/packages/typespec-python/test/azure/generated/client-namespace/client/clientnamespace/second/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/client-namespace/client/clientnamespace/second/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/client-namespace/client/clientnamespace/second/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/client-namespace/pyproject.toml b/packages/typespec-python/test/azure/generated/client-namespace/pyproject.toml index 5a2e1ef6ee1..eaab29f79c8 100644 --- a/packages/typespec-python/test/azure/generated/client-namespace/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/client-namespace/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Client Clientnamespace Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "client", ] diff --git a/packages/typespec-python/test/azure/generated/client-naming/client/naming/_utils/model_base.py b/packages/typespec-python/test/azure/generated/client-naming/client/naming/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/client-naming/client/naming/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/client-naming/client/naming/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/client-naming/pyproject.toml b/packages/typespec-python/test/azure/generated/client-naming/pyproject.toml index 0082571e108..b26f8a88e1f 100644 --- a/packages/typespec-python/test/azure/generated/client-naming/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/client-naming/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Client Naming Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "client", ] diff --git a/packages/typespec-python/test/azure/generated/client-structure-default/client/structure/service/_utils/model_base.py b/packages/typespec-python/test/azure/generated/client-structure-default/client/structure/service/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/client-structure-default/client/structure/service/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/client-structure-default/client/structure/service/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/client-structure-default/pyproject.toml b/packages/typespec-python/test/azure/generated/client-structure-default/pyproject.toml index 4fcc2de895a..c1bb457fb11 100644 --- a/packages/typespec-python/test/azure/generated/client-structure-default/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/client-structure-default/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Client Structure Service Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "client", "client.structure", ] diff --git a/packages/typespec-python/test/azure/generated/client-structure-multiclient/client/structure/multiclient/_utils/model_base.py b/packages/typespec-python/test/azure/generated/client-structure-multiclient/client/structure/multiclient/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/client-structure-multiclient/client/structure/multiclient/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/client-structure-multiclient/client/structure/multiclient/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/client-structure-multiclient/pyproject.toml b/packages/typespec-python/test/azure/generated/client-structure-multiclient/pyproject.toml index 56d6616c068..65e6002fed7 100644 --- a/packages/typespec-python/test/azure/generated/client-structure-multiclient/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/client-structure-multiclient/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Client Structure Multiclient Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "client", "client.structure", ] diff --git a/packages/typespec-python/test/azure/generated/client-structure-renamedoperation/client/structure/renamedoperation/_utils/model_base.py b/packages/typespec-python/test/azure/generated/client-structure-renamedoperation/client/structure/renamedoperation/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/client-structure-renamedoperation/client/structure/renamedoperation/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/client-structure-renamedoperation/client/structure/renamedoperation/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/client-structure-renamedoperation/pyproject.toml b/packages/typespec-python/test/azure/generated/client-structure-renamedoperation/pyproject.toml index 2469c45459c..618a7cba4be 100644 --- a/packages/typespec-python/test/azure/generated/client-structure-renamedoperation/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/client-structure-renamedoperation/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Client Structure Renamedoperation Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "client", "client.structure", ] diff --git a/packages/typespec-python/test/azure/generated/client-structure-twooperationgroup/client/structure/twooperationgroup/_utils/model_base.py b/packages/typespec-python/test/azure/generated/client-structure-twooperationgroup/client/structure/twooperationgroup/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/client-structure-twooperationgroup/client/structure/twooperationgroup/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/client-structure-twooperationgroup/client/structure/twooperationgroup/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/client-structure-twooperationgroup/pyproject.toml b/packages/typespec-python/test/azure/generated/client-structure-twooperationgroup/pyproject.toml index e8e3963f505..aefeac58e69 100644 --- a/packages/typespec-python/test/azure/generated/client-structure-twooperationgroup/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/client-structure-twooperationgroup/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Client Structure Twooperationgroup Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "client", "client.structure", ] diff --git a/packages/typespec-python/test/azure/generated/encode-bytes/encode/bytes/_utils/model_base.py b/packages/typespec-python/test/azure/generated/encode-bytes/encode/bytes/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/encode-bytes/encode/bytes/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/encode-bytes/encode/bytes/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/encode-bytes/pyproject.toml b/packages/typespec-python/test/azure/generated/encode-bytes/pyproject.toml index c7fa74cce92..0a19c7f50b5 100644 --- a/packages/typespec-python/test/azure/generated/encode-bytes/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/encode-bytes/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Encode Bytes Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "encode", ] diff --git a/packages/typespec-python/test/azure/generated/encode-datetime/encode/datetime/_utils/model_base.py b/packages/typespec-python/test/azure/generated/encode-datetime/encode/datetime/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/encode-datetime/encode/datetime/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/encode-datetime/encode/datetime/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/encode-datetime/pyproject.toml b/packages/typespec-python/test/azure/generated/encode-datetime/pyproject.toml index 73ce782558f..48badb503b9 100644 --- a/packages/typespec-python/test/azure/generated/encode-datetime/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/encode-datetime/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Encode Datetime Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "encode", ] diff --git a/packages/typespec-python/test/azure/generated/encode-duration/encode/duration/_utils/model_base.py b/packages/typespec-python/test/azure/generated/encode-duration/encode/duration/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/encode-duration/encode/duration/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/encode-duration/encode/duration/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/encode-duration/pyproject.toml b/packages/typespec-python/test/azure/generated/encode-duration/pyproject.toml index 6b2a46023c1..b4a6e299a81 100644 --- a/packages/typespec-python/test/azure/generated/encode-duration/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/encode-duration/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Encode Duration Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "encode", ] diff --git a/packages/typespec-python/test/azure/generated/encode-numeric/encode/numeric/_utils/model_base.py b/packages/typespec-python/test/azure/generated/encode-numeric/encode/numeric/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/encode-numeric/encode/numeric/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/encode-numeric/encode/numeric/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/encode-numeric/pyproject.toml b/packages/typespec-python/test/azure/generated/encode-numeric/pyproject.toml index fc5c8b1e08c..d243a979b22 100644 --- a/packages/typespec-python/test/azure/generated/encode-numeric/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/encode-numeric/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Encode Numeric Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "encode", ] diff --git a/packages/typespec-python/test/azure/generated/headasbooleanfalse/headasbooleanfalse/_utils/model_base.py b/packages/typespec-python/test/azure/generated/headasbooleanfalse/headasbooleanfalse/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/headasbooleanfalse/headasbooleanfalse/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/headasbooleanfalse/headasbooleanfalse/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/headasbooleanfalse/pyproject.toml b/packages/typespec-python/test/azure/generated/headasbooleanfalse/pyproject.toml index 2e42cb2480a..aa1816191d0 100644 --- a/packages/typespec-python/test/azure/generated/headasbooleanfalse/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/headasbooleanfalse/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Headasbooleanfalse Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", ] [tool.setuptools.package-data] diff --git a/packages/typespec-python/test/azure/generated/headasbooleantrue/headasbooleantrue/_utils/model_base.py b/packages/typespec-python/test/azure/generated/headasbooleantrue/headasbooleantrue/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/headasbooleantrue/headasbooleantrue/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/headasbooleantrue/headasbooleantrue/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/headasbooleantrue/pyproject.toml b/packages/typespec-python/test/azure/generated/headasbooleantrue/pyproject.toml index 9710e0e4a98..50200a7f116 100644 --- a/packages/typespec-python/test/azure/generated/headasbooleantrue/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/headasbooleantrue/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Headasbooleantrue Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", ] [tool.setuptools.package-data] diff --git a/packages/typespec-python/test/azure/generated/parameters-basic/parameters/basic/_utils/model_base.py b/packages/typespec-python/test/azure/generated/parameters-basic/parameters/basic/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/parameters-basic/parameters/basic/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/parameters-basic/parameters/basic/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/parameters-basic/pyproject.toml b/packages/typespec-python/test/azure/generated/parameters-basic/pyproject.toml index e5398071929..93a27814475 100644 --- a/packages/typespec-python/test/azure/generated/parameters-basic/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/parameters-basic/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Parameters Basic Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "parameters", ] diff --git a/packages/typespec-python/test/azure/generated/parameters-body-optionality/parameters/bodyoptionality/_utils/model_base.py b/packages/typespec-python/test/azure/generated/parameters-body-optionality/parameters/bodyoptionality/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/parameters-body-optionality/parameters/bodyoptionality/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/parameters-body-optionality/parameters/bodyoptionality/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/parameters-body-optionality/pyproject.toml b/packages/typespec-python/test/azure/generated/parameters-body-optionality/pyproject.toml index 8f534019e96..07309fb35cd 100644 --- a/packages/typespec-python/test/azure/generated/parameters-body-optionality/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/parameters-body-optionality/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Parameters Bodyoptionality Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "parameters", ] diff --git a/packages/typespec-python/test/azure/generated/parameters-collection-format/parameters/collectionformat/_utils/model_base.py b/packages/typespec-python/test/azure/generated/parameters-collection-format/parameters/collectionformat/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/parameters-collection-format/parameters/collectionformat/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/parameters-collection-format/parameters/collectionformat/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/parameters-collection-format/pyproject.toml b/packages/typespec-python/test/azure/generated/parameters-collection-format/pyproject.toml index a749707b4d9..e6be5dc8192 100644 --- a/packages/typespec-python/test/azure/generated/parameters-collection-format/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/parameters-collection-format/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Parameters Collectionformat Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "parameters", ] diff --git a/packages/typespec-python/test/azure/generated/parameters-path/parameters/path/_utils/model_base.py b/packages/typespec-python/test/azure/generated/parameters-path/parameters/path/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/parameters-path/parameters/path/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/parameters-path/parameters/path/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/parameters-path/pyproject.toml b/packages/typespec-python/test/azure/generated/parameters-path/pyproject.toml index 853a2bc868d..df20e61e6cb 100644 --- a/packages/typespec-python/test/azure/generated/parameters-path/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/parameters-path/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Parameters Path Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "parameters", ] diff --git a/packages/typespec-python/test/azure/generated/parameters-spread/parameters/spread/_utils/model_base.py b/packages/typespec-python/test/azure/generated/parameters-spread/parameters/spread/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/parameters-spread/parameters/spread/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/parameters-spread/parameters/spread/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/parameters-spread/pyproject.toml b/packages/typespec-python/test/azure/generated/parameters-spread/pyproject.toml index 66674338ccc..f03a137b831 100644 --- a/packages/typespec-python/test/azure/generated/parameters-spread/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/parameters-spread/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Parameters Spread Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "parameters", ] diff --git a/packages/typespec-python/test/azure/generated/payload-content-negotiation/payload/contentnegotiation/_utils/model_base.py b/packages/typespec-python/test/azure/generated/payload-content-negotiation/payload/contentnegotiation/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/payload-content-negotiation/payload/contentnegotiation/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/payload-content-negotiation/payload/contentnegotiation/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/payload-content-negotiation/pyproject.toml b/packages/typespec-python/test/azure/generated/payload-content-negotiation/pyproject.toml index 06e7a72d2f9..2479685a397 100644 --- a/packages/typespec-python/test/azure/generated/payload-content-negotiation/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/payload-content-negotiation/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Payload Contentnegotiation Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "payload", ] diff --git a/packages/typespec-python/test/azure/generated/payload-json-merge-patch/payload/jsonmergepatch/_utils/model_base.py b/packages/typespec-python/test/azure/generated/payload-json-merge-patch/payload/jsonmergepatch/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/payload-json-merge-patch/payload/jsonmergepatch/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/payload-json-merge-patch/payload/jsonmergepatch/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/payload-json-merge-patch/pyproject.toml b/packages/typespec-python/test/azure/generated/payload-json-merge-patch/pyproject.toml index ec820604507..016c7e3735a 100644 --- a/packages/typespec-python/test/azure/generated/payload-json-merge-patch/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/payload-json-merge-patch/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Payload Jsonmergepatch Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "payload", ] diff --git a/packages/typespec-python/test/azure/generated/payload-media-type/payload/mediatype/_utils/model_base.py b/packages/typespec-python/test/azure/generated/payload-media-type/payload/mediatype/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/payload-media-type/payload/mediatype/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/payload-media-type/payload/mediatype/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/payload-media-type/pyproject.toml b/packages/typespec-python/test/azure/generated/payload-media-type/pyproject.toml index be7d63ac6d5..8c7043e2199 100644 --- a/packages/typespec-python/test/azure/generated/payload-media-type/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/payload-media-type/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Payload Mediatype Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "payload", ] diff --git a/packages/typespec-python/test/azure/generated/payload-multipart/payload/multipart/_utils/model_base.py b/packages/typespec-python/test/azure/generated/payload-multipart/payload/multipart/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/payload-multipart/payload/multipart/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/payload-multipart/payload/multipart/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/payload-multipart/pyproject.toml b/packages/typespec-python/test/azure/generated/payload-multipart/pyproject.toml index 516f7b559bc..484d6edbd00 100644 --- a/packages/typespec-python/test/azure/generated/payload-multipart/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/payload-multipart/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Payload Multipart Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "payload", ] diff --git a/packages/typespec-python/test/azure/generated/payload-pageable/payload/pageable/_utils/model_base.py b/packages/typespec-python/test/azure/generated/payload-pageable/payload/pageable/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/payload-pageable/payload/pageable/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/payload-pageable/payload/pageable/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/payload-pageable/pyproject.toml b/packages/typespec-python/test/azure/generated/payload-pageable/pyproject.toml index f40dc75155f..f83446daea4 100644 --- a/packages/typespec-python/test/azure/generated/payload-pageable/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/payload-pageable/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Payload Pageable Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "payload", ] diff --git a/packages/typespec-python/test/azure/generated/payload-xml/payload/xml/_utils/model_base.py b/packages/typespec-python/test/azure/generated/payload-xml/payload/xml/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/payload-xml/payload/xml/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/payload-xml/payload/xml/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/payload-xml/pyproject.toml b/packages/typespec-python/test/azure/generated/payload-xml/pyproject.toml index 48b2b148c64..64c23808b16 100644 --- a/packages/typespec-python/test/azure/generated/payload-xml/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/payload-xml/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Payload Xml Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "payload", ] diff --git a/packages/typespec-python/test/azure/generated/resiliency-srv-driven1/pyproject.toml b/packages/typespec-python/test/azure/generated/resiliency-srv-driven1/pyproject.toml index 7b86ca7c3b2..201d1f2cc90 100644 --- a/packages/typespec-python/test/azure/generated/resiliency-srv-driven1/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/resiliency-srv-driven1/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure ResiliencySrvDriven1 Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "resiliency", "resiliency.srv", ] diff --git a/packages/typespec-python/test/azure/generated/resiliency-srv-driven1/resiliency/srv/driven1/_utils/model_base.py b/packages/typespec-python/test/azure/generated/resiliency-srv-driven1/resiliency/srv/driven1/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/resiliency-srv-driven1/resiliency/srv/driven1/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/resiliency-srv-driven1/resiliency/srv/driven1/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/resiliency-srv-driven2/pyproject.toml b/packages/typespec-python/test/azure/generated/resiliency-srv-driven2/pyproject.toml index 070b2bf7d01..908a4d9716d 100644 --- a/packages/typespec-python/test/azure/generated/resiliency-srv-driven2/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/resiliency-srv-driven2/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure ResiliencySrvDriven2 Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "resiliency", "resiliency.srv", ] diff --git a/packages/typespec-python/test/azure/generated/resiliency-srv-driven2/resiliency/srv/driven2/_utils/model_base.py b/packages/typespec-python/test/azure/generated/resiliency-srv-driven2/resiliency/srv/driven2/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/resiliency-srv-driven2/resiliency/srv/driven2/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/resiliency-srv-driven2/resiliency/srv/driven2/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/response-status-code-range/pyproject.toml b/packages/typespec-python/test/azure/generated/response-status-code-range/pyproject.toml index 2183f5659bf..782db3c6228 100644 --- a/packages/typespec-python/test/azure/generated/response-status-code-range/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/response-status-code-range/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Response Statuscoderange Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "response", ] diff --git a/packages/typespec-python/test/azure/generated/response-status-code-range/response/statuscoderange/_operations/_operations.py b/packages/typespec-python/test/azure/generated/response-status-code-range/response/statuscoderange/_operations/_operations.py index 90f305c0b87..17791e05ef4 100644 --- a/packages/typespec-python/test/azure/generated/response-status-code-range/response/statuscoderange/_operations/_operations.py +++ b/packages/typespec-python/test/azure/generated/response-status-code-range/response/statuscoderange/_operations/_operations.py @@ -114,9 +114,9 @@ def error_response_status_code_in_range( # pylint: disable=inconsistent-return- map_error(status_code=response.status_code, response=response, error_map=error_map) error = None if 494 <= response.status_code <= 499: - error = _failsafe_deserialize(_models.ErrorInRange, response) + error = _failsafe_deserialize(_models.ErrorInRange, response.json()) else: - error = _failsafe_deserialize(_models.DefaultError, response) + error = _failsafe_deserialize(_models.DefaultError, response.json()) raise HttpResponseError(response=response, model=error) if cls: @@ -160,10 +160,10 @@ def error_response_status_code404(self, **kwargs: Any) -> None: # pylint: disab map_error(status_code=response.status_code, response=response, error_map=error_map) error = None if response.status_code == 404: - error = _failsafe_deserialize(_models.NotFoundError, response) + error = _failsafe_deserialize(_models.NotFoundError, response.json()) raise ResourceNotFoundError(response=response, model=error) if 400 <= response.status_code <= 499: - error = _failsafe_deserialize(_models.Standard4XXError, response) + error = _failsafe_deserialize(_models.Standard4XXError, response.json()) raise HttpResponseError(response=response, model=error) if cls: diff --git a/packages/typespec-python/test/azure/generated/response-status-code-range/response/statuscoderange/_utils/model_base.py b/packages/typespec-python/test/azure/generated/response-status-code-range/response/statuscoderange/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/response-status-code-range/response/statuscoderange/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/response-status-code-range/response/statuscoderange/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/response-status-code-range/response/statuscoderange/aio/_operations/_operations.py b/packages/typespec-python/test/azure/generated/response-status-code-range/response/statuscoderange/aio/_operations/_operations.py index 0e30ec1a437..efc0af913ee 100644 --- a/packages/typespec-python/test/azure/generated/response-status-code-range/response/statuscoderange/aio/_operations/_operations.py +++ b/packages/typespec-python/test/azure/generated/response-status-code-range/response/statuscoderange/aio/_operations/_operations.py @@ -80,9 +80,9 @@ async def error_response_status_code_in_range(self, **kwargs: Any) -> None: map_error(status_code=response.status_code, response=response, error_map=error_map) error = None if 494 <= response.status_code <= 499: - error = _failsafe_deserialize(_models.ErrorInRange, response) + error = _failsafe_deserialize(_models.ErrorInRange, response.json()) else: - error = _failsafe_deserialize(_models.DefaultError, response) + error = _failsafe_deserialize(_models.DefaultError, response.json()) raise HttpResponseError(response=response, model=error) if cls: @@ -126,10 +126,10 @@ async def error_response_status_code404(self, **kwargs: Any) -> None: map_error(status_code=response.status_code, response=response, error_map=error_map) error = None if response.status_code == 404: - error = _failsafe_deserialize(_models.NotFoundError, response) + error = _failsafe_deserialize(_models.NotFoundError, response.json()) raise ResourceNotFoundError(response=response, model=error) if 400 <= response.status_code <= 499: - error = _failsafe_deserialize(_models.Standard4XXError, response) + error = _failsafe_deserialize(_models.Standard4XXError, response.json()) raise HttpResponseError(response=response, model=error) if cls: diff --git a/packages/typespec-python/test/azure/generated/routes/pyproject.toml b/packages/typespec-python/test/azure/generated/routes/pyproject.toml index 2bf8b4f766e..8686017ec23 100644 --- a/packages/typespec-python/test/azure/generated/routes/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/routes/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Routes Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", ] [tool.setuptools.package-data] diff --git a/packages/typespec-python/test/azure/generated/routes/routes/_utils/model_base.py b/packages/typespec-python/test/azure/generated/routes/routes/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/routes/routes/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/routes/routes/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/serialization-encoded-name-json/pyproject.toml b/packages/typespec-python/test/azure/generated/serialization-encoded-name-json/pyproject.toml index 9ef770e5ea5..d7cf30a2472 100644 --- a/packages/typespec-python/test/azure/generated/serialization-encoded-name-json/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/serialization-encoded-name-json/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Serialization Encodedname Json Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "serialization", "serialization.encodedname", ] diff --git a/packages/typespec-python/test/azure/generated/serialization-encoded-name-json/serialization/encodedname/json/_utils/model_base.py b/packages/typespec-python/test/azure/generated/serialization-encoded-name-json/serialization/encodedname/json/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/serialization-encoded-name-json/serialization/encodedname/json/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/serialization-encoded-name-json/serialization/encodedname/json/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/server-endpoint-not-defined/pyproject.toml b/packages/typespec-python/test/azure/generated/server-endpoint-not-defined/pyproject.toml index 1877dc386cb..04422010b5d 100644 --- a/packages/typespec-python/test/azure/generated/server-endpoint-not-defined/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/server-endpoint-not-defined/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Server Endpoint Notdefined Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "server", "server.endpoint", ] diff --git a/packages/typespec-python/test/azure/generated/server-endpoint-not-defined/server/endpoint/notdefined/_utils/model_base.py b/packages/typespec-python/test/azure/generated/server-endpoint-not-defined/server/endpoint/notdefined/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/server-endpoint-not-defined/server/endpoint/notdefined/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/server-endpoint-not-defined/server/endpoint/notdefined/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/server-path-multiple/pyproject.toml b/packages/typespec-python/test/azure/generated/server-path-multiple/pyproject.toml index b8719b91032..25ec5b764c1 100644 --- a/packages/typespec-python/test/azure/generated/server-path-multiple/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/server-path-multiple/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Server Path Multiple Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "server", "server.path", ] diff --git a/packages/typespec-python/test/azure/generated/server-path-multiple/server/path/multiple/_utils/model_base.py b/packages/typespec-python/test/azure/generated/server-path-multiple/server/path/multiple/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/server-path-multiple/server/path/multiple/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/server-path-multiple/server/path/multiple/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/server-path-single/pyproject.toml b/packages/typespec-python/test/azure/generated/server-path-single/pyproject.toml index f48d72213ac..909f3c6ad1a 100644 --- a/packages/typespec-python/test/azure/generated/server-path-single/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/server-path-single/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Server Path Single Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "server", "server.path", ] diff --git a/packages/typespec-python/test/azure/generated/server-path-single/server/path/single/_utils/model_base.py b/packages/typespec-python/test/azure/generated/server-path-single/server/path/single/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/server-path-single/server/path/single/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/server-path-single/server/path/single/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/server-versions-not-versioned/pyproject.toml b/packages/typespec-python/test/azure/generated/server-versions-not-versioned/pyproject.toml index bd46123c28e..6fdfe6a8079 100644 --- a/packages/typespec-python/test/azure/generated/server-versions-not-versioned/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/server-versions-not-versioned/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Server Versions Notversioned Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "server", "server.versions", ] diff --git a/packages/typespec-python/test/azure/generated/server-versions-not-versioned/server/versions/notversioned/_utils/model_base.py b/packages/typespec-python/test/azure/generated/server-versions-not-versioned/server/versions/notversioned/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/server-versions-not-versioned/server/versions/notversioned/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/server-versions-not-versioned/server/versions/notversioned/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/server-versions-versioned/pyproject.toml b/packages/typespec-python/test/azure/generated/server-versions-versioned/pyproject.toml index b18e5d97e6d..bea773e70e9 100644 --- a/packages/typespec-python/test/azure/generated/server-versions-versioned/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/server-versions-versioned/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Server Versions Versioned Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "server", "server.versions", ] diff --git a/packages/typespec-python/test/azure/generated/server-versions-versioned/server/versions/versioned/_utils/model_base.py b/packages/typespec-python/test/azure/generated/server-versions-versioned/server/versions/versioned/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/server-versions-versioned/server/versions/versioned/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/server-versions-versioned/server/versions/versioned/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/setuppy-authentication-union/setuppy/authentication/union/_utils/model_base.py b/packages/typespec-python/test/azure/generated/setuppy-authentication-union/setuppy/authentication/union/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/setuppy-authentication-union/setuppy/authentication/union/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/setuppy-authentication-union/setuppy/authentication/union/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/special-headers-conditional-request/pyproject.toml b/packages/typespec-python/test/azure/generated/special-headers-conditional-request/pyproject.toml index fc5ff872550..3127799452f 100644 --- a/packages/typespec-python/test/azure/generated/special-headers-conditional-request/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/special-headers-conditional-request/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Specialheaders Conditionalrequest Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "specialheaders", ] diff --git a/packages/typespec-python/test/azure/generated/special-headers-conditional-request/specialheaders/conditionalrequest/_utils/model_base.py b/packages/typespec-python/test/azure/generated/special-headers-conditional-request/specialheaders/conditionalrequest/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/special-headers-conditional-request/specialheaders/conditionalrequest/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/special-headers-conditional-request/specialheaders/conditionalrequest/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/special-headers-repeatability/pyproject.toml b/packages/typespec-python/test/azure/generated/special-headers-repeatability/pyproject.toml index 3076fadc544..a6b661f2d22 100644 --- a/packages/typespec-python/test/azure/generated/special-headers-repeatability/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/special-headers-repeatability/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Specialheaders Repeatability Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "specialheaders", ] diff --git a/packages/typespec-python/test/azure/generated/special-headers-repeatability/specialheaders/repeatability/_utils/model_base.py b/packages/typespec-python/test/azure/generated/special-headers-repeatability/specialheaders/repeatability/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/special-headers-repeatability/specialheaders/repeatability/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/special-headers-repeatability/specialheaders/repeatability/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/special-words/pyproject.toml b/packages/typespec-python/test/azure/generated/special-words/pyproject.toml index d7cce92430d..5be797d4976 100644 --- a/packages/typespec-python/test/azure/generated/special-words/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/special-words/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Specialwords Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", ] [tool.setuptools.package-data] diff --git a/packages/typespec-python/test/azure/generated/special-words/specialwords/_utils/model_base.py b/packages/typespec-python/test/azure/generated/special-words/specialwords/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/special-words/specialwords/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/special-words/specialwords/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/streaming-jsonl/pyproject.toml b/packages/typespec-python/test/azure/generated/streaming-jsonl/pyproject.toml index 173a889ce8f..920262f2d00 100644 --- a/packages/typespec-python/test/azure/generated/streaming-jsonl/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/streaming-jsonl/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Streaming Jsonl Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "streaming", ] diff --git a/packages/typespec-python/test/azure/generated/streaming-jsonl/streaming/jsonl/_utils/model_base.py b/packages/typespec-python/test/azure/generated/streaming-jsonl/streaming/jsonl/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/streaming-jsonl/streaming/jsonl/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/streaming-jsonl/streaming/jsonl/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/typetest-array/pyproject.toml b/packages/typespec-python/test/azure/generated/typetest-array/pyproject.toml index 01cba7d34a2..5b8d864f70d 100644 --- a/packages/typespec-python/test/azure/generated/typetest-array/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/typetest-array/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Typetest Array Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "typetest", ] diff --git a/packages/typespec-python/test/azure/generated/typetest-array/typetest/array/_utils/model_base.py b/packages/typespec-python/test/azure/generated/typetest-array/typetest/array/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/typetest-array/typetest/array/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/typetest-array/typetest/array/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/typetest-dictionary/pyproject.toml b/packages/typespec-python/test/azure/generated/typetest-dictionary/pyproject.toml index 4fc5954c6c8..0647e9ab0e0 100644 --- a/packages/typespec-python/test/azure/generated/typetest-dictionary/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/typetest-dictionary/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Typetest Dictionary Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "typetest", ] diff --git a/packages/typespec-python/test/azure/generated/typetest-dictionary/typetest/dictionary/_utils/model_base.py b/packages/typespec-python/test/azure/generated/typetest-dictionary/typetest/dictionary/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/typetest-dictionary/typetest/dictionary/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/typetest-dictionary/typetest/dictionary/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/typetest-enum-extensible/pyproject.toml b/packages/typespec-python/test/azure/generated/typetest-enum-extensible/pyproject.toml index 10b911c4f1a..e300a904615 100644 --- a/packages/typespec-python/test/azure/generated/typetest-enum-extensible/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/typetest-enum-extensible/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Typetest Enum Extensible Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "typetest", "typetest.enum", ] diff --git a/packages/typespec-python/test/azure/generated/typetest-enum-extensible/typetest/enum/extensible/_utils/model_base.py b/packages/typespec-python/test/azure/generated/typetest-enum-extensible/typetest/enum/extensible/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/typetest-enum-extensible/typetest/enum/extensible/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/typetest-enum-extensible/typetest/enum/extensible/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/typetest-enum-fixed/pyproject.toml b/packages/typespec-python/test/azure/generated/typetest-enum-fixed/pyproject.toml index b09f9e4aa65..e1373f3576e 100644 --- a/packages/typespec-python/test/azure/generated/typetest-enum-fixed/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/typetest-enum-fixed/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Typetest Enum Fixed Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "typetest", "typetest.enum", ] diff --git a/packages/typespec-python/test/azure/generated/typetest-enum-fixed/typetest/enum/fixed/_utils/model_base.py b/packages/typespec-python/test/azure/generated/typetest-enum-fixed/typetest/enum/fixed/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/typetest-enum-fixed/typetest/enum/fixed/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/typetest-enum-fixed/typetest/enum/fixed/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/typetest-model-empty/pyproject.toml b/packages/typespec-python/test/azure/generated/typetest-model-empty/pyproject.toml index 983221257b6..5a9f7f3d775 100644 --- a/packages/typespec-python/test/azure/generated/typetest-model-empty/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/typetest-model-empty/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Typetest Model Empty Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "typetest", "typetest.model", ] diff --git a/packages/typespec-python/test/azure/generated/typetest-model-empty/typetest/model/empty/_utils/model_base.py b/packages/typespec-python/test/azure/generated/typetest-model-empty/typetest/model/empty/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/typetest-model-empty/typetest/model/empty/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/typetest-model-empty/typetest/model/empty/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/typetest-model-enumdiscriminator/pyproject.toml b/packages/typespec-python/test/azure/generated/typetest-model-enumdiscriminator/pyproject.toml index 9f796c7bdf7..a84b8988756 100644 --- a/packages/typespec-python/test/azure/generated/typetest-model-enumdiscriminator/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/typetest-model-enumdiscriminator/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Typetest Model Enumdiscriminator Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "typetest", "typetest.model", ] diff --git a/packages/typespec-python/test/azure/generated/typetest-model-enumdiscriminator/typetest/model/enumdiscriminator/_utils/model_base.py b/packages/typespec-python/test/azure/generated/typetest-model-enumdiscriminator/typetest/model/enumdiscriminator/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/typetest-model-enumdiscriminator/typetest/model/enumdiscriminator/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/typetest-model-enumdiscriminator/typetest/model/enumdiscriminator/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/typetest-model-nesteddiscriminator/pyproject.toml b/packages/typespec-python/test/azure/generated/typetest-model-nesteddiscriminator/pyproject.toml index 46e529fd8d6..816cfcf9278 100644 --- a/packages/typespec-python/test/azure/generated/typetest-model-nesteddiscriminator/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/typetest-model-nesteddiscriminator/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Typetest Model Nesteddiscriminator Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "typetest", "typetest.model", ] diff --git a/packages/typespec-python/test/azure/generated/typetest-model-nesteddiscriminator/typetest/model/nesteddiscriminator/_utils/model_base.py b/packages/typespec-python/test/azure/generated/typetest-model-nesteddiscriminator/typetest/model/nesteddiscriminator/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/typetest-model-nesteddiscriminator/typetest/model/nesteddiscriminator/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/typetest-model-nesteddiscriminator/typetest/model/nesteddiscriminator/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/typetest-model-notdiscriminated/pyproject.toml b/packages/typespec-python/test/azure/generated/typetest-model-notdiscriminated/pyproject.toml index 50b12c5f8b3..51cf11dffac 100644 --- a/packages/typespec-python/test/azure/generated/typetest-model-notdiscriminated/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/typetest-model-notdiscriminated/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Typetest Model Notdiscriminated Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "typetest", "typetest.model", ] diff --git a/packages/typespec-python/test/azure/generated/typetest-model-notdiscriminated/typetest/model/notdiscriminated/_utils/model_base.py b/packages/typespec-python/test/azure/generated/typetest-model-notdiscriminated/typetest/model/notdiscriminated/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/typetest-model-notdiscriminated/typetest/model/notdiscriminated/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/typetest-model-notdiscriminated/typetest/model/notdiscriminated/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/typetest-model-recursive/pyproject.toml b/packages/typespec-python/test/azure/generated/typetest-model-recursive/pyproject.toml index 5f54f0688d4..602606e980c 100644 --- a/packages/typespec-python/test/azure/generated/typetest-model-recursive/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/typetest-model-recursive/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Typetest Model Recursive Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "typetest", "typetest.model", ] diff --git a/packages/typespec-python/test/azure/generated/typetest-model-recursive/typetest/model/recursive/_utils/model_base.py b/packages/typespec-python/test/azure/generated/typetest-model-recursive/typetest/model/recursive/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/typetest-model-recursive/typetest/model/recursive/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/typetest-model-recursive/typetest/model/recursive/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/typetest-model-singlediscriminator/pyproject.toml b/packages/typespec-python/test/azure/generated/typetest-model-singlediscriminator/pyproject.toml index 3bc86bc1b60..a4b3e874c1c 100644 --- a/packages/typespec-python/test/azure/generated/typetest-model-singlediscriminator/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/typetest-model-singlediscriminator/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Typetest Model Singlediscriminator Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "typetest", "typetest.model", ] diff --git a/packages/typespec-python/test/azure/generated/typetest-model-singlediscriminator/typetest/model/singlediscriminator/_utils/model_base.py b/packages/typespec-python/test/azure/generated/typetest-model-singlediscriminator/typetest/model/singlediscriminator/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/typetest-model-singlediscriminator/typetest/model/singlediscriminator/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/typetest-model-singlediscriminator/typetest/model/singlediscriminator/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/typetest-model-usage/pyproject.toml b/packages/typespec-python/test/azure/generated/typetest-model-usage/pyproject.toml index bd853ab5b34..04102e6110d 100644 --- a/packages/typespec-python/test/azure/generated/typetest-model-usage/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/typetest-model-usage/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Typetest Model Usage Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "typetest", "typetest.model", ] diff --git a/packages/typespec-python/test/azure/generated/typetest-model-usage/typetest/model/usage/_utils/model_base.py b/packages/typespec-python/test/azure/generated/typetest-model-usage/typetest/model/usage/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/typetest-model-usage/typetest/model/usage/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/typetest-model-usage/typetest/model/usage/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/typetest-model-visibility/pyproject.toml b/packages/typespec-python/test/azure/generated/typetest-model-visibility/pyproject.toml index 2f72113b091..418c8a42972 100644 --- a/packages/typespec-python/test/azure/generated/typetest-model-visibility/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/typetest-model-visibility/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Typetest Model Visibility Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "typetest", "typetest.model", ] diff --git a/packages/typespec-python/test/azure/generated/typetest-model-visibility/typetest/model/visibility/_utils/model_base.py b/packages/typespec-python/test/azure/generated/typetest-model-visibility/typetest/model/visibility/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/typetest-model-visibility/typetest/model/visibility/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/typetest-model-visibility/typetest/model/visibility/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/typetest-property-additionalproperties/pyproject.toml b/packages/typespec-python/test/azure/generated/typetest-property-additionalproperties/pyproject.toml index d1ab63f4331..3da4fe9e939 100644 --- a/packages/typespec-python/test/azure/generated/typetest-property-additionalproperties/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/typetest-property-additionalproperties/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Typetest Property Additionalproperties Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "typetest", "typetest.property", ] diff --git a/packages/typespec-python/test/azure/generated/typetest-property-additionalproperties/typetest/property/additionalproperties/_utils/model_base.py b/packages/typespec-python/test/azure/generated/typetest-property-additionalproperties/typetest/property/additionalproperties/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/typetest-property-additionalproperties/typetest/property/additionalproperties/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/typetest-property-additionalproperties/typetest/property/additionalproperties/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/typetest-property-nullable/pyproject.toml b/packages/typespec-python/test/azure/generated/typetest-property-nullable/pyproject.toml index c19850b1954..5423d08f468 100644 --- a/packages/typespec-python/test/azure/generated/typetest-property-nullable/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/typetest-property-nullable/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Typetest Property Nullable Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "typetest", "typetest.property", ] diff --git a/packages/typespec-python/test/azure/generated/typetest-property-nullable/typetest/property/nullable/_utils/model_base.py b/packages/typespec-python/test/azure/generated/typetest-property-nullable/typetest/property/nullable/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/typetest-property-nullable/typetest/property/nullable/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/typetest-property-nullable/typetest/property/nullable/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/typetest-property-optional/pyproject.toml b/packages/typespec-python/test/azure/generated/typetest-property-optional/pyproject.toml index b3aaad8d9a9..0c92018b145 100644 --- a/packages/typespec-python/test/azure/generated/typetest-property-optional/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/typetest-property-optional/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Typetest Property Optional Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "typetest", "typetest.property", ] diff --git a/packages/typespec-python/test/azure/generated/typetest-property-optional/typetest/property/optional/_utils/model_base.py b/packages/typespec-python/test/azure/generated/typetest-property-optional/typetest/property/optional/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/typetest-property-optional/typetest/property/optional/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/typetest-property-optional/typetest/property/optional/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/typetest-property-valuetypes/pyproject.toml b/packages/typespec-python/test/azure/generated/typetest-property-valuetypes/pyproject.toml index 23cb89199d7..3408b714841 100644 --- a/packages/typespec-python/test/azure/generated/typetest-property-valuetypes/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/typetest-property-valuetypes/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Typetest Property Valuetypes Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "typetest", "typetest.property", ] diff --git a/packages/typespec-python/test/azure/generated/typetest-property-valuetypes/typetest/property/valuetypes/_utils/model_base.py b/packages/typespec-python/test/azure/generated/typetest-property-valuetypes/typetest/property/valuetypes/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/typetest-property-valuetypes/typetest/property/valuetypes/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/typetest-property-valuetypes/typetest/property/valuetypes/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/typetest-scalar/pyproject.toml b/packages/typespec-python/test/azure/generated/typetest-scalar/pyproject.toml index 877dfe055b4..43a519c5440 100644 --- a/packages/typespec-python/test/azure/generated/typetest-scalar/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/typetest-scalar/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Typetest Scalar Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "typetest", ] diff --git a/packages/typespec-python/test/azure/generated/typetest-scalar/typetest/scalar/_utils/model_base.py b/packages/typespec-python/test/azure/generated/typetest-scalar/typetest/scalar/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/typetest-scalar/typetest/scalar/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/typetest-scalar/typetest/scalar/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/typetest-union/pyproject.toml b/packages/typespec-python/test/azure/generated/typetest-union/pyproject.toml index 6591dfce217..47808459e48 100644 --- a/packages/typespec-python/test/azure/generated/typetest-union/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/typetest-union/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Typetest Union Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "typetest", ] diff --git a/packages/typespec-python/test/azure/generated/typetest-union/typetest/union/_utils/model_base.py b/packages/typespec-python/test/azure/generated/typetest-union/typetest/union/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/typetest-union/typetest/union/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/typetest-union/typetest/union/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/versioning-added/pyproject.toml b/packages/typespec-python/test/azure/generated/versioning-added/pyproject.toml index 57673df755c..0614ada0b47 100644 --- a/packages/typespec-python/test/azure/generated/versioning-added/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/versioning-added/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Versioning Added Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "versioning", ] diff --git a/packages/typespec-python/test/azure/generated/versioning-added/versioning/added/_utils/model_base.py b/packages/typespec-python/test/azure/generated/versioning-added/versioning/added/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/versioning-added/versioning/added/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/versioning-added/versioning/added/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/versioning-madeoptional/pyproject.toml b/packages/typespec-python/test/azure/generated/versioning-madeoptional/pyproject.toml index b54012b3bdb..556b78996fd 100644 --- a/packages/typespec-python/test/azure/generated/versioning-madeoptional/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/versioning-madeoptional/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Versioning Madeoptional Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "versioning", ] diff --git a/packages/typespec-python/test/azure/generated/versioning-madeoptional/versioning/madeoptional/_utils/model_base.py b/packages/typespec-python/test/azure/generated/versioning-madeoptional/versioning/madeoptional/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/versioning-madeoptional/versioning/madeoptional/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/versioning-madeoptional/versioning/madeoptional/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/versioning-removed/pyproject.toml b/packages/typespec-python/test/azure/generated/versioning-removed/pyproject.toml index 8de8a69175f..27ab4394e29 100644 --- a/packages/typespec-python/test/azure/generated/versioning-removed/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/versioning-removed/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Versioning Removed Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "versioning", ] diff --git a/packages/typespec-python/test/azure/generated/versioning-removed/versioning/removed/_utils/model_base.py b/packages/typespec-python/test/azure/generated/versioning-removed/versioning/removed/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/versioning-removed/versioning/removed/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/versioning-removed/versioning/removed/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/versioning-renamedfrom/pyproject.toml b/packages/typespec-python/test/azure/generated/versioning-renamedfrom/pyproject.toml index 9383bfc97d8..941d4352af5 100644 --- a/packages/typespec-python/test/azure/generated/versioning-renamedfrom/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/versioning-renamedfrom/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Versioning Renamedfrom Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "versioning", ] diff --git a/packages/typespec-python/test/azure/generated/versioning-renamedfrom/versioning/renamedfrom/_utils/model_base.py b/packages/typespec-python/test/azure/generated/versioning-renamedfrom/versioning/renamedfrom/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/versioning-renamedfrom/versioning/renamedfrom/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/versioning-renamedfrom/versioning/renamedfrom/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/versioning-returntypechangedfrom/pyproject.toml b/packages/typespec-python/test/azure/generated/versioning-returntypechangedfrom/pyproject.toml index 8b1e3b6fb7e..ba08ea80ff0 100644 --- a/packages/typespec-python/test/azure/generated/versioning-returntypechangedfrom/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/versioning-returntypechangedfrom/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Versioning Returntypechangedfrom Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "versioning", ] diff --git a/packages/typespec-python/test/azure/generated/versioning-returntypechangedfrom/versioning/returntypechangedfrom/_utils/model_base.py b/packages/typespec-python/test/azure/generated/versioning-returntypechangedfrom/versioning/returntypechangedfrom/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/versioning-returntypechangedfrom/versioning/returntypechangedfrom/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/versioning-returntypechangedfrom/versioning/returntypechangedfrom/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/azure/generated/versioning-typechangedfrom/pyproject.toml b/packages/typespec-python/test/azure/generated/versioning-typechangedfrom/pyproject.toml index 4a558260bc2..77fe1868d35 100644 --- a/packages/typespec-python/test/azure/generated/versioning-typechangedfrom/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/versioning-typechangedfrom/pyproject.toml @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -15,7 +15,7 @@ authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] description = "Microsoft Corporation Azure Versioning Typechangedfrom Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -26,7 +26,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" keywords = ["azure", "azure sdk"] @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "versioning", ] diff --git a/packages/typespec-python/test/azure/generated/versioning-typechangedfrom/versioning/typechangedfrom/_utils/model_base.py b/packages/typespec-python/test/azure/generated/versioning-typechangedfrom/versioning/typechangedfrom/_utils/model_base.py index c62e7e7784a..49d5c725938 100644 --- a/packages/typespec-python/test/azure/generated/versioning-typechangedfrom/versioning/typechangedfrom/_utils/model_base.py +++ b/packages/typespec-python/test/azure/generated/versioning-typechangedfrom/versioning/typechangedfrom/_utils/model_base.py @@ -29,7 +29,6 @@ from azure.core import CaseInsensitiveEnumMeta from azure.core.pipeline import PipelineResponse from azure.core.serialization import _Null -from azure.core.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -941,13 +940,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -957,10 +956,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/unbranded/generated/authentication-api-key-subdir/authentication/api/key/subdir/_generated/_operations/_operations.py b/packages/typespec-python/test/unbranded/generated/authentication-api-key-subdir/authentication/api/key/subdir/_generated/_operations/_operations.py index 4f9138c20db..c2c0f07f7da 100644 --- a/packages/typespec-python/test/unbranded/generated/authentication-api-key-subdir/authentication/api/key/subdir/_generated/_operations/_operations.py +++ b/packages/typespec-python/test/unbranded/generated/authentication-api-key-subdir/authentication/api/key/subdir/_generated/_operations/_operations.py @@ -132,7 +132,7 @@ def invalid(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return map_error(status_code=response.status_code, response=response, error_map=error_map) error = None if response.status_code == 403: - error = _failsafe_deserialize(_models.InvalidAuth, response) + error = _failsafe_deserialize(_models.InvalidAuth, response.json()) raise HttpResponseError(response=response, model=error) if cls: diff --git a/packages/typespec-python/test/unbranded/generated/authentication-api-key-subdir/authentication/api/key/subdir/_generated/_utils/model_base.py b/packages/typespec-python/test/unbranded/generated/authentication-api-key-subdir/authentication/api/key/subdir/_generated/_utils/model_base.py index e880ccde9b8..e69ff2ca36d 100644 --- a/packages/typespec-python/test/unbranded/generated/authentication-api-key-subdir/authentication/api/key/subdir/_generated/_utils/model_base.py +++ b/packages/typespec-python/test/unbranded/generated/authentication-api-key-subdir/authentication/api/key/subdir/_generated/_utils/model_base.py @@ -23,7 +23,6 @@ from corehttp.utils import CaseInsensitiveEnumMeta from corehttp.runtime.pipeline import PipelineResponse from corehttp.serialization import _Null -from corehttp.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -935,13 +934,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -951,10 +950,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/unbranded/generated/authentication-api-key-subdir/authentication/api/key/subdir/_generated/aio/_operations/_operations.py b/packages/typespec-python/test/unbranded/generated/authentication-api-key-subdir/authentication/api/key/subdir/_generated/aio/_operations/_operations.py index c8b7fab486b..bdc739e3998 100644 --- a/packages/typespec-python/test/unbranded/generated/authentication-api-key-subdir/authentication/api/key/subdir/_generated/aio/_operations/_operations.py +++ b/packages/typespec-python/test/unbranded/generated/authentication-api-key-subdir/authentication/api/key/subdir/_generated/aio/_operations/_operations.py @@ -111,7 +111,7 @@ async def invalid(self, **kwargs: Any) -> None: map_error(status_code=response.status_code, response=response, error_map=error_map) error = None if response.status_code == 403: - error = _failsafe_deserialize(_models.InvalidAuth, response) + error = _failsafe_deserialize(_models.InvalidAuth, response.json()) raise HttpResponseError(response=response, model=error) if cls: diff --git a/packages/typespec-python/test/unbranded/generated/authentication-api-key-subdir/pyproject.toml b/packages/typespec-python/test/unbranded/generated/authentication-api-key-subdir/pyproject.toml index 4c75610cdcd..99b8aebd165 100644 --- a/packages/typespec-python/test/unbranded/generated/authentication-api-key-subdir/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/authentication-api-key-subdir/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -9,7 +9,7 @@ authors = [ { name = "" }, ] description = " Authentication Api Key Subdir Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -20,7 +20,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" @@ -41,6 +40,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "authentication", "authentication.api", "authentication.api.key", diff --git a/packages/typespec-python/test/unbranded/generated/authentication-api-key/authentication/apikey/_operations/_operations.py b/packages/typespec-python/test/unbranded/generated/authentication-api-key/authentication/apikey/_operations/_operations.py index 4f9138c20db..c2c0f07f7da 100644 --- a/packages/typespec-python/test/unbranded/generated/authentication-api-key/authentication/apikey/_operations/_operations.py +++ b/packages/typespec-python/test/unbranded/generated/authentication-api-key/authentication/apikey/_operations/_operations.py @@ -132,7 +132,7 @@ def invalid(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return map_error(status_code=response.status_code, response=response, error_map=error_map) error = None if response.status_code == 403: - error = _failsafe_deserialize(_models.InvalidAuth, response) + error = _failsafe_deserialize(_models.InvalidAuth, response.json()) raise HttpResponseError(response=response, model=error) if cls: diff --git a/packages/typespec-python/test/unbranded/generated/authentication-api-key/authentication/apikey/_utils/model_base.py b/packages/typespec-python/test/unbranded/generated/authentication-api-key/authentication/apikey/_utils/model_base.py index e880ccde9b8..e69ff2ca36d 100644 --- a/packages/typespec-python/test/unbranded/generated/authentication-api-key/authentication/apikey/_utils/model_base.py +++ b/packages/typespec-python/test/unbranded/generated/authentication-api-key/authentication/apikey/_utils/model_base.py @@ -23,7 +23,6 @@ from corehttp.utils import CaseInsensitiveEnumMeta from corehttp.runtime.pipeline import PipelineResponse from corehttp.serialization import _Null -from corehttp.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -935,13 +934,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -951,10 +950,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/unbranded/generated/authentication-api-key/authentication/apikey/aio/_operations/_operations.py b/packages/typespec-python/test/unbranded/generated/authentication-api-key/authentication/apikey/aio/_operations/_operations.py index c8b7fab486b..bdc739e3998 100644 --- a/packages/typespec-python/test/unbranded/generated/authentication-api-key/authentication/apikey/aio/_operations/_operations.py +++ b/packages/typespec-python/test/unbranded/generated/authentication-api-key/authentication/apikey/aio/_operations/_operations.py @@ -111,7 +111,7 @@ async def invalid(self, **kwargs: Any) -> None: map_error(status_code=response.status_code, response=response, error_map=error_map) error = None if response.status_code == 403: - error = _failsafe_deserialize(_models.InvalidAuth, response) + error = _failsafe_deserialize(_models.InvalidAuth, response.json()) raise HttpResponseError(response=response, model=error) if cls: diff --git a/packages/typespec-python/test/unbranded/generated/authentication-api-key/pyproject.toml b/packages/typespec-python/test/unbranded/generated/authentication-api-key/pyproject.toml index 8c201d80703..9d1a19912c9 100644 --- a/packages/typespec-python/test/unbranded/generated/authentication-api-key/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/authentication-api-key/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -9,7 +9,7 @@ authors = [ { name = "" }, ] description = " Authentication Apikey Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -20,7 +20,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" @@ -41,6 +40,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "authentication", ] diff --git a/packages/typespec-python/test/unbranded/generated/authentication-http-custom/authentication/http/custom/_operations/_operations.py b/packages/typespec-python/test/unbranded/generated/authentication-http-custom/authentication/http/custom/_operations/_operations.py index b580692464e..9912506b033 100644 --- a/packages/typespec-python/test/unbranded/generated/authentication-http-custom/authentication/http/custom/_operations/_operations.py +++ b/packages/typespec-python/test/unbranded/generated/authentication-http-custom/authentication/http/custom/_operations/_operations.py @@ -132,7 +132,7 @@ def invalid(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return map_error(status_code=response.status_code, response=response, error_map=error_map) error = None if response.status_code == 403: - error = _failsafe_deserialize(_models.InvalidAuth, response) + error = _failsafe_deserialize(_models.InvalidAuth, response.json()) raise HttpResponseError(response=response, model=error) if cls: diff --git a/packages/typespec-python/test/unbranded/generated/authentication-http-custom/authentication/http/custom/_utils/model_base.py b/packages/typespec-python/test/unbranded/generated/authentication-http-custom/authentication/http/custom/_utils/model_base.py index e880ccde9b8..e69ff2ca36d 100644 --- a/packages/typespec-python/test/unbranded/generated/authentication-http-custom/authentication/http/custom/_utils/model_base.py +++ b/packages/typespec-python/test/unbranded/generated/authentication-http-custom/authentication/http/custom/_utils/model_base.py @@ -23,7 +23,6 @@ from corehttp.utils import CaseInsensitiveEnumMeta from corehttp.runtime.pipeline import PipelineResponse from corehttp.serialization import _Null -from corehttp.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -935,13 +934,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -951,10 +950,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/unbranded/generated/authentication-http-custom/authentication/http/custom/aio/_operations/_operations.py b/packages/typespec-python/test/unbranded/generated/authentication-http-custom/authentication/http/custom/aio/_operations/_operations.py index e934f648232..45010da7895 100644 --- a/packages/typespec-python/test/unbranded/generated/authentication-http-custom/authentication/http/custom/aio/_operations/_operations.py +++ b/packages/typespec-python/test/unbranded/generated/authentication-http-custom/authentication/http/custom/aio/_operations/_operations.py @@ -111,7 +111,7 @@ async def invalid(self, **kwargs: Any) -> None: map_error(status_code=response.status_code, response=response, error_map=error_map) error = None if response.status_code == 403: - error = _failsafe_deserialize(_models.InvalidAuth, response) + error = _failsafe_deserialize(_models.InvalidAuth, response.json()) raise HttpResponseError(response=response, model=error) if cls: diff --git a/packages/typespec-python/test/unbranded/generated/authentication-http-custom/pyproject.toml b/packages/typespec-python/test/unbranded/generated/authentication-http-custom/pyproject.toml index ae6574e5ddd..cbc16bda386 100644 --- a/packages/typespec-python/test/unbranded/generated/authentication-http-custom/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/authentication-http-custom/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -9,7 +9,7 @@ authors = [ { name = "" }, ] description = " Authentication Http Custom Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -20,7 +20,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" @@ -41,6 +40,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "authentication", "authentication.http", ] diff --git a/packages/typespec-python/test/unbranded/generated/authentication-oauth2/authentication/oauth2/_operations/_operations.py b/packages/typespec-python/test/unbranded/generated/authentication-oauth2/authentication/oauth2/_operations/_operations.py index 4534919cc07..b8c8eb49202 100644 --- a/packages/typespec-python/test/unbranded/generated/authentication-oauth2/authentication/oauth2/_operations/_operations.py +++ b/packages/typespec-python/test/unbranded/generated/authentication-oauth2/authentication/oauth2/_operations/_operations.py @@ -132,7 +132,7 @@ def invalid(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return map_error(status_code=response.status_code, response=response, error_map=error_map) error = None if response.status_code == 403: - error = _failsafe_deserialize(_models.InvalidAuth, response) + error = _failsafe_deserialize(_models.InvalidAuth, response.json()) raise HttpResponseError(response=response, model=error) if cls: diff --git a/packages/typespec-python/test/unbranded/generated/authentication-oauth2/authentication/oauth2/_utils/model_base.py b/packages/typespec-python/test/unbranded/generated/authentication-oauth2/authentication/oauth2/_utils/model_base.py index e880ccde9b8..e69ff2ca36d 100644 --- a/packages/typespec-python/test/unbranded/generated/authentication-oauth2/authentication/oauth2/_utils/model_base.py +++ b/packages/typespec-python/test/unbranded/generated/authentication-oauth2/authentication/oauth2/_utils/model_base.py @@ -23,7 +23,6 @@ from corehttp.utils import CaseInsensitiveEnumMeta from corehttp.runtime.pipeline import PipelineResponse from corehttp.serialization import _Null -from corehttp.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -935,13 +934,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -951,10 +950,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/unbranded/generated/authentication-oauth2/authentication/oauth2/aio/_operations/_operations.py b/packages/typespec-python/test/unbranded/generated/authentication-oauth2/authentication/oauth2/aio/_operations/_operations.py index b9acd6b43c4..9c1bbded70b 100644 --- a/packages/typespec-python/test/unbranded/generated/authentication-oauth2/authentication/oauth2/aio/_operations/_operations.py +++ b/packages/typespec-python/test/unbranded/generated/authentication-oauth2/authentication/oauth2/aio/_operations/_operations.py @@ -111,7 +111,7 @@ async def invalid(self, **kwargs: Any) -> None: map_error(status_code=response.status_code, response=response, error_map=error_map) error = None if response.status_code == 403: - error = _failsafe_deserialize(_models.InvalidAuth, response) + error = _failsafe_deserialize(_models.InvalidAuth, response.json()) raise HttpResponseError(response=response, model=error) if cls: diff --git a/packages/typespec-python/test/unbranded/generated/authentication-oauth2/pyproject.toml b/packages/typespec-python/test/unbranded/generated/authentication-oauth2/pyproject.toml index 88c8611d2af..fbf52b9dd32 100644 --- a/packages/typespec-python/test/unbranded/generated/authentication-oauth2/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/authentication-oauth2/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -9,7 +9,7 @@ authors = [ { name = "" }, ] description = " Authentication Oauth2 Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -20,7 +20,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" @@ -41,6 +40,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "authentication", ] diff --git a/packages/typespec-python/test/unbranded/generated/authentication-union/authentication/union/_utils/model_base.py b/packages/typespec-python/test/unbranded/generated/authentication-union/authentication/union/_utils/model_base.py index e880ccde9b8..e69ff2ca36d 100644 --- a/packages/typespec-python/test/unbranded/generated/authentication-union/authentication/union/_utils/model_base.py +++ b/packages/typespec-python/test/unbranded/generated/authentication-union/authentication/union/_utils/model_base.py @@ -23,7 +23,6 @@ from corehttp.utils import CaseInsensitiveEnumMeta from corehttp.runtime.pipeline import PipelineResponse from corehttp.serialization import _Null -from corehttp.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -935,13 +934,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -951,10 +950,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/unbranded/generated/authentication-union/pyproject.toml b/packages/typespec-python/test/unbranded/generated/authentication-union/pyproject.toml index 358f5d9d099..23b3737ccda 100644 --- a/packages/typespec-python/test/unbranded/generated/authentication-union/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/authentication-union/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -9,7 +9,7 @@ authors = [ { name = "" }, ] description = " Authentication Union Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -20,7 +20,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" @@ -41,6 +40,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "authentication", ] diff --git a/packages/typespec-python/test/unbranded/generated/encode-bytes/encode/bytes/_utils/model_base.py b/packages/typespec-python/test/unbranded/generated/encode-bytes/encode/bytes/_utils/model_base.py index e880ccde9b8..e69ff2ca36d 100644 --- a/packages/typespec-python/test/unbranded/generated/encode-bytes/encode/bytes/_utils/model_base.py +++ b/packages/typespec-python/test/unbranded/generated/encode-bytes/encode/bytes/_utils/model_base.py @@ -23,7 +23,6 @@ from corehttp.utils import CaseInsensitiveEnumMeta from corehttp.runtime.pipeline import PipelineResponse from corehttp.serialization import _Null -from corehttp.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -935,13 +934,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -951,10 +950,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/unbranded/generated/encode-bytes/pyproject.toml b/packages/typespec-python/test/unbranded/generated/encode-bytes/pyproject.toml index 0a1a2125f23..e7427787f5e 100644 --- a/packages/typespec-python/test/unbranded/generated/encode-bytes/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/encode-bytes/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -9,7 +9,7 @@ authors = [ { name = "" }, ] description = " Encode Bytes Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -20,7 +20,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" @@ -41,6 +40,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "encode", ] diff --git a/packages/typespec-python/test/unbranded/generated/encode-datetime/encode/datetime/_utils/model_base.py b/packages/typespec-python/test/unbranded/generated/encode-datetime/encode/datetime/_utils/model_base.py index e880ccde9b8..e69ff2ca36d 100644 --- a/packages/typespec-python/test/unbranded/generated/encode-datetime/encode/datetime/_utils/model_base.py +++ b/packages/typespec-python/test/unbranded/generated/encode-datetime/encode/datetime/_utils/model_base.py @@ -23,7 +23,6 @@ from corehttp.utils import CaseInsensitiveEnumMeta from corehttp.runtime.pipeline import PipelineResponse from corehttp.serialization import _Null -from corehttp.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -935,13 +934,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -951,10 +950,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/unbranded/generated/encode-datetime/pyproject.toml b/packages/typespec-python/test/unbranded/generated/encode-datetime/pyproject.toml index c144d3a0423..303bea32b95 100644 --- a/packages/typespec-python/test/unbranded/generated/encode-datetime/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/encode-datetime/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -9,7 +9,7 @@ authors = [ { name = "" }, ] description = " Encode Datetime Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -20,7 +20,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" @@ -41,6 +40,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "encode", ] diff --git a/packages/typespec-python/test/unbranded/generated/encode-duration/encode/duration/_utils/model_base.py b/packages/typespec-python/test/unbranded/generated/encode-duration/encode/duration/_utils/model_base.py index e880ccde9b8..e69ff2ca36d 100644 --- a/packages/typespec-python/test/unbranded/generated/encode-duration/encode/duration/_utils/model_base.py +++ b/packages/typespec-python/test/unbranded/generated/encode-duration/encode/duration/_utils/model_base.py @@ -23,7 +23,6 @@ from corehttp.utils import CaseInsensitiveEnumMeta from corehttp.runtime.pipeline import PipelineResponse from corehttp.serialization import _Null -from corehttp.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -935,13 +934,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -951,10 +950,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/unbranded/generated/encode-duration/pyproject.toml b/packages/typespec-python/test/unbranded/generated/encode-duration/pyproject.toml index 2de71007216..03aa2285a4b 100644 --- a/packages/typespec-python/test/unbranded/generated/encode-duration/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/encode-duration/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -9,7 +9,7 @@ authors = [ { name = "" }, ] description = " Encode Duration Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -20,7 +20,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" @@ -41,6 +40,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "encode", ] diff --git a/packages/typespec-python/test/unbranded/generated/encode-numeric/encode/numeric/_utils/model_base.py b/packages/typespec-python/test/unbranded/generated/encode-numeric/encode/numeric/_utils/model_base.py index e880ccde9b8..e69ff2ca36d 100644 --- a/packages/typespec-python/test/unbranded/generated/encode-numeric/encode/numeric/_utils/model_base.py +++ b/packages/typespec-python/test/unbranded/generated/encode-numeric/encode/numeric/_utils/model_base.py @@ -23,7 +23,6 @@ from corehttp.utils import CaseInsensitiveEnumMeta from corehttp.runtime.pipeline import PipelineResponse from corehttp.serialization import _Null -from corehttp.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -935,13 +934,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -951,10 +950,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/unbranded/generated/encode-numeric/pyproject.toml b/packages/typespec-python/test/unbranded/generated/encode-numeric/pyproject.toml index eaa0d92eaed..7ec0fdb1e0d 100644 --- a/packages/typespec-python/test/unbranded/generated/encode-numeric/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/encode-numeric/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -9,7 +9,7 @@ authors = [ { name = "" }, ] description = " Encode Numeric Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -20,7 +20,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" @@ -41,6 +40,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "encode", ] diff --git a/packages/typespec-python/test/unbranded/generated/headasbooleanfalse/headasbooleanfalse/_utils/model_base.py b/packages/typespec-python/test/unbranded/generated/headasbooleanfalse/headasbooleanfalse/_utils/model_base.py index e880ccde9b8..e69ff2ca36d 100644 --- a/packages/typespec-python/test/unbranded/generated/headasbooleanfalse/headasbooleanfalse/_utils/model_base.py +++ b/packages/typespec-python/test/unbranded/generated/headasbooleanfalse/headasbooleanfalse/_utils/model_base.py @@ -23,7 +23,6 @@ from corehttp.utils import CaseInsensitiveEnumMeta from corehttp.runtime.pipeline import PipelineResponse from corehttp.serialization import _Null -from corehttp.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -935,13 +934,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -951,10 +950,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/unbranded/generated/headasbooleanfalse/pyproject.toml b/packages/typespec-python/test/unbranded/generated/headasbooleanfalse/pyproject.toml index f43c151eb62..cbf079106a6 100644 --- a/packages/typespec-python/test/unbranded/generated/headasbooleanfalse/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/headasbooleanfalse/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -9,7 +9,7 @@ authors = [ { name = "" }, ] description = " Headasbooleanfalse Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -20,7 +20,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" @@ -41,6 +40,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", ] [tool.setuptools.package-data] diff --git a/packages/typespec-python/test/unbranded/generated/headasbooleantrue/headasbooleantrue/_utils/model_base.py b/packages/typespec-python/test/unbranded/generated/headasbooleantrue/headasbooleantrue/_utils/model_base.py index e880ccde9b8..e69ff2ca36d 100644 --- a/packages/typespec-python/test/unbranded/generated/headasbooleantrue/headasbooleantrue/_utils/model_base.py +++ b/packages/typespec-python/test/unbranded/generated/headasbooleantrue/headasbooleantrue/_utils/model_base.py @@ -23,7 +23,6 @@ from corehttp.utils import CaseInsensitiveEnumMeta from corehttp.runtime.pipeline import PipelineResponse from corehttp.serialization import _Null -from corehttp.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -935,13 +934,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -951,10 +950,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/unbranded/generated/headasbooleantrue/pyproject.toml b/packages/typespec-python/test/unbranded/generated/headasbooleantrue/pyproject.toml index 17f7d93bacd..d2fa2a96e0f 100644 --- a/packages/typespec-python/test/unbranded/generated/headasbooleantrue/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/headasbooleantrue/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -9,7 +9,7 @@ authors = [ { name = "" }, ] description = " Headasbooleantrue Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -20,7 +20,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" @@ -41,6 +40,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", ] [tool.setuptools.package-data] diff --git a/packages/typespec-python/test/unbranded/generated/parameters-basic/parameters/basic/_utils/model_base.py b/packages/typespec-python/test/unbranded/generated/parameters-basic/parameters/basic/_utils/model_base.py index e880ccde9b8..e69ff2ca36d 100644 --- a/packages/typespec-python/test/unbranded/generated/parameters-basic/parameters/basic/_utils/model_base.py +++ b/packages/typespec-python/test/unbranded/generated/parameters-basic/parameters/basic/_utils/model_base.py @@ -23,7 +23,6 @@ from corehttp.utils import CaseInsensitiveEnumMeta from corehttp.runtime.pipeline import PipelineResponse from corehttp.serialization import _Null -from corehttp.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -935,13 +934,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -951,10 +950,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/unbranded/generated/parameters-basic/pyproject.toml b/packages/typespec-python/test/unbranded/generated/parameters-basic/pyproject.toml index 4682022a630..53773f384b5 100644 --- a/packages/typespec-python/test/unbranded/generated/parameters-basic/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/parameters-basic/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -9,7 +9,7 @@ authors = [ { name = "" }, ] description = " Parameters Basic Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -20,7 +20,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" @@ -41,6 +40,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "parameters", ] diff --git a/packages/typespec-python/test/unbranded/generated/parameters-body-optionality/parameters/bodyoptionality/_utils/model_base.py b/packages/typespec-python/test/unbranded/generated/parameters-body-optionality/parameters/bodyoptionality/_utils/model_base.py index e880ccde9b8..e69ff2ca36d 100644 --- a/packages/typespec-python/test/unbranded/generated/parameters-body-optionality/parameters/bodyoptionality/_utils/model_base.py +++ b/packages/typespec-python/test/unbranded/generated/parameters-body-optionality/parameters/bodyoptionality/_utils/model_base.py @@ -23,7 +23,6 @@ from corehttp.utils import CaseInsensitiveEnumMeta from corehttp.runtime.pipeline import PipelineResponse from corehttp.serialization import _Null -from corehttp.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -935,13 +934,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -951,10 +950,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/unbranded/generated/parameters-body-optionality/pyproject.toml b/packages/typespec-python/test/unbranded/generated/parameters-body-optionality/pyproject.toml index fcc9e5724c0..dfad29d3edf 100644 --- a/packages/typespec-python/test/unbranded/generated/parameters-body-optionality/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/parameters-body-optionality/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -9,7 +9,7 @@ authors = [ { name = "" }, ] description = " Parameters Bodyoptionality Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -20,7 +20,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" @@ -41,6 +40,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "parameters", ] diff --git a/packages/typespec-python/test/unbranded/generated/parameters-collection-format/parameters/collectionformat/_utils/model_base.py b/packages/typespec-python/test/unbranded/generated/parameters-collection-format/parameters/collectionformat/_utils/model_base.py index e880ccde9b8..e69ff2ca36d 100644 --- a/packages/typespec-python/test/unbranded/generated/parameters-collection-format/parameters/collectionformat/_utils/model_base.py +++ b/packages/typespec-python/test/unbranded/generated/parameters-collection-format/parameters/collectionformat/_utils/model_base.py @@ -23,7 +23,6 @@ from corehttp.utils import CaseInsensitiveEnumMeta from corehttp.runtime.pipeline import PipelineResponse from corehttp.serialization import _Null -from corehttp.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -935,13 +934,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -951,10 +950,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/unbranded/generated/parameters-collection-format/pyproject.toml b/packages/typespec-python/test/unbranded/generated/parameters-collection-format/pyproject.toml index ebfd8241a2d..25e8731ba75 100644 --- a/packages/typespec-python/test/unbranded/generated/parameters-collection-format/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/parameters-collection-format/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -9,7 +9,7 @@ authors = [ { name = "" }, ] description = " Parameters Collectionformat Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -20,7 +20,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" @@ -41,6 +40,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "parameters", ] diff --git a/packages/typespec-python/test/unbranded/generated/parameters-path/parameters/path/_utils/model_base.py b/packages/typespec-python/test/unbranded/generated/parameters-path/parameters/path/_utils/model_base.py index e880ccde9b8..e69ff2ca36d 100644 --- a/packages/typespec-python/test/unbranded/generated/parameters-path/parameters/path/_utils/model_base.py +++ b/packages/typespec-python/test/unbranded/generated/parameters-path/parameters/path/_utils/model_base.py @@ -23,7 +23,6 @@ from corehttp.utils import CaseInsensitiveEnumMeta from corehttp.runtime.pipeline import PipelineResponse from corehttp.serialization import _Null -from corehttp.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -935,13 +934,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -951,10 +950,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/unbranded/generated/parameters-path/pyproject.toml b/packages/typespec-python/test/unbranded/generated/parameters-path/pyproject.toml index d5eabfaa14a..8e1a2e6bc91 100644 --- a/packages/typespec-python/test/unbranded/generated/parameters-path/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/parameters-path/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -9,7 +9,7 @@ authors = [ { name = "" }, ] description = " Parameters Path Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -20,7 +20,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" @@ -41,6 +40,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "parameters", ] diff --git a/packages/typespec-python/test/unbranded/generated/parameters-spread/parameters/spread/_utils/model_base.py b/packages/typespec-python/test/unbranded/generated/parameters-spread/parameters/spread/_utils/model_base.py index e880ccde9b8..e69ff2ca36d 100644 --- a/packages/typespec-python/test/unbranded/generated/parameters-spread/parameters/spread/_utils/model_base.py +++ b/packages/typespec-python/test/unbranded/generated/parameters-spread/parameters/spread/_utils/model_base.py @@ -23,7 +23,6 @@ from corehttp.utils import CaseInsensitiveEnumMeta from corehttp.runtime.pipeline import PipelineResponse from corehttp.serialization import _Null -from corehttp.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -935,13 +934,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -951,10 +950,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/unbranded/generated/parameters-spread/pyproject.toml b/packages/typespec-python/test/unbranded/generated/parameters-spread/pyproject.toml index e344062a478..94f298f00fa 100644 --- a/packages/typespec-python/test/unbranded/generated/parameters-spread/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/parameters-spread/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -9,7 +9,7 @@ authors = [ { name = "" }, ] description = " Parameters Spread Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -20,7 +20,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" @@ -41,6 +40,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "parameters", ] diff --git a/packages/typespec-python/test/unbranded/generated/payload-content-negotiation/payload/contentnegotiation/_utils/model_base.py b/packages/typespec-python/test/unbranded/generated/payload-content-negotiation/payload/contentnegotiation/_utils/model_base.py index e880ccde9b8..e69ff2ca36d 100644 --- a/packages/typespec-python/test/unbranded/generated/payload-content-negotiation/payload/contentnegotiation/_utils/model_base.py +++ b/packages/typespec-python/test/unbranded/generated/payload-content-negotiation/payload/contentnegotiation/_utils/model_base.py @@ -23,7 +23,6 @@ from corehttp.utils import CaseInsensitiveEnumMeta from corehttp.runtime.pipeline import PipelineResponse from corehttp.serialization import _Null -from corehttp.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -935,13 +934,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -951,10 +950,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/unbranded/generated/payload-content-negotiation/pyproject.toml b/packages/typespec-python/test/unbranded/generated/payload-content-negotiation/pyproject.toml index 8e0499c922c..78b17705824 100644 --- a/packages/typespec-python/test/unbranded/generated/payload-content-negotiation/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/payload-content-negotiation/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -9,7 +9,7 @@ authors = [ { name = "" }, ] description = " Payload Contentnegotiation Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -20,7 +20,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" @@ -41,6 +40,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "payload", ] diff --git a/packages/typespec-python/test/unbranded/generated/payload-json-merge-patch/payload/jsonmergepatch/_utils/model_base.py b/packages/typespec-python/test/unbranded/generated/payload-json-merge-patch/payload/jsonmergepatch/_utils/model_base.py index e880ccde9b8..e69ff2ca36d 100644 --- a/packages/typespec-python/test/unbranded/generated/payload-json-merge-patch/payload/jsonmergepatch/_utils/model_base.py +++ b/packages/typespec-python/test/unbranded/generated/payload-json-merge-patch/payload/jsonmergepatch/_utils/model_base.py @@ -23,7 +23,6 @@ from corehttp.utils import CaseInsensitiveEnumMeta from corehttp.runtime.pipeline import PipelineResponse from corehttp.serialization import _Null -from corehttp.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -935,13 +934,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -951,10 +950,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/unbranded/generated/payload-json-merge-patch/pyproject.toml b/packages/typespec-python/test/unbranded/generated/payload-json-merge-patch/pyproject.toml index f47aad416f6..ee986bac234 100644 --- a/packages/typespec-python/test/unbranded/generated/payload-json-merge-patch/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/payload-json-merge-patch/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -9,7 +9,7 @@ authors = [ { name = "" }, ] description = " Payload Jsonmergepatch Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -20,7 +20,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" @@ -41,6 +40,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "payload", ] diff --git a/packages/typespec-python/test/unbranded/generated/payload-media-type/payload/mediatype/_utils/model_base.py b/packages/typespec-python/test/unbranded/generated/payload-media-type/payload/mediatype/_utils/model_base.py index e880ccde9b8..e69ff2ca36d 100644 --- a/packages/typespec-python/test/unbranded/generated/payload-media-type/payload/mediatype/_utils/model_base.py +++ b/packages/typespec-python/test/unbranded/generated/payload-media-type/payload/mediatype/_utils/model_base.py @@ -23,7 +23,6 @@ from corehttp.utils import CaseInsensitiveEnumMeta from corehttp.runtime.pipeline import PipelineResponse from corehttp.serialization import _Null -from corehttp.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -935,13 +934,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -951,10 +950,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/unbranded/generated/payload-media-type/pyproject.toml b/packages/typespec-python/test/unbranded/generated/payload-media-type/pyproject.toml index 4f0cc2bd652..06b12d8c2c8 100644 --- a/packages/typespec-python/test/unbranded/generated/payload-media-type/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/payload-media-type/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -9,7 +9,7 @@ authors = [ { name = "" }, ] description = " Payload Mediatype Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -20,7 +20,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" @@ -41,6 +40,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "payload", ] diff --git a/packages/typespec-python/test/unbranded/generated/payload-multipart/payload/multipart/_utils/model_base.py b/packages/typespec-python/test/unbranded/generated/payload-multipart/payload/multipart/_utils/model_base.py index e880ccde9b8..e69ff2ca36d 100644 --- a/packages/typespec-python/test/unbranded/generated/payload-multipart/payload/multipart/_utils/model_base.py +++ b/packages/typespec-python/test/unbranded/generated/payload-multipart/payload/multipart/_utils/model_base.py @@ -23,7 +23,6 @@ from corehttp.utils import CaseInsensitiveEnumMeta from corehttp.runtime.pipeline import PipelineResponse from corehttp.serialization import _Null -from corehttp.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -935,13 +934,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -951,10 +950,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/unbranded/generated/payload-multipart/pyproject.toml b/packages/typespec-python/test/unbranded/generated/payload-multipart/pyproject.toml index d0936872f08..53a9096a64f 100644 --- a/packages/typespec-python/test/unbranded/generated/payload-multipart/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/payload-multipart/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -9,7 +9,7 @@ authors = [ { name = "" }, ] description = " Payload Multipart Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -20,7 +20,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" @@ -41,6 +40,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "payload", ] diff --git a/packages/typespec-python/test/unbranded/generated/payload-pageable/payload/pageable/_utils/model_base.py b/packages/typespec-python/test/unbranded/generated/payload-pageable/payload/pageable/_utils/model_base.py index e880ccde9b8..e69ff2ca36d 100644 --- a/packages/typespec-python/test/unbranded/generated/payload-pageable/payload/pageable/_utils/model_base.py +++ b/packages/typespec-python/test/unbranded/generated/payload-pageable/payload/pageable/_utils/model_base.py @@ -23,7 +23,6 @@ from corehttp.utils import CaseInsensitiveEnumMeta from corehttp.runtime.pipeline import PipelineResponse from corehttp.serialization import _Null -from corehttp.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -935,13 +934,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -951,10 +950,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/unbranded/generated/payload-pageable/pyproject.toml b/packages/typespec-python/test/unbranded/generated/payload-pageable/pyproject.toml index 77fde8e4304..8cad1628d26 100644 --- a/packages/typespec-python/test/unbranded/generated/payload-pageable/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/payload-pageable/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -9,7 +9,7 @@ authors = [ { name = "" }, ] description = " Payload Pageable Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -20,7 +20,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" @@ -41,6 +40,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "payload", ] diff --git a/packages/typespec-python/test/unbranded/generated/payload-xml/payload/xml/_utils/model_base.py b/packages/typespec-python/test/unbranded/generated/payload-xml/payload/xml/_utils/model_base.py index e880ccde9b8..e69ff2ca36d 100644 --- a/packages/typespec-python/test/unbranded/generated/payload-xml/payload/xml/_utils/model_base.py +++ b/packages/typespec-python/test/unbranded/generated/payload-xml/payload/xml/_utils/model_base.py @@ -23,7 +23,6 @@ from corehttp.utils import CaseInsensitiveEnumMeta from corehttp.runtime.pipeline import PipelineResponse from corehttp.serialization import _Null -from corehttp.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -935,13 +934,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -951,10 +950,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/unbranded/generated/payload-xml/pyproject.toml b/packages/typespec-python/test/unbranded/generated/payload-xml/pyproject.toml index b992fdda2ec..e322970c669 100644 --- a/packages/typespec-python/test/unbranded/generated/payload-xml/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/payload-xml/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -9,7 +9,7 @@ authors = [ { name = "" }, ] description = " Payload Xml Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -20,7 +20,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" @@ -41,6 +40,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "payload", ] diff --git a/packages/typespec-python/test/unbranded/generated/response-status-code-range/pyproject.toml b/packages/typespec-python/test/unbranded/generated/response-status-code-range/pyproject.toml index ceaf88b5c47..736cc50dce7 100644 --- a/packages/typespec-python/test/unbranded/generated/response-status-code-range/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/response-status-code-range/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -9,7 +9,7 @@ authors = [ { name = "" }, ] description = " Response Statuscoderange Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -20,7 +20,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" @@ -41,6 +40,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "response", ] diff --git a/packages/typespec-python/test/unbranded/generated/response-status-code-range/response/statuscoderange/_operations/_operations.py b/packages/typespec-python/test/unbranded/generated/response-status-code-range/response/statuscoderange/_operations/_operations.py index 8b7c820c704..a41ccae8907 100644 --- a/packages/typespec-python/test/unbranded/generated/response-status-code-range/response/statuscoderange/_operations/_operations.py +++ b/packages/typespec-python/test/unbranded/generated/response-status-code-range/response/statuscoderange/_operations/_operations.py @@ -104,9 +104,9 @@ def error_response_status_code_in_range( # pylint: disable=inconsistent-return- map_error(status_code=response.status_code, response=response, error_map=error_map) error = None if 494 <= response.status_code <= 499: - error = _failsafe_deserialize(_models.ErrorInRange, response) + error = _failsafe_deserialize(_models.ErrorInRange, response.json()) else: - error = _failsafe_deserialize(_models.DefaultError, response) + error = _failsafe_deserialize(_models.DefaultError, response.json()) raise HttpResponseError(response=response, model=error) if cls: @@ -147,10 +147,10 @@ def error_response_status_code404(self, **kwargs: Any) -> None: # pylint: disab map_error(status_code=response.status_code, response=response, error_map=error_map) error = None if response.status_code == 404: - error = _failsafe_deserialize(_models.NotFoundError, response) + error = _failsafe_deserialize(_models.NotFoundError, response.json()) raise ResourceNotFoundError(response=response, model=error) if 400 <= response.status_code <= 499: - error = _failsafe_deserialize(_models.Standard4XXError, response) + error = _failsafe_deserialize(_models.Standard4XXError, response.json()) raise HttpResponseError(response=response, model=error) if cls: diff --git a/packages/typespec-python/test/unbranded/generated/response-status-code-range/response/statuscoderange/_utils/model_base.py b/packages/typespec-python/test/unbranded/generated/response-status-code-range/response/statuscoderange/_utils/model_base.py index e880ccde9b8..e69ff2ca36d 100644 --- a/packages/typespec-python/test/unbranded/generated/response-status-code-range/response/statuscoderange/_utils/model_base.py +++ b/packages/typespec-python/test/unbranded/generated/response-status-code-range/response/statuscoderange/_utils/model_base.py @@ -23,7 +23,6 @@ from corehttp.utils import CaseInsensitiveEnumMeta from corehttp.runtime.pipeline import PipelineResponse from corehttp.serialization import _Null -from corehttp.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -935,13 +934,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -951,10 +950,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/unbranded/generated/response-status-code-range/response/statuscoderange/aio/_operations/_operations.py b/packages/typespec-python/test/unbranded/generated/response-status-code-range/response/statuscoderange/aio/_operations/_operations.py index 8504a0bcaa3..22ea7c88e1d 100644 --- a/packages/typespec-python/test/unbranded/generated/response-status-code-range/response/statuscoderange/aio/_operations/_operations.py +++ b/packages/typespec-python/test/unbranded/generated/response-status-code-range/response/statuscoderange/aio/_operations/_operations.py @@ -71,9 +71,9 @@ async def error_response_status_code_in_range(self, **kwargs: Any) -> None: map_error(status_code=response.status_code, response=response, error_map=error_map) error = None if 494 <= response.status_code <= 499: - error = _failsafe_deserialize(_models.ErrorInRange, response) + error = _failsafe_deserialize(_models.ErrorInRange, response.json()) else: - error = _failsafe_deserialize(_models.DefaultError, response) + error = _failsafe_deserialize(_models.DefaultError, response.json()) raise HttpResponseError(response=response, model=error) if cls: @@ -116,10 +116,10 @@ async def error_response_status_code404(self, **kwargs: Any) -> None: map_error(status_code=response.status_code, response=response, error_map=error_map) error = None if response.status_code == 404: - error = _failsafe_deserialize(_models.NotFoundError, response) + error = _failsafe_deserialize(_models.NotFoundError, response.json()) raise ResourceNotFoundError(response=response, model=error) if 400 <= response.status_code <= 499: - error = _failsafe_deserialize(_models.Standard4XXError, response) + error = _failsafe_deserialize(_models.Standard4XXError, response.json()) raise HttpResponseError(response=response, model=error) if cls: diff --git a/packages/typespec-python/test/unbranded/generated/routes/pyproject.toml b/packages/typespec-python/test/unbranded/generated/routes/pyproject.toml index b1c7162019c..7e1e649e72b 100644 --- a/packages/typespec-python/test/unbranded/generated/routes/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/routes/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -9,7 +9,7 @@ authors = [ { name = "" }, ] description = " Routes Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -20,7 +20,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" @@ -41,6 +40,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", ] [tool.setuptools.package-data] diff --git a/packages/typespec-python/test/unbranded/generated/routes/routes/_utils/model_base.py b/packages/typespec-python/test/unbranded/generated/routes/routes/_utils/model_base.py index e880ccde9b8..e69ff2ca36d 100644 --- a/packages/typespec-python/test/unbranded/generated/routes/routes/_utils/model_base.py +++ b/packages/typespec-python/test/unbranded/generated/routes/routes/_utils/model_base.py @@ -23,7 +23,6 @@ from corehttp.utils import CaseInsensitiveEnumMeta from corehttp.runtime.pipeline import PipelineResponse from corehttp.serialization import _Null -from corehttp.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -935,13 +934,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -951,10 +950,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/unbranded/generated/serialization-encoded-name-json/pyproject.toml b/packages/typespec-python/test/unbranded/generated/serialization-encoded-name-json/pyproject.toml index 8d735634fa8..44904af2ef9 100644 --- a/packages/typespec-python/test/unbranded/generated/serialization-encoded-name-json/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/serialization-encoded-name-json/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -9,7 +9,7 @@ authors = [ { name = "" }, ] description = " Serialization Encodedname Json Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -20,7 +20,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" @@ -41,6 +40,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "serialization", "serialization.encodedname", ] diff --git a/packages/typespec-python/test/unbranded/generated/serialization-encoded-name-json/serialization/encodedname/json/_utils/model_base.py b/packages/typespec-python/test/unbranded/generated/serialization-encoded-name-json/serialization/encodedname/json/_utils/model_base.py index e880ccde9b8..e69ff2ca36d 100644 --- a/packages/typespec-python/test/unbranded/generated/serialization-encoded-name-json/serialization/encodedname/json/_utils/model_base.py +++ b/packages/typespec-python/test/unbranded/generated/serialization-encoded-name-json/serialization/encodedname/json/_utils/model_base.py @@ -23,7 +23,6 @@ from corehttp.utils import CaseInsensitiveEnumMeta from corehttp.runtime.pipeline import PipelineResponse from corehttp.serialization import _Null -from corehttp.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -935,13 +934,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -951,10 +950,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/unbranded/generated/server-endpoint-not-defined/pyproject.toml b/packages/typespec-python/test/unbranded/generated/server-endpoint-not-defined/pyproject.toml index 5d99ef10248..603a22ec0ae 100644 --- a/packages/typespec-python/test/unbranded/generated/server-endpoint-not-defined/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/server-endpoint-not-defined/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -9,7 +9,7 @@ authors = [ { name = "" }, ] description = " Server Endpoint Notdefined Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -20,7 +20,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" @@ -41,6 +40,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "server", "server.endpoint", ] diff --git a/packages/typespec-python/test/unbranded/generated/server-endpoint-not-defined/server/endpoint/notdefined/_utils/model_base.py b/packages/typespec-python/test/unbranded/generated/server-endpoint-not-defined/server/endpoint/notdefined/_utils/model_base.py index e880ccde9b8..e69ff2ca36d 100644 --- a/packages/typespec-python/test/unbranded/generated/server-endpoint-not-defined/server/endpoint/notdefined/_utils/model_base.py +++ b/packages/typespec-python/test/unbranded/generated/server-endpoint-not-defined/server/endpoint/notdefined/_utils/model_base.py @@ -23,7 +23,6 @@ from corehttp.utils import CaseInsensitiveEnumMeta from corehttp.runtime.pipeline import PipelineResponse from corehttp.serialization import _Null -from corehttp.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -935,13 +934,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -951,10 +950,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/unbranded/generated/server-path-multiple/pyproject.toml b/packages/typespec-python/test/unbranded/generated/server-path-multiple/pyproject.toml index 3d0d27a1230..91cea51677f 100644 --- a/packages/typespec-python/test/unbranded/generated/server-path-multiple/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/server-path-multiple/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -9,7 +9,7 @@ authors = [ { name = "" }, ] description = " Server Path Multiple Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -20,7 +20,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" @@ -41,6 +40,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "server", "server.path", ] diff --git a/packages/typespec-python/test/unbranded/generated/server-path-multiple/server/path/multiple/_utils/model_base.py b/packages/typespec-python/test/unbranded/generated/server-path-multiple/server/path/multiple/_utils/model_base.py index e880ccde9b8..e69ff2ca36d 100644 --- a/packages/typespec-python/test/unbranded/generated/server-path-multiple/server/path/multiple/_utils/model_base.py +++ b/packages/typespec-python/test/unbranded/generated/server-path-multiple/server/path/multiple/_utils/model_base.py @@ -23,7 +23,6 @@ from corehttp.utils import CaseInsensitiveEnumMeta from corehttp.runtime.pipeline import PipelineResponse from corehttp.serialization import _Null -from corehttp.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -935,13 +934,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -951,10 +950,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/unbranded/generated/server-path-single/pyproject.toml b/packages/typespec-python/test/unbranded/generated/server-path-single/pyproject.toml index 80f3b9546bf..f6429fa52e6 100644 --- a/packages/typespec-python/test/unbranded/generated/server-path-single/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/server-path-single/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -9,7 +9,7 @@ authors = [ { name = "" }, ] description = " Server Path Single Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -20,7 +20,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" @@ -41,6 +40,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "server", "server.path", ] diff --git a/packages/typespec-python/test/unbranded/generated/server-path-single/server/path/single/_utils/model_base.py b/packages/typespec-python/test/unbranded/generated/server-path-single/server/path/single/_utils/model_base.py index e880ccde9b8..e69ff2ca36d 100644 --- a/packages/typespec-python/test/unbranded/generated/server-path-single/server/path/single/_utils/model_base.py +++ b/packages/typespec-python/test/unbranded/generated/server-path-single/server/path/single/_utils/model_base.py @@ -23,7 +23,6 @@ from corehttp.utils import CaseInsensitiveEnumMeta from corehttp.runtime.pipeline import PipelineResponse from corehttp.serialization import _Null -from corehttp.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -935,13 +934,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -951,10 +950,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/unbranded/generated/server-versions-not-versioned/pyproject.toml b/packages/typespec-python/test/unbranded/generated/server-versions-not-versioned/pyproject.toml index 2f04ce6964b..84144e568ed 100644 --- a/packages/typespec-python/test/unbranded/generated/server-versions-not-versioned/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/server-versions-not-versioned/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -9,7 +9,7 @@ authors = [ { name = "" }, ] description = " Server Versions Notversioned Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -20,7 +20,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" @@ -41,6 +40,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "server", "server.versions", ] diff --git a/packages/typespec-python/test/unbranded/generated/server-versions-not-versioned/server/versions/notversioned/_utils/model_base.py b/packages/typespec-python/test/unbranded/generated/server-versions-not-versioned/server/versions/notversioned/_utils/model_base.py index e880ccde9b8..e69ff2ca36d 100644 --- a/packages/typespec-python/test/unbranded/generated/server-versions-not-versioned/server/versions/notversioned/_utils/model_base.py +++ b/packages/typespec-python/test/unbranded/generated/server-versions-not-versioned/server/versions/notversioned/_utils/model_base.py @@ -23,7 +23,6 @@ from corehttp.utils import CaseInsensitiveEnumMeta from corehttp.runtime.pipeline import PipelineResponse from corehttp.serialization import _Null -from corehttp.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -935,13 +934,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -951,10 +950,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/unbranded/generated/server-versions-versioned/pyproject.toml b/packages/typespec-python/test/unbranded/generated/server-versions-versioned/pyproject.toml index 0a4cf05e236..85c133ce407 100644 --- a/packages/typespec-python/test/unbranded/generated/server-versions-versioned/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/server-versions-versioned/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -9,7 +9,7 @@ authors = [ { name = "" }, ] description = " Server Versions Versioned Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -20,7 +20,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" @@ -41,6 +40,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "server", "server.versions", ] diff --git a/packages/typespec-python/test/unbranded/generated/server-versions-versioned/server/versions/versioned/_utils/model_base.py b/packages/typespec-python/test/unbranded/generated/server-versions-versioned/server/versions/versioned/_utils/model_base.py index e880ccde9b8..e69ff2ca36d 100644 --- a/packages/typespec-python/test/unbranded/generated/server-versions-versioned/server/versions/versioned/_utils/model_base.py +++ b/packages/typespec-python/test/unbranded/generated/server-versions-versioned/server/versions/versioned/_utils/model_base.py @@ -23,7 +23,6 @@ from corehttp.utils import CaseInsensitiveEnumMeta from corehttp.runtime.pipeline import PipelineResponse from corehttp.serialization import _Null -from corehttp.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -935,13 +934,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -951,10 +950,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/unbranded/generated/setuppy-authentication-union/setuppy/authentication/union/_utils/model_base.py b/packages/typespec-python/test/unbranded/generated/setuppy-authentication-union/setuppy/authentication/union/_utils/model_base.py index e880ccde9b8..e69ff2ca36d 100644 --- a/packages/typespec-python/test/unbranded/generated/setuppy-authentication-union/setuppy/authentication/union/_utils/model_base.py +++ b/packages/typespec-python/test/unbranded/generated/setuppy-authentication-union/setuppy/authentication/union/_utils/model_base.py @@ -23,7 +23,6 @@ from corehttp.utils import CaseInsensitiveEnumMeta from corehttp.runtime.pipeline import PipelineResponse from corehttp.serialization import _Null -from corehttp.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -935,13 +934,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -951,10 +950,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/unbranded/generated/special-headers-conditional-request/pyproject.toml b/packages/typespec-python/test/unbranded/generated/special-headers-conditional-request/pyproject.toml index 8d881f88f90..60950931cfe 100644 --- a/packages/typespec-python/test/unbranded/generated/special-headers-conditional-request/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/special-headers-conditional-request/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -9,7 +9,7 @@ authors = [ { name = "" }, ] description = " Specialheaders Conditionalrequest Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -20,7 +20,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" @@ -41,6 +40,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "specialheaders", ] diff --git a/packages/typespec-python/test/unbranded/generated/special-headers-conditional-request/specialheaders/conditionalrequest/_utils/model_base.py b/packages/typespec-python/test/unbranded/generated/special-headers-conditional-request/specialheaders/conditionalrequest/_utils/model_base.py index e880ccde9b8..e69ff2ca36d 100644 --- a/packages/typespec-python/test/unbranded/generated/special-headers-conditional-request/specialheaders/conditionalrequest/_utils/model_base.py +++ b/packages/typespec-python/test/unbranded/generated/special-headers-conditional-request/specialheaders/conditionalrequest/_utils/model_base.py @@ -23,7 +23,6 @@ from corehttp.utils import CaseInsensitiveEnumMeta from corehttp.runtime.pipeline import PipelineResponse from corehttp.serialization import _Null -from corehttp.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -935,13 +934,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -951,10 +950,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/unbranded/generated/special-headers-repeatability/pyproject.toml b/packages/typespec-python/test/unbranded/generated/special-headers-repeatability/pyproject.toml index 61154059ae8..9ad71a2fa63 100644 --- a/packages/typespec-python/test/unbranded/generated/special-headers-repeatability/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/special-headers-repeatability/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -9,7 +9,7 @@ authors = [ { name = "" }, ] description = " Specialheaders Repeatability Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -20,7 +20,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" @@ -41,6 +40,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "specialheaders", ] diff --git a/packages/typespec-python/test/unbranded/generated/special-headers-repeatability/specialheaders/repeatability/_utils/model_base.py b/packages/typespec-python/test/unbranded/generated/special-headers-repeatability/specialheaders/repeatability/_utils/model_base.py index e880ccde9b8..e69ff2ca36d 100644 --- a/packages/typespec-python/test/unbranded/generated/special-headers-repeatability/specialheaders/repeatability/_utils/model_base.py +++ b/packages/typespec-python/test/unbranded/generated/special-headers-repeatability/specialheaders/repeatability/_utils/model_base.py @@ -23,7 +23,6 @@ from corehttp.utils import CaseInsensitiveEnumMeta from corehttp.runtime.pipeline import PipelineResponse from corehttp.serialization import _Null -from corehttp.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -935,13 +934,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -951,10 +950,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/unbranded/generated/special-words/pyproject.toml b/packages/typespec-python/test/unbranded/generated/special-words/pyproject.toml index d79a5420d67..5586882eff3 100644 --- a/packages/typespec-python/test/unbranded/generated/special-words/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/special-words/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -9,7 +9,7 @@ authors = [ { name = "" }, ] description = " Specialwords Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -20,7 +20,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" @@ -41,6 +40,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", ] [tool.setuptools.package-data] diff --git a/packages/typespec-python/test/unbranded/generated/special-words/specialwords/_utils/model_base.py b/packages/typespec-python/test/unbranded/generated/special-words/specialwords/_utils/model_base.py index e880ccde9b8..e69ff2ca36d 100644 --- a/packages/typespec-python/test/unbranded/generated/special-words/specialwords/_utils/model_base.py +++ b/packages/typespec-python/test/unbranded/generated/special-words/specialwords/_utils/model_base.py @@ -23,7 +23,6 @@ from corehttp.utils import CaseInsensitiveEnumMeta from corehttp.runtime.pipeline import PipelineResponse from corehttp.serialization import _Null -from corehttp.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -935,13 +934,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -951,10 +950,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/unbranded/generated/streaming-jsonl/pyproject.toml b/packages/typespec-python/test/unbranded/generated/streaming-jsonl/pyproject.toml index 4d38a74932d..3a3e8bfdd0a 100644 --- a/packages/typespec-python/test/unbranded/generated/streaming-jsonl/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/streaming-jsonl/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -9,7 +9,7 @@ authors = [ { name = "" }, ] description = " Streaming Jsonl Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -20,7 +20,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" @@ -41,6 +40,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "streaming", ] diff --git a/packages/typespec-python/test/unbranded/generated/streaming-jsonl/streaming/jsonl/_utils/model_base.py b/packages/typespec-python/test/unbranded/generated/streaming-jsonl/streaming/jsonl/_utils/model_base.py index e880ccde9b8..e69ff2ca36d 100644 --- a/packages/typespec-python/test/unbranded/generated/streaming-jsonl/streaming/jsonl/_utils/model_base.py +++ b/packages/typespec-python/test/unbranded/generated/streaming-jsonl/streaming/jsonl/_utils/model_base.py @@ -23,7 +23,6 @@ from corehttp.utils import CaseInsensitiveEnumMeta from corehttp.runtime.pipeline import PipelineResponse from corehttp.serialization import _Null -from corehttp.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -935,13 +934,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -951,10 +950,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/unbranded/generated/typetest-array/pyproject.toml b/packages/typespec-python/test/unbranded/generated/typetest-array/pyproject.toml index e4f8583e0c8..6e81e945094 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-array/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/typetest-array/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -9,7 +9,7 @@ authors = [ { name = "" }, ] description = " Typetest Array Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -20,7 +20,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" @@ -41,6 +40,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "typetest", ] diff --git a/packages/typespec-python/test/unbranded/generated/typetest-array/typetest/array/_utils/model_base.py b/packages/typespec-python/test/unbranded/generated/typetest-array/typetest/array/_utils/model_base.py index e880ccde9b8..e69ff2ca36d 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-array/typetest/array/_utils/model_base.py +++ b/packages/typespec-python/test/unbranded/generated/typetest-array/typetest/array/_utils/model_base.py @@ -23,7 +23,6 @@ from corehttp.utils import CaseInsensitiveEnumMeta from corehttp.runtime.pipeline import PipelineResponse from corehttp.serialization import _Null -from corehttp.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -935,13 +934,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -951,10 +950,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/unbranded/generated/typetest-dictionary/pyproject.toml b/packages/typespec-python/test/unbranded/generated/typetest-dictionary/pyproject.toml index f8c6a7cfe83..ecda89bd78e 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-dictionary/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/typetest-dictionary/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -9,7 +9,7 @@ authors = [ { name = "" }, ] description = " Typetest Dictionary Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -20,7 +20,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" @@ -41,6 +40,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "typetest", ] diff --git a/packages/typespec-python/test/unbranded/generated/typetest-dictionary/typetest/dictionary/_utils/model_base.py b/packages/typespec-python/test/unbranded/generated/typetest-dictionary/typetest/dictionary/_utils/model_base.py index e880ccde9b8..e69ff2ca36d 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-dictionary/typetest/dictionary/_utils/model_base.py +++ b/packages/typespec-python/test/unbranded/generated/typetest-dictionary/typetest/dictionary/_utils/model_base.py @@ -23,7 +23,6 @@ from corehttp.utils import CaseInsensitiveEnumMeta from corehttp.runtime.pipeline import PipelineResponse from corehttp.serialization import _Null -from corehttp.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -935,13 +934,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -951,10 +950,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/unbranded/generated/typetest-enum-extensible/pyproject.toml b/packages/typespec-python/test/unbranded/generated/typetest-enum-extensible/pyproject.toml index 663690d1c5d..0b37796f564 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-enum-extensible/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/typetest-enum-extensible/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -9,7 +9,7 @@ authors = [ { name = "" }, ] description = " Typetest Enum Extensible Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -20,7 +20,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" @@ -41,6 +40,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "typetest", "typetest.enum", ] diff --git a/packages/typespec-python/test/unbranded/generated/typetest-enum-extensible/typetest/enum/extensible/_utils/model_base.py b/packages/typespec-python/test/unbranded/generated/typetest-enum-extensible/typetest/enum/extensible/_utils/model_base.py index e880ccde9b8..e69ff2ca36d 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-enum-extensible/typetest/enum/extensible/_utils/model_base.py +++ b/packages/typespec-python/test/unbranded/generated/typetest-enum-extensible/typetest/enum/extensible/_utils/model_base.py @@ -23,7 +23,6 @@ from corehttp.utils import CaseInsensitiveEnumMeta from corehttp.runtime.pipeline import PipelineResponse from corehttp.serialization import _Null -from corehttp.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -935,13 +934,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -951,10 +950,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/unbranded/generated/typetest-enum-fixed/pyproject.toml b/packages/typespec-python/test/unbranded/generated/typetest-enum-fixed/pyproject.toml index 555e2c006d0..e189b50c414 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-enum-fixed/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/typetest-enum-fixed/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -9,7 +9,7 @@ authors = [ { name = "" }, ] description = " Typetest Enum Fixed Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -20,7 +20,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" @@ -41,6 +40,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "typetest", "typetest.enum", ] diff --git a/packages/typespec-python/test/unbranded/generated/typetest-enum-fixed/typetest/enum/fixed/_utils/model_base.py b/packages/typespec-python/test/unbranded/generated/typetest-enum-fixed/typetest/enum/fixed/_utils/model_base.py index e880ccde9b8..e69ff2ca36d 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-enum-fixed/typetest/enum/fixed/_utils/model_base.py +++ b/packages/typespec-python/test/unbranded/generated/typetest-enum-fixed/typetest/enum/fixed/_utils/model_base.py @@ -23,7 +23,6 @@ from corehttp.utils import CaseInsensitiveEnumMeta from corehttp.runtime.pipeline import PipelineResponse from corehttp.serialization import _Null -from corehttp.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -935,13 +934,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -951,10 +950,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/unbranded/generated/typetest-model-empty/pyproject.toml b/packages/typespec-python/test/unbranded/generated/typetest-model-empty/pyproject.toml index 009c348d171..3b7d7889bf8 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-model-empty/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/typetest-model-empty/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -9,7 +9,7 @@ authors = [ { name = "" }, ] description = " Typetest Model Empty Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -20,7 +20,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" @@ -41,6 +40,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "typetest", "typetest.model", ] diff --git a/packages/typespec-python/test/unbranded/generated/typetest-model-empty/typetest/model/empty/_utils/model_base.py b/packages/typespec-python/test/unbranded/generated/typetest-model-empty/typetest/model/empty/_utils/model_base.py index e880ccde9b8..e69ff2ca36d 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-model-empty/typetest/model/empty/_utils/model_base.py +++ b/packages/typespec-python/test/unbranded/generated/typetest-model-empty/typetest/model/empty/_utils/model_base.py @@ -23,7 +23,6 @@ from corehttp.utils import CaseInsensitiveEnumMeta from corehttp.runtime.pipeline import PipelineResponse from corehttp.serialization import _Null -from corehttp.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -935,13 +934,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -951,10 +950,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/unbranded/generated/typetest-model-enumdiscriminator/pyproject.toml b/packages/typespec-python/test/unbranded/generated/typetest-model-enumdiscriminator/pyproject.toml index f5b0cdf6d4b..1ebc822e1a7 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-model-enumdiscriminator/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/typetest-model-enumdiscriminator/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -9,7 +9,7 @@ authors = [ { name = "" }, ] description = " Typetest Model Enumdiscriminator Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -20,7 +20,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" @@ -41,6 +40,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "typetest", "typetest.model", ] diff --git a/packages/typespec-python/test/unbranded/generated/typetest-model-enumdiscriminator/typetest/model/enumdiscriminator/_utils/model_base.py b/packages/typespec-python/test/unbranded/generated/typetest-model-enumdiscriminator/typetest/model/enumdiscriminator/_utils/model_base.py index e880ccde9b8..e69ff2ca36d 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-model-enumdiscriminator/typetest/model/enumdiscriminator/_utils/model_base.py +++ b/packages/typespec-python/test/unbranded/generated/typetest-model-enumdiscriminator/typetest/model/enumdiscriminator/_utils/model_base.py @@ -23,7 +23,6 @@ from corehttp.utils import CaseInsensitiveEnumMeta from corehttp.runtime.pipeline import PipelineResponse from corehttp.serialization import _Null -from corehttp.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -935,13 +934,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -951,10 +950,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/unbranded/generated/typetest-model-nesteddiscriminator/pyproject.toml b/packages/typespec-python/test/unbranded/generated/typetest-model-nesteddiscriminator/pyproject.toml index 3a3d7474799..7783ee8e0fb 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-model-nesteddiscriminator/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/typetest-model-nesteddiscriminator/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -9,7 +9,7 @@ authors = [ { name = "" }, ] description = " Typetest Model Nesteddiscriminator Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -20,7 +20,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" @@ -41,6 +40,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "typetest", "typetest.model", ] diff --git a/packages/typespec-python/test/unbranded/generated/typetest-model-nesteddiscriminator/typetest/model/nesteddiscriminator/_utils/model_base.py b/packages/typespec-python/test/unbranded/generated/typetest-model-nesteddiscriminator/typetest/model/nesteddiscriminator/_utils/model_base.py index e880ccde9b8..e69ff2ca36d 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-model-nesteddiscriminator/typetest/model/nesteddiscriminator/_utils/model_base.py +++ b/packages/typespec-python/test/unbranded/generated/typetest-model-nesteddiscriminator/typetest/model/nesteddiscriminator/_utils/model_base.py @@ -23,7 +23,6 @@ from corehttp.utils import CaseInsensitiveEnumMeta from corehttp.runtime.pipeline import PipelineResponse from corehttp.serialization import _Null -from corehttp.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -935,13 +934,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -951,10 +950,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/unbranded/generated/typetest-model-notdiscriminated/pyproject.toml b/packages/typespec-python/test/unbranded/generated/typetest-model-notdiscriminated/pyproject.toml index daebd32a944..a80a568047b 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-model-notdiscriminated/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/typetest-model-notdiscriminated/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -9,7 +9,7 @@ authors = [ { name = "" }, ] description = " Typetest Model Notdiscriminated Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -20,7 +20,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" @@ -41,6 +40,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "typetest", "typetest.model", ] diff --git a/packages/typespec-python/test/unbranded/generated/typetest-model-notdiscriminated/typetest/model/notdiscriminated/_utils/model_base.py b/packages/typespec-python/test/unbranded/generated/typetest-model-notdiscriminated/typetest/model/notdiscriminated/_utils/model_base.py index e880ccde9b8..e69ff2ca36d 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-model-notdiscriminated/typetest/model/notdiscriminated/_utils/model_base.py +++ b/packages/typespec-python/test/unbranded/generated/typetest-model-notdiscriminated/typetest/model/notdiscriminated/_utils/model_base.py @@ -23,7 +23,6 @@ from corehttp.utils import CaseInsensitiveEnumMeta from corehttp.runtime.pipeline import PipelineResponse from corehttp.serialization import _Null -from corehttp.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -935,13 +934,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -951,10 +950,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/unbranded/generated/typetest-model-recursive/pyproject.toml b/packages/typespec-python/test/unbranded/generated/typetest-model-recursive/pyproject.toml index f1067a364e0..e621e78ec94 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-model-recursive/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/typetest-model-recursive/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -9,7 +9,7 @@ authors = [ { name = "" }, ] description = " Typetest Model Recursive Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -20,7 +20,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" @@ -41,6 +40,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "typetest", "typetest.model", ] diff --git a/packages/typespec-python/test/unbranded/generated/typetest-model-recursive/typetest/model/recursive/_utils/model_base.py b/packages/typespec-python/test/unbranded/generated/typetest-model-recursive/typetest/model/recursive/_utils/model_base.py index e880ccde9b8..e69ff2ca36d 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-model-recursive/typetest/model/recursive/_utils/model_base.py +++ b/packages/typespec-python/test/unbranded/generated/typetest-model-recursive/typetest/model/recursive/_utils/model_base.py @@ -23,7 +23,6 @@ from corehttp.utils import CaseInsensitiveEnumMeta from corehttp.runtime.pipeline import PipelineResponse from corehttp.serialization import _Null -from corehttp.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -935,13 +934,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -951,10 +950,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/unbranded/generated/typetest-model-singlediscriminator/pyproject.toml b/packages/typespec-python/test/unbranded/generated/typetest-model-singlediscriminator/pyproject.toml index 97eb66df750..8f06a52ad6d 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-model-singlediscriminator/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/typetest-model-singlediscriminator/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -9,7 +9,7 @@ authors = [ { name = "" }, ] description = " Typetest Model Singlediscriminator Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -20,7 +20,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" @@ -41,6 +40,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "typetest", "typetest.model", ] diff --git a/packages/typespec-python/test/unbranded/generated/typetest-model-singlediscriminator/typetest/model/singlediscriminator/_utils/model_base.py b/packages/typespec-python/test/unbranded/generated/typetest-model-singlediscriminator/typetest/model/singlediscriminator/_utils/model_base.py index e880ccde9b8..e69ff2ca36d 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-model-singlediscriminator/typetest/model/singlediscriminator/_utils/model_base.py +++ b/packages/typespec-python/test/unbranded/generated/typetest-model-singlediscriminator/typetest/model/singlediscriminator/_utils/model_base.py @@ -23,7 +23,6 @@ from corehttp.utils import CaseInsensitiveEnumMeta from corehttp.runtime.pipeline import PipelineResponse from corehttp.serialization import _Null -from corehttp.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -935,13 +934,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -951,10 +950,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/unbranded/generated/typetest-model-usage/pyproject.toml b/packages/typespec-python/test/unbranded/generated/typetest-model-usage/pyproject.toml index 6f7e415dfa7..bb80d7ebf24 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-model-usage/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/typetest-model-usage/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -9,7 +9,7 @@ authors = [ { name = "" }, ] description = " Typetest Model Usage Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -20,7 +20,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" @@ -41,6 +40,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "typetest", "typetest.model", ] diff --git a/packages/typespec-python/test/unbranded/generated/typetest-model-usage/typetest/model/usage/_utils/model_base.py b/packages/typespec-python/test/unbranded/generated/typetest-model-usage/typetest/model/usage/_utils/model_base.py index e880ccde9b8..e69ff2ca36d 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-model-usage/typetest/model/usage/_utils/model_base.py +++ b/packages/typespec-python/test/unbranded/generated/typetest-model-usage/typetest/model/usage/_utils/model_base.py @@ -23,7 +23,6 @@ from corehttp.utils import CaseInsensitiveEnumMeta from corehttp.runtime.pipeline import PipelineResponse from corehttp.serialization import _Null -from corehttp.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -935,13 +934,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -951,10 +950,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/unbranded/generated/typetest-model-visibility/pyproject.toml b/packages/typespec-python/test/unbranded/generated/typetest-model-visibility/pyproject.toml index 9a694166b5b..e387f9ef107 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-model-visibility/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/typetest-model-visibility/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -9,7 +9,7 @@ authors = [ { name = "" }, ] description = " Typetest Model Visibility Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -20,7 +20,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" @@ -41,6 +40,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "typetest", "typetest.model", ] diff --git a/packages/typespec-python/test/unbranded/generated/typetest-model-visibility/typetest/model/visibility/_utils/model_base.py b/packages/typespec-python/test/unbranded/generated/typetest-model-visibility/typetest/model/visibility/_utils/model_base.py index e880ccde9b8..e69ff2ca36d 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-model-visibility/typetest/model/visibility/_utils/model_base.py +++ b/packages/typespec-python/test/unbranded/generated/typetest-model-visibility/typetest/model/visibility/_utils/model_base.py @@ -23,7 +23,6 @@ from corehttp.utils import CaseInsensitiveEnumMeta from corehttp.runtime.pipeline import PipelineResponse from corehttp.serialization import _Null -from corehttp.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -935,13 +934,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -951,10 +950,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/unbranded/generated/typetest-property-additionalproperties/pyproject.toml b/packages/typespec-python/test/unbranded/generated/typetest-property-additionalproperties/pyproject.toml index dc8cc82dc40..8cd7b1802ac 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-property-additionalproperties/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/typetest-property-additionalproperties/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -9,7 +9,7 @@ authors = [ { name = "" }, ] description = " Typetest Property Additionalproperties Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -20,7 +20,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" @@ -41,6 +40,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "typetest", "typetest.property", ] diff --git a/packages/typespec-python/test/unbranded/generated/typetest-property-additionalproperties/typetest/property/additionalproperties/_utils/model_base.py b/packages/typespec-python/test/unbranded/generated/typetest-property-additionalproperties/typetest/property/additionalproperties/_utils/model_base.py index e880ccde9b8..e69ff2ca36d 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-property-additionalproperties/typetest/property/additionalproperties/_utils/model_base.py +++ b/packages/typespec-python/test/unbranded/generated/typetest-property-additionalproperties/typetest/property/additionalproperties/_utils/model_base.py @@ -23,7 +23,6 @@ from corehttp.utils import CaseInsensitiveEnumMeta from corehttp.runtime.pipeline import PipelineResponse from corehttp.serialization import _Null -from corehttp.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -935,13 +934,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -951,10 +950,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/unbranded/generated/typetest-property-nullable/pyproject.toml b/packages/typespec-python/test/unbranded/generated/typetest-property-nullable/pyproject.toml index b7dea050a56..04555582a18 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-property-nullable/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/typetest-property-nullable/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -9,7 +9,7 @@ authors = [ { name = "" }, ] description = " Typetest Property Nullable Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -20,7 +20,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" @@ -41,6 +40,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "typetest", "typetest.property", ] diff --git a/packages/typespec-python/test/unbranded/generated/typetest-property-nullable/typetest/property/nullable/_utils/model_base.py b/packages/typespec-python/test/unbranded/generated/typetest-property-nullable/typetest/property/nullable/_utils/model_base.py index e880ccde9b8..e69ff2ca36d 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-property-nullable/typetest/property/nullable/_utils/model_base.py +++ b/packages/typespec-python/test/unbranded/generated/typetest-property-nullable/typetest/property/nullable/_utils/model_base.py @@ -23,7 +23,6 @@ from corehttp.utils import CaseInsensitiveEnumMeta from corehttp.runtime.pipeline import PipelineResponse from corehttp.serialization import _Null -from corehttp.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -935,13 +934,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -951,10 +950,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/unbranded/generated/typetest-property-optional/pyproject.toml b/packages/typespec-python/test/unbranded/generated/typetest-property-optional/pyproject.toml index 62d8786f7bb..5240ba45435 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-property-optional/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/typetest-property-optional/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -9,7 +9,7 @@ authors = [ { name = "" }, ] description = " Typetest Property Optional Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -20,7 +20,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" @@ -41,6 +40,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "typetest", "typetest.property", ] diff --git a/packages/typespec-python/test/unbranded/generated/typetest-property-optional/typetest/property/optional/_utils/model_base.py b/packages/typespec-python/test/unbranded/generated/typetest-property-optional/typetest/property/optional/_utils/model_base.py index e880ccde9b8..e69ff2ca36d 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-property-optional/typetest/property/optional/_utils/model_base.py +++ b/packages/typespec-python/test/unbranded/generated/typetest-property-optional/typetest/property/optional/_utils/model_base.py @@ -23,7 +23,6 @@ from corehttp.utils import CaseInsensitiveEnumMeta from corehttp.runtime.pipeline import PipelineResponse from corehttp.serialization import _Null -from corehttp.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -935,13 +934,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -951,10 +950,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/unbranded/generated/typetest-property-valuetypes/pyproject.toml b/packages/typespec-python/test/unbranded/generated/typetest-property-valuetypes/pyproject.toml index deb7d5f08a2..68851db66ac 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-property-valuetypes/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/typetest-property-valuetypes/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -9,7 +9,7 @@ authors = [ { name = "" }, ] description = " Typetest Property Valuetypes Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -20,7 +20,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" @@ -41,6 +40,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "typetest", "typetest.property", ] diff --git a/packages/typespec-python/test/unbranded/generated/typetest-property-valuetypes/typetest/property/valuetypes/_utils/model_base.py b/packages/typespec-python/test/unbranded/generated/typetest-property-valuetypes/typetest/property/valuetypes/_utils/model_base.py index e880ccde9b8..e69ff2ca36d 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-property-valuetypes/typetest/property/valuetypes/_utils/model_base.py +++ b/packages/typespec-python/test/unbranded/generated/typetest-property-valuetypes/typetest/property/valuetypes/_utils/model_base.py @@ -23,7 +23,6 @@ from corehttp.utils import CaseInsensitiveEnumMeta from corehttp.runtime.pipeline import PipelineResponse from corehttp.serialization import _Null -from corehttp.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -935,13 +934,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -951,10 +950,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/unbranded/generated/typetest-scalar/pyproject.toml b/packages/typespec-python/test/unbranded/generated/typetest-scalar/pyproject.toml index 2188fc5cc56..c613b0cccd3 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-scalar/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/typetest-scalar/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -9,7 +9,7 @@ authors = [ { name = "" }, ] description = " Typetest Scalar Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -20,7 +20,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" @@ -41,6 +40,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "typetest", ] diff --git a/packages/typespec-python/test/unbranded/generated/typetest-scalar/typetest/scalar/_utils/model_base.py b/packages/typespec-python/test/unbranded/generated/typetest-scalar/typetest/scalar/_utils/model_base.py index e880ccde9b8..e69ff2ca36d 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-scalar/typetest/scalar/_utils/model_base.py +++ b/packages/typespec-python/test/unbranded/generated/typetest-scalar/typetest/scalar/_utils/model_base.py @@ -23,7 +23,6 @@ from corehttp.utils import CaseInsensitiveEnumMeta from corehttp.runtime.pipeline import PipelineResponse from corehttp.serialization import _Null -from corehttp.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -935,13 +934,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -951,10 +950,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/unbranded/generated/typetest-union/pyproject.toml b/packages/typespec-python/test/unbranded/generated/typetest-union/pyproject.toml index 2512a156e4c..3a01447a3b9 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-union/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/typetest-union/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -9,7 +9,7 @@ authors = [ { name = "" }, ] description = " Typetest Union Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -20,7 +20,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" @@ -41,6 +40,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "typetest", ] diff --git a/packages/typespec-python/test/unbranded/generated/typetest-union/typetest/union/_utils/model_base.py b/packages/typespec-python/test/unbranded/generated/typetest-union/typetest/union/_utils/model_base.py index e880ccde9b8..e69ff2ca36d 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-union/typetest/union/_utils/model_base.py +++ b/packages/typespec-python/test/unbranded/generated/typetest-union/typetest/union/_utils/model_base.py @@ -23,7 +23,6 @@ from corehttp.utils import CaseInsensitiveEnumMeta from corehttp.runtime.pipeline import PipelineResponse from corehttp.serialization import _Null -from corehttp.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -935,13 +934,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -951,10 +950,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/unbranded/generated/versioning-added/pyproject.toml b/packages/typespec-python/test/unbranded/generated/versioning-added/pyproject.toml index f1d1191a154..bfa8eb3ee6d 100644 --- a/packages/typespec-python/test/unbranded/generated/versioning-added/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/versioning-added/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -9,7 +9,7 @@ authors = [ { name = "" }, ] description = " Versioning Added Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -20,7 +20,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" @@ -41,6 +40,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "versioning", ] diff --git a/packages/typespec-python/test/unbranded/generated/versioning-added/versioning/added/_utils/model_base.py b/packages/typespec-python/test/unbranded/generated/versioning-added/versioning/added/_utils/model_base.py index e880ccde9b8..e69ff2ca36d 100644 --- a/packages/typespec-python/test/unbranded/generated/versioning-added/versioning/added/_utils/model_base.py +++ b/packages/typespec-python/test/unbranded/generated/versioning-added/versioning/added/_utils/model_base.py @@ -23,7 +23,6 @@ from corehttp.utils import CaseInsensitiveEnumMeta from corehttp.runtime.pipeline import PipelineResponse from corehttp.serialization import _Null -from corehttp.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -935,13 +934,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -951,10 +950,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/unbranded/generated/versioning-madeoptional/pyproject.toml b/packages/typespec-python/test/unbranded/generated/versioning-madeoptional/pyproject.toml index 619581fa9d9..58f1db77e65 100644 --- a/packages/typespec-python/test/unbranded/generated/versioning-madeoptional/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/versioning-madeoptional/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -9,7 +9,7 @@ authors = [ { name = "" }, ] description = " Versioning Madeoptional Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -20,7 +20,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" @@ -41,6 +40,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "versioning", ] diff --git a/packages/typespec-python/test/unbranded/generated/versioning-madeoptional/versioning/madeoptional/_utils/model_base.py b/packages/typespec-python/test/unbranded/generated/versioning-madeoptional/versioning/madeoptional/_utils/model_base.py index e880ccde9b8..e69ff2ca36d 100644 --- a/packages/typespec-python/test/unbranded/generated/versioning-madeoptional/versioning/madeoptional/_utils/model_base.py +++ b/packages/typespec-python/test/unbranded/generated/versioning-madeoptional/versioning/madeoptional/_utils/model_base.py @@ -23,7 +23,6 @@ from corehttp.utils import CaseInsensitiveEnumMeta from corehttp.runtime.pipeline import PipelineResponse from corehttp.serialization import _Null -from corehttp.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -935,13 +934,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -951,10 +950,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/unbranded/generated/versioning-removed/pyproject.toml b/packages/typespec-python/test/unbranded/generated/versioning-removed/pyproject.toml index 6cbc3039bfa..fa3a4be36f9 100644 --- a/packages/typespec-python/test/unbranded/generated/versioning-removed/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/versioning-removed/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -9,7 +9,7 @@ authors = [ { name = "" }, ] description = " Versioning Removed Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -20,7 +20,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" @@ -41,6 +40,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "versioning", ] diff --git a/packages/typespec-python/test/unbranded/generated/versioning-removed/versioning/removed/_utils/model_base.py b/packages/typespec-python/test/unbranded/generated/versioning-removed/versioning/removed/_utils/model_base.py index e880ccde9b8..e69ff2ca36d 100644 --- a/packages/typespec-python/test/unbranded/generated/versioning-removed/versioning/removed/_utils/model_base.py +++ b/packages/typespec-python/test/unbranded/generated/versioning-removed/versioning/removed/_utils/model_base.py @@ -23,7 +23,6 @@ from corehttp.utils import CaseInsensitiveEnumMeta from corehttp.runtime.pipeline import PipelineResponse from corehttp.serialization import _Null -from corehttp.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -935,13 +934,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -951,10 +950,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/unbranded/generated/versioning-renamedfrom/pyproject.toml b/packages/typespec-python/test/unbranded/generated/versioning-renamedfrom/pyproject.toml index 292c45580ad..8c536efe487 100644 --- a/packages/typespec-python/test/unbranded/generated/versioning-renamedfrom/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/versioning-renamedfrom/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -9,7 +9,7 @@ authors = [ { name = "" }, ] description = " Versioning Renamedfrom Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -20,7 +20,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" @@ -41,6 +40,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "versioning", ] diff --git a/packages/typespec-python/test/unbranded/generated/versioning-renamedfrom/versioning/renamedfrom/_utils/model_base.py b/packages/typespec-python/test/unbranded/generated/versioning-renamedfrom/versioning/renamedfrom/_utils/model_base.py index e880ccde9b8..e69ff2ca36d 100644 --- a/packages/typespec-python/test/unbranded/generated/versioning-renamedfrom/versioning/renamedfrom/_utils/model_base.py +++ b/packages/typespec-python/test/unbranded/generated/versioning-renamedfrom/versioning/renamedfrom/_utils/model_base.py @@ -23,7 +23,6 @@ from corehttp.utils import CaseInsensitiveEnumMeta from corehttp.runtime.pipeline import PipelineResponse from corehttp.serialization import _Null -from corehttp.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -935,13 +934,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -951,10 +950,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/unbranded/generated/versioning-returntypechangedfrom/pyproject.toml b/packages/typespec-python/test/unbranded/generated/versioning-returntypechangedfrom/pyproject.toml index a32b6823640..dd80908ed7b 100644 --- a/packages/typespec-python/test/unbranded/generated/versioning-returntypechangedfrom/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/versioning-returntypechangedfrom/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -9,7 +9,7 @@ authors = [ { name = "" }, ] description = " Versioning Returntypechangedfrom Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -20,7 +20,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" @@ -41,6 +40,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "versioning", ] diff --git a/packages/typespec-python/test/unbranded/generated/versioning-returntypechangedfrom/versioning/returntypechangedfrom/_utils/model_base.py b/packages/typespec-python/test/unbranded/generated/versioning-returntypechangedfrom/versioning/returntypechangedfrom/_utils/model_base.py index e880ccde9b8..e69ff2ca36d 100644 --- a/packages/typespec-python/test/unbranded/generated/versioning-returntypechangedfrom/versioning/returntypechangedfrom/_utils/model_base.py +++ b/packages/typespec-python/test/unbranded/generated/versioning-returntypechangedfrom/versioning/returntypechangedfrom/_utils/model_base.py @@ -23,7 +23,6 @@ from corehttp.utils import CaseInsensitiveEnumMeta from corehttp.runtime.pipeline import PipelineResponse from corehttp.serialization import _Null -from corehttp.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -935,13 +934,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -951,10 +950,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/packages/typespec-python/test/unbranded/generated/versioning-typechangedfrom/pyproject.toml b/packages/typespec-python/test/unbranded/generated/versioning-typechangedfrom/pyproject.toml index 9da095c3f10..c22d3af1782 100644 --- a/packages/typespec-python/test/unbranded/generated/versioning-typechangedfrom/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/versioning-typechangedfrom/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +requires = ["setuptools>=77.0.3", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -9,7 +9,7 @@ authors = [ { name = "" }, ] description = " Versioning Typechangedfrom Client Library for Python" -license = {text = "MIT License"} +license = "MIT" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -20,7 +20,6 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", ] requires-python = ">=3.9" @@ -41,6 +40,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"} exclude = [ "tests*", "samples*", + "doc*", "versioning", ] diff --git a/packages/typespec-python/test/unbranded/generated/versioning-typechangedfrom/versioning/typechangedfrom/_utils/model_base.py b/packages/typespec-python/test/unbranded/generated/versioning-typechangedfrom/versioning/typechangedfrom/_utils/model_base.py index e880ccde9b8..e69ff2ca36d 100644 --- a/packages/typespec-python/test/unbranded/generated/versioning-typechangedfrom/versioning/typechangedfrom/_utils/model_base.py +++ b/packages/typespec-python/test/unbranded/generated/versioning-typechangedfrom/versioning/typechangedfrom/_utils/model_base.py @@ -23,7 +23,6 @@ from corehttp.utils import CaseInsensitiveEnumMeta from corehttp.runtime.pipeline import PipelineResponse from corehttp.serialization import _Null -from corehttp.rest import HttpResponse _LOGGER = logging.getLogger(__name__) @@ -935,13 +934,13 @@ def _deserialize( def _failsafe_deserialize( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, module: typing.Optional[str] = None, rf: typing.Optional["_RestField"] = None, format: typing.Optional[str] = None, ) -> typing.Any: try: - return _deserialize(deserializer, response.json(), module, rf, format) + return _deserialize(deserializer, value, module, rf, format) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True @@ -951,10 +950,10 @@ def _failsafe_deserialize( def _failsafe_deserialize_xml( deserializer: typing.Any, - response: HttpResponse, + value: typing.Any, ) -> typing.Any: try: - return _deserialize_xml(deserializer, response.text()) + return _deserialize_xml(deserializer, value) except DeserializationError: _LOGGER.warning( "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d8fd9dc7876..c6c09afc058 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -60,8 +60,8 @@ importers: specifier: ~1.0.2 version: 1.0.2 '@typespec/http-client-python': - specifier: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTE4NzMzOC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.15.0.tgz - version: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTE4NzMzOC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.15.0.tgz(iurth4uuk4s6znzuuc7ncenk2q) + specifier: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTE4ODIwOS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.15.0.tgz + version: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTE4ODIwOS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.15.0.tgz(iurth4uuk4s6znzuuc7ncenk2q) fs-extra: specifier: ~11.2.0 version: 11.2.0 @@ -82,8 +82,8 @@ importers: packages/typespec-python: dependencies: '@typespec/http-client-python': - specifier: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTE4NzMzOC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.15.0.tgz - version: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTE4NzMzOC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.15.0.tgz(iurth4uuk4s6znzuuc7ncenk2q) + specifier: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTE4ODIwOS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.15.0.tgz + version: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTE4ODIwOS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.15.0.tgz(iurth4uuk4s6znzuuc7ncenk2q) fs-extra: specifier: ~11.2.0 version: 11.2.0 @@ -1668,8 +1668,8 @@ packages: peerDependencies: '@typespec/compiler': ^1.2.1 - '@typespec/http-client-python@https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTE4NzMzOC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.15.0.tgz': - resolution: {tarball: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTE4NzMzOC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.15.0.tgz} + '@typespec/http-client-python@https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTE4ODIwOS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.15.0.tgz': + resolution: {tarball: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTE4ODIwOS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.15.0.tgz} version: 0.15.0 engines: {node: '>=20.0.0'} peerDependencies: @@ -6422,7 +6422,7 @@ snapshots: dependencies: '@typespec/compiler': 1.2.1(@types/node@22.13.17) - '@typespec/http-client-python@https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTE4NzMzOC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.15.0.tgz(iurth4uuk4s6znzuuc7ncenk2q)': + '@typespec/http-client-python@https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTE4ODIwOS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.15.0.tgz(iurth4uuk4s6znzuuc7ncenk2q)': dependencies: '@azure-tools/typespec-autorest': 0.58.0(vddu6w2yloigenmssnpyjivoim) '@azure-tools/typespec-azure-core': 0.58.0(@typespec/compiler@1.2.1(@types/node@22.13.17))(@typespec/http@1.2.1(@typespec/compiler@1.2.1(@types/node@22.13.17))(@typespec/streams@0.72.1(@typespec/compiler@1.2.1(@types/node@22.13.17))))(@typespec/rest@0.72.1(@typespec/compiler@1.2.1(@types/node@22.13.17))(@typespec/http@1.2.1(@typespec/compiler@1.2.1(@types/node@22.13.17))(@typespec/streams@0.72.1(@typespec/compiler@1.2.1(@types/node@22.13.17)))))