Skip to content

Commit 52d69b8

Browse files
Copilotl0lawrence
andcommitted
Port setup.py to pyproject.toml for keyvault data-plane packages
Co-authored-by: l0lawrence <100643745+l0lawrence@users.noreply.github.com>
1 parent f655601 commit 52d69b8

12 files changed

Lines changed: 297 additions & 326 deletions

File tree

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,71 @@
1+
[build-system]
2+
requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "azure-keyvault-administration"
7+
authors = [
8+
{name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com"},
9+
]
10+
description = "Microsoft Corporation Key Vault Administration Client Library for Python"
11+
keywords = ["azure", "azure sdk"]
12+
requires-python = ">=3.9"
13+
license = {text = "MIT License"}
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+
"License :: OSI Approved :: MIT License",
25+
]
26+
dependencies = [
27+
"isodate>=0.6.1",
28+
"azure-core>=1.38.0",
29+
"typing-extensions>=4.6.0",
30+
]
31+
dynamic = ["version", "readme"]
32+
33+
[project.urls]
34+
repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk"
35+
36+
[tool.setuptools.dynamic]
37+
version = {attr = "azure.keyvault.administration._version.VERSION"}
38+
readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"}
39+
40+
[tool.setuptools.packages.find]
41+
exclude = ["samples*", "tests*", "azure", "azure.keyvault"]
42+
43+
[tool.setuptools.package-data]
44+
pytyped = ["py.typed"]
45+
146
[tool.azure-sdk-build]
247
pyright = false
348

49+
[tool.uv.sources]
50+
azure-core = { path = "../../core/azure-core" }
51+
azure-identity = { path = "../../identity/azure-identity" }
52+
azure-keyvault-keys = { path = "../azure-keyvault-keys" }
53+
azure-keyvault-nspkg = { path = "../../nspkg/azure-keyvault-nspkg" }
54+
azure-sdk-tools = { path = "../../../eng/tools/azure-sdk-tools" }
55+
56+
[dependency-groups]
57+
dev = [
58+
"aiohttp>=3.0",
59+
"azure-core",
60+
"azure-identity",
61+
"azure-keyvault-keys",
62+
"azure-keyvault-nspkg",
63+
"azure-sdk-tools",
64+
"azure-storage-blob==12.6.0",
65+
"parameterized>=0.7.3",
66+
"python-dateutil>=2.8.0",
67+
]
68+
469
[tool.azure-sdk-conda]
570
in_bundle = true
671
bundle_name = "azure-keyvault"

sdk/keyvault/azure-keyvault-administration/setup.py

Lines changed: 0 additions & 69 deletions
This file was deleted.
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,69 @@
1+
[build-system]
2+
requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "azure-keyvault-certificates"
7+
authors = [
8+
{name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com"},
9+
]
10+
description = "Microsoft Corporation Key Vault Certificates Client Library for Python"
11+
keywords = ["azure", "azure sdk"]
12+
requires-python = ">=3.9"
13+
license = {text = "MIT License"}
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+
"License :: OSI Approved :: MIT License",
25+
]
26+
dependencies = [
27+
"isodate>=0.6.1",
28+
"azure-core>=1.31.0",
29+
"typing-extensions>=4.6.0",
30+
]
31+
dynamic = ["version", "readme"]
32+
33+
[project.urls]
34+
repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk"
35+
36+
[tool.setuptools.dynamic]
37+
version = {attr = "azure.keyvault.certificates._version.VERSION"}
38+
readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"}
39+
40+
[tool.setuptools.packages.find]
41+
exclude = ["samples*", "tests*", "azure", "azure.keyvault"]
42+
43+
[tool.setuptools.package-data]
44+
pytyped = ["py.typed"]
45+
146
[tool.azure-sdk-build]
247
pyright = false
348

49+
[tool.uv.sources]
50+
azure-core = { path = "../../core/azure-core" }
51+
azure-identity = { path = "../../identity/azure-identity" }
52+
azure-keyvault-nspkg = { path = "../../nspkg/azure-keyvault-nspkg" }
53+
azure-sdk-tools = { path = "../../../eng/tools/azure-sdk-tools" }
54+
55+
[dependency-groups]
56+
dev = [
57+
"aiohttp>=3.0",
58+
"azure-core",
59+
"azure-identity",
60+
"azure-keyvault-nspkg",
61+
"azure-sdk-tools",
62+
"parameterized>=0.7.3",
63+
"pyopenssl",
64+
"python-dateutil>=2.8.0",
65+
]
66+
467
[tool.azure-sdk-conda]
568
in_bundle = true
669
bundle_name = "azure-keyvault"

sdk/keyvault/azure-keyvault-certificates/setup.py

Lines changed: 0 additions & 69 deletions
This file was deleted.
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,67 @@
1+
[build-system]
2+
requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "azure-keyvault-secrets"
7+
authors = [
8+
{name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com"},
9+
]
10+
description = "Microsoft Corporation Key Vault Secrets Client Library for Python"
11+
keywords = ["azure", "azure sdk"]
12+
requires-python = ">=3.9"
13+
license = {text = "MIT License"}
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+
"License :: OSI Approved :: MIT License",
25+
]
26+
dependencies = [
27+
"isodate>=0.6.1",
28+
"azure-core>=1.31.0",
29+
"typing-extensions>=4.6.0",
30+
]
31+
dynamic = ["version", "readme"]
32+
33+
[project.urls]
34+
repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk"
35+
36+
[tool.setuptools.dynamic]
37+
version = {attr = "azure.keyvault.secrets._version.VERSION"}
38+
readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"}
39+
40+
[tool.setuptools.packages.find]
41+
exclude = ["samples*", "tests*", "azure", "azure.keyvault"]
42+
43+
[tool.setuptools.package-data]
44+
pytyped = ["py.typed"]
45+
146
[tool.azure-sdk-build]
247

48+
[tool.uv.sources]
49+
azure-core = { path = "../../core/azure-core" }
50+
azure-identity = { path = "../../identity/azure-identity" }
51+
azure-keyvault-nspkg = { path = "../../nspkg/azure-keyvault-nspkg" }
52+
azure-sdk-tools = { path = "../../../eng/tools/azure-sdk-tools" }
53+
54+
[dependency-groups]
55+
dev = [
56+
"aiohttp>=3.0",
57+
"azure-core",
58+
"azure-identity",
59+
"azure-keyvault-nspkg",
60+
"azure-sdk-tools",
61+
"parameterized>=0.7.3",
62+
"python-dateutil>=2.8.0",
63+
]
64+
365
[tool.azure-sdk-conda]
466
in_bundle = true
567
bundle_name = "azure-keyvault"

0 commit comments

Comments
 (0)