Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
8cb460e
Update dependencies
Jul 18, 2025
2c16d38
bump package
Jul 18, 2025
4aa004d
Update dependencies
Jul 18, 2025
073bc03
fix package json
Jul 18, 2025
c2c8341
regen
Jul 18, 2025
15fc42d
Update dependencies
Jul 21, 2025
407d5ce
Update dependencies (2025-07-21 18:40:55)
Jul 21, 2025
295e535
Regenerate for typespec-python (2025-07-21 18:45:50)
Jul 21, 2025
dca4e1c
Regenerate for autorest.python (2025-07-21 19:02:10)
Jul 21, 2025
9db95bb
bump apiview-stub-generator version
swathipil Jul 21, 2025
7d8fd32
add basic-setup-py to all multiapi tests
swathipil Jul 21, 2025
46f5e5f
chronus
swathipil Jul 21, 2025
0bcdc65
pass in package-version with basic-setup-py
swathipil Jul 21, 2025
478bd4a
Regenerate for autorest.python (2025-07-22 00:33:17)
Jul 22, 2025
6a8a7d9
Merge branch 'main' into auto-swathipil-http-client-python/add-pyproj…
swathipil Jul 28, 2025
41609e3
Update dependencies
Jul 28, 2025
deee1d5
sync pnpm-lock to main
swathipil Jul 28, 2025
d3a1ca8
revert multiapi so basic-setup-py isn't needed by default
swathipil Jul 28, 2025
f014b71
remove package-version too
swathipil Jul 28, 2025
7422d08
undo multiapisubmodule package-name
swathipil Jul 28, 2025
916780e
Update dependencies
Jul 28, 2025
ac4dc51
Update dependencies (2025-07-28 22:24:08)
Jul 28, 2025
48dc1a2
Regenerate for typespec-python (2025-07-28 22:29:07)
Jul 28, 2025
c1d050c
Regenerate for autorest.python (2025-07-28 22:45:35)
Jul 28, 2025
dcf335c
merge main
swathipil Jul 29, 2025
d947921
remove setup.py file
swathipil Jul 30, 2025
3001d71
read from correct path for autorest
swathipil Jul 30, 2025
f8e96e6
mypy
swathipil Jul 30, 2025
a00325e
Update dependencies
Jul 30, 2025
9105af8
Merge branch 'main' into auto-swathipil-http-client-python/add-pyproj…
swathipil Jul 30, 2025
c737cf6
Update dependencies
Jul 30, 2025
c1f0deb
update pnpm-lock file
swathipil Jul 30, 2025
b43821b
update typespec-python pyproject.toml files for python 3.13
swathipil Jul 30, 2025
017f82f
update pyproject.toml for py 3.13 autorest.python
swathipil Jul 30, 2025
fa8ce3a
fix expected spacing in pyproject description
swathipil Jul 31, 2025
55a0b65
add keep setup py tests
swathipil Jul 31, 2025
b8cbd67
add test for checking azure-sdk-build sections aren't removed on regen
swathipil Jul 31, 2025
d968d0a
update test readme to use relative output folder path
swathipil Jul 31, 2025
efa12ba
Update dependencies
Jul 31, 2025
e95ece9
fix prettier
swathipil Jul 31, 2025
e11a553
update lock file
swathipil Jul 31, 2025
6cb4842
cspell
swathipil Jul 31, 2025
c63f6ed
Update dependencies
Jul 31, 2025
d34fa10
Update dependencies (2025-07-31 23:29:10)
Jul 31, 2025
628eb37
Regenerate for typespec-python (2025-07-31 23:33:53)
Jul 31, 2025
f6b0f79
Regenerate for autorest.python (2025-07-31 23:50:07)
Jul 31, 2025
fb3decc
Merge branch 'main' into auto-swathipil-http-client-python/add-pyproj…
swathipil Aug 1, 2025
0c15288
nit
swathipil Aug 1, 2025
86d1fce
add setuppy to test reqs
swathipil Aug 1, 2025
ca9f486
fix sensitive words test
swathipil Aug 1, 2025
d34b322
black
swathipil Aug 1, 2025
514334a
revert multiapi setup.py
swathipil Aug 1, 2025
46b2482
Merge branch 'main' into auto-swathipil-http-client-python/add-pyproj…
swathipil Aug 4, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
changeKind: feature
packages:
- "@autorest/python"
- "@azure-tools/typespec-python"
---

