Skip to content

Commit 31021e4

Browse files
Copilotswathipil
andauthored
[Identity] Convert azure-identity packages from setup.py to pyproject.toml (#42404)
* Initial plan * Convert azure-identity packages from setup.py to pyproject.toml Co-authored-by: swathipil <[email protected]> * Address review feedback: update repository URLs and exclude patterns in pyproject.toml Co-authored-by: swathipil <[email protected]> * Remove unnecessary license classifier from pyproject.toml files Co-authored-by: swathipil <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: swathipil <[email protected]>
1 parent df69aa2 commit 31021e4

File tree

4 files changed

+89
-136
lines changed

4 files changed

+89
-136
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,46 @@
1+
[build-system]
2+
requires = ["setuptools>=77.0.3", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "azure-identity-broker"
7+
authors = [
8+
{name = "Microsoft Corporation", email = "[email protected]"},
9+
]
10+
description = "Microsoft Azure Identity Broker plugin for Python"
11+
keywords = ["azure", "azure sdk"]
12+
requires-python = ">=3.9"
13+
license = "MIT"
14+
classifiers = [
15+
"Development Status :: 5 - Production/Stable",
16+
"Programming Language :: Python",
17+
"Programming Language :: Python :: 3 :: Only",
18+
"Programming Language :: Python :: 3",
19+
"Programming Language :: Python :: 3.9",
20+
"Programming Language :: Python :: 3.10",
21+
"Programming Language :: Python :: 3.11",
22+
"Programming Language :: Python :: 3.12",
23+
"Programming Language :: Python :: 3.13",
24+
]
25+
dependencies = [
26+
"azure-identity<2.0.0,>=1.18.0",
27+
"msal[broker]>=1.33.0,<2",
28+
]
29+
dynamic = ["version", "readme"]
30+
31+
[project.urls]
32+
repository = "https://github.com/Azure/azure-sdk-for-python"
33+
34+
[tool.setuptools.dynamic]
35+
version = {attr = "azure.identity.broker._version.VERSION"}
36+
readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"}
37+
38+
[tool.setuptools.packages.find]
39+
include = ["azure.identity.broker"]
40+
41+
[tool.setuptools.package-data]
42+
pytyped = ["py.typed"]
43+
144
[tool.azure-sdk-build]
245
pyright = false
346
black = true

sdk/identity/azure-identity-broker/setup.py

Lines changed: 0 additions & 68 deletions
This file was deleted.

sdk/identity/azure-identity/pyproject.toml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,49 @@
1+
[build-system]
2+
requires = ["setuptools>=77.0.3", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "azure-identity"
7+
authors = [
8+
{name = "Microsoft Corporation", email = "[email protected]"},
9+
]
10+
description = "Microsoft Azure Identity Library for Python"
11+
keywords = ["azure", "azure sdk"]
12+
requires-python = ">=3.9"
13+
license = "MIT"
14+
classifiers = [
15+
"Development Status :: 5 - Production/Stable",
16+
"Programming Language :: Python",
17+
"Programming Language :: Python :: 3 :: Only",
18+
"Programming Language :: Python :: 3",
19+
"Programming Language :: Python :: 3.9",
20+
"Programming Language :: Python :: 3.10",
21+
"Programming Language :: Python :: 3.11",
22+
"Programming Language :: Python :: 3.12",
23+
"Programming Language :: Python :: 3.13",
24+
]
25+
dependencies = [
26+
"azure-core>=1.31.0",
27+
"cryptography>=2.5",
28+
"msal>=1.30.0",
29+
"msal-extensions>=1.2.0",
30+
"typing-extensions>=4.0.0",
31+
]
32+
dynamic = ["version", "readme"]
33+
34+
[project.urls]
35+
repository = "https://github.com/Azure/azure-sdk-for-python"
36+
37+
[tool.setuptools.dynamic]
38+
version = {attr = "azure.identity._version.VERSION"}
39+
readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"}
40+
41+
[tool.setuptools.packages.find]
42+
exclude = ["tests*", "samples*", "azure"]
43+
44+
[tool.setuptools.package-data]
45+
pytyped = ["py.typed"]
46+
147
[tool.azure-sdk-build]
248
pyright = false
349
verifytypes = true

sdk/identity/azure-identity/setup.py

Lines changed: 0 additions & 68 deletions
This file was deleted.

0 commit comments

Comments
 (0)