Skip to content

Commit 5fb6e53

Browse files
Copilotswathipilscbedd
authored
[EventHub] Convert azure-eventhub packages from setup.py to pyproject.toml (#42363)
* Initial plan * Convert all azure-eventhub* packages from setup.py to pyproject.toml Co-authored-by: swathipil <[email protected]> * Revert azure-mgmt-eventhub and azure-eventhub-checkpointstoretable changes as requested Co-authored-by: swathipil <[email protected]> * exclude doc folder * update license to spdx expression * try update setuptools req * bumping setuptools version for testing pyproject changes * update twine * update ckptblob pyproject * nit * commit test fixes alongside black formatting --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: swathipil <[email protected]> Co-authored-by: swathipil <[email protected]> Co-authored-by: Scott Beddall <[email protected]>
1 parent 61bb88f commit 5fb6e53

File tree

9 files changed

+157
-252
lines changed

9 files changed

+157
-252
lines changed

sdk/eventhub/azure-eventhub-checkpointstoreblob-aio/pyproject.toml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,50 @@
1+
[build-system]
2+
requires = ["setuptools>=77.0.3", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "azure-eventhub-checkpointstoreblob-aio"
7+
authors = [
8+
{name = "Microsoft Corporation", email = "[email protected]"},
9+
]
10+
description = "Microsoft Azure Event Hubs checkpointer implementation with Blob Storage Client 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.30.0",
27+
"cryptography>=2.1.4",
28+
"typing-extensions>=4.6.0",
29+
"isodate>=0.6.1",
30+
"azure-eventhub>=5.0.0",
31+
"aiohttp>=3.11.0",
32+
]
33+
dynamic = ["version", "readme"]
34+
35+
[project.urls]
36+
repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk"
37+
38+
[tool.setuptools.dynamic]
39+
version = {attr = "azure.eventhub.extensions.checkpointstoreblobaio._version.VERSION"}
40+
readme = {file = ["README.md"], content-type = "text/markdown"}
41+
42+
[tool.setuptools.packages.find]
43+
exclude = ["samples*", "tests*", "doc*", "azure", "azure.eventhub", "azure.eventhub.extensions"]
44+
45+
[tool.setuptools.package-data]
46+
pytyped = ["py.typed"]
47+
148
[tool.azure-sdk-build]
249
mypy = true
350
pyright = false

sdk/eventhub/azure-eventhub-checkpointstoreblob-aio/setup.py

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

sdk/eventhub/azure-eventhub-checkpointstoreblob/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-eventhub-checkpointstoreblob"
7+
authors = [
8+
{name = "Microsoft Corporation", email = "[email protected]"},
9+
]
10+
description = "Microsoft Azure Event Hubs checkpointer implementation with Blob Storage Client 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.30.0",
27+
"cryptography>=2.1.4",
28+
"typing-extensions>=4.6.0",
29+
"isodate>=0.6.1",
30+
"azure-eventhub>=5.0.0",
31+
]
32+
dynamic = ["version", "readme"]
33+
34+
[project.urls]
35+
repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk"
36+
37+
[tool.setuptools.dynamic]
38+
version = {attr = "azure.eventhub.extensions.checkpointstoreblob._version.VERSION"}
39+
readme = {file = ["README.md"], content-type = "text/markdown"}
40+
41+
[tool.setuptools.packages.find]
42+
exclude = ["samples*", "tests*", "doc*", "azure", "azure.eventhub", "azure.eventhub.extensions"]
43+
44+
[tool.setuptools.package-data]
45+
pytyped = ["py.typed"]
46+
147
[tool.azure-sdk-build]
248
mypy = true
349
pyright = false

sdk/eventhub/azure-eventhub-checkpointstoreblob/setup.py

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

sdk/eventhub/azure-eventhub/pyproject.toml

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-eventhub"
7+
authors = [
8+
{name = "Microsoft Corporation", email = "[email protected]"},
9+
]
10+
description = "Microsoft Azure Event Hubs Client 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.27.0",
27+
"typing-extensions>=4.0.1",
28+
]
29+
dynamic = ["version", "readme"]
30+
31+
[project.urls]
32+
repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk"
33+
34+
[tool.setuptools.dynamic]
35+
version = {attr = "azure.eventhub._version.VERSION"}
36+
readme = {file = ["README.md"], content-type = "text/markdown"}
37+
38+
[tool.setuptools.packages.find]
39+
exclude = ["samples*", "tests*", "doc*", "stress*", "azure"]
40+
41+
[tool.setuptools.package-data]
42+
pytyped = ["py.typed"]
43+
144
[tool.azure-sdk-build]
245
pyright = false
346
type_check_samples = true

sdk/eventhub/azure-eventhub/setup.py

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

0 commit comments

Comments
 (0)