Skip to content
  •  
  •  
  •  
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
changeKind: fix
packages:
- "@autorest/python"
- "@azure-tools/typespec-python"
---

Update pyproject.toml to exclude doc/ and for pep 639
4 changes: 2 additions & 2 deletions packages/autorest.python/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -47,4 +47,4 @@
"requirements.txt",
"generator/"
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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",
Expand All @@ -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"]
Expand All @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"}
exclude = [
"tests*",
"samples*",
"doc*",
"azure",
"azure.packagemode",
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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",
Expand All @@ -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"]
Expand All @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"}
exclude = [
"tests*",
"samples*",
"doc*",
"azure",
"azure.packagemode",
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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",
Expand All @@ -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"]
Expand All @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"}
exclude = [
"tests*",
"samples*",
"doc*",
"azure",
"azure.package",
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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",
Expand All @@ -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"]
Expand All @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"}
exclude = [
"tests*",
"samples*",
"doc*",
]

[tool.setuptools.package-data]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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",
Expand All @@ -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"]
Expand All @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"}
exclude = [
"tests*",
"samples*",
"doc*",
]

[tool.setuptools.package-data]
Expand Down
4 changes: 2 additions & 2 deletions packages/typespec-python/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -103,4 +103,4 @@
"chalk": "5.3.0",
"@types/fs-extra": "11.0.4"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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__)

Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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",
Expand All @@ -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"]
Expand All @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"}
exclude = [
"tests*",
"samples*",
"doc*",
"authentication",
"authentication.api",
"authentication.api.key",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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__)

Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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",
Expand All @@ -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"]
Expand All @@ -51,6 +50,7 @@ readme = {file = ["README.md"], content-type = "text/markdown"}
exclude = [
"tests*",
"samples*",
"doc*",
"authentication",
]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Loading
Loading