Add pyproject.toml generation by default
1 change: 1 addition & 0 deletions cspell.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ words:
- securityaadswagger
- securityaadswaggercredentialflag
- securityaadswaggerversiontolerant
- setuppy
- siameeee
- spheredpg
- subclient
Expand Down
13 changes: 13 additions & 0 deletions packages/autorest.python/autorest/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,25 @@ def __init__(self, *, output_folder: Union[str, Path], autorestapi: AutorestAPI)
super().__init__(output_folder=output_folder)
self._autorestapi = autorestapi

def get_output_folder(self) -> Path:
# Get the output folder from AutoRest configuration to resolve against the correct base and
# convert URI to file system path by removing file:// prefix if present
return Path(self._autorestapi.get_value("outputFolderUri").lstrip("file:"))

def read_file(self, path: Union[str, Path]) -> str:
return self._autorestapi.read_file(path)

def write_file(self, filename: Union[str, Path], file_content: str) -> None:
return self._autorestapi.write_file(filename, file_content)

def remove_file(self, filename: Union[str, Path]) -> None:
try:
file_path = self.get_output_folder() / Path(filename)
if file_path.is_file():
file_path.unlink()
except (FileNotFoundError, OSError):
pass

def list_file(self) -> List[str]:
return self._autorestapi.list_inputs()

Expand Down
1 change: 1 addition & 0 deletions packages/autorest.python/autorest/codegen.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ def get_options(self) -> Dict[str, Any]:
"no-async": self._autorestapi.get_boolean_value("no-async"),
"no-namespace-folders": self._autorestapi.get_boolean_value("no-namespace-folders"),
"basic-setup-py": self._autorestapi.get_boolean_value("basic-setup-py"),
"keep-setup-py": self._autorestapi.get_boolean_value("keep-setup-py"),
"package-name": self._autorestapi.get_value("package-name"),
"package-version": self._autorestapi.get_value("package-version"),
"client-side-validation": self._autorestapi.get_boolean_value("client-side-validation"),
Expand Down
2 changes: 1 addition & 1 deletion 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": "~0.14.2",
"@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTE2NTM4MS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.14.1.tgz",
"@autorest/system-requirements": "~1.0.2",
"fs-extra": "~11.2.0",
"tsx": "~4.19.1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ package-version: 1.0.0b1
clear-output-folder: true
version-tolerant: false
package-mode: azure-mgmt
keep-setup-py: true
```

``` yaml $(python)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

[build-system]
requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version
build-backend = "setuptools.build_meta"

[project]
name = "azure-packagemode-batch"
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"}
classifiers = [
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"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"]

dependencies = [
"msrest>=0.7.1",
"azure-core>=1.35.0",
"typing-extensions>=4.6.0",
]
dynamic = [
"version", "readme"
]

[project.urls]
repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk"

[tool.setuptools.dynamic]
version = {attr = "azure.packagemode.batch._version.VERSION"}
readme = {file = ["README.md"], content-type = "text/markdown"}

[tool.setuptools.packages.find]
exclude = [
"tests*",
"samples*",
"azure",
"azure.packagemode",
]

[tool.setuptools.package-data]
pytyped = ["py.typed"]

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

[build-system]
requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version
build-backend = "setuptools.build_meta"

[project]
name = "azure-packagemode-dataplane"
authors = [
{ name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" },
]
description = "Microsoft Corporation Azure Package Mode Data Plane Client Library for Python"
license = {text = "MIT License"}
classifiers = [
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"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"]

dependencies = [
"msrest>=0.7.1",
"azure-core>=1.35.0",
"typing-extensions>=4.6.0",
]
dynamic = [
"version", "readme"
]

[project.urls]
repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk"

[tool.setuptools.dynamic]
version = {attr = "azure.packagemode.dataplane._version.VERSION"}
readme = {file = ["README.md"], content-type = "text/markdown"}

[tool.setuptools.packages.find]
exclude = [
"tests*",
"samples*",
"azure",
"azure.packagemode",
]

[tool.setuptools.package-data]
pytyped = ["py.typed"]

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

[build-system]
requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version
build-backend = "setuptools.build_meta"

[project]
name = "azure-package-mode"
authors = [
{ name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" },
]
description = "Microsoft Corporation Azure Package Mode Client Library for Python"
license = {text = "MIT License"}
classifiers = [
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"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"]

dependencies = [
"msrest>=0.7.1",
"azure-core>=1.35.0",
"typing-extensions>=4.6.0",
]
dynamic = [
"version", "readme"
]

[project.urls]
repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk"

[tool.setuptools.dynamic]
version = {attr = "azure.package.mode._version.VERSION"}
readme = {file = ["README.md"], content-type = "text/markdown"}

[tool.setuptools.packages.find]
exclude = [
"tests*",
"samples*",
"azure",
"azure.package",
]

[tool.setuptools.package-data]
pytyped = ["py.typed"]
Loading
Loading