Skip to content

Commit 82c7bf9

Browse files
Copilotswathipil
andauthored
[ServiceBus] Convert azure-servicebus from setup.py to pyproject.toml (#42402)
* Initial plan * Convert azure-servicebus from setup.py to pyproject.toml Co-authored-by: swathipil <[email protected]> * move swagger generate attributes py script to md so pyproject build avoids including in whl * fix pyproject.toml * Simplify py.typed package-data configuration to use generic pytyped format Co-authored-by: swathipil <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: swathipil <[email protected]> Co-authored-by: swathipil <[email protected]>
1 parent d4af58d commit 82c7bf9

File tree

3 files changed

+46
-74
lines changed

3 files changed

+46
-74
lines changed

sdk/servicebus/azure-servicebus/pyproject.toml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,47 @@
1+
[build-system]
2+
requires = ["setuptools>=77.0.3", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "azure-servicebus"
7+
authors = [
8+
{name = "Microsoft Corporation", email = "[email protected]"},
9+
]
10+
description = "Microsoft Azure Service Bus 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.28.0",
27+
"isodate>=0.6.0",
28+
"typing-extensions>=4.6.0",
29+
]
30+
dynamic = ["version", "readme"]
31+
32+
[project.urls]
33+
Repository = "https://github.com/Azure/azure-sdk-for-python.git"
34+
35+
[tool.setuptools.dynamic]
36+
version = {attr = "azure.servicebus._version.VERSION"}
37+
readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"}
38+
39+
[tool.setuptools.packages.find]
40+
exclude = ["samples*", "tests*", "doc*", "stress*", "azure"]
41+
42+
[tool.setuptools.package-data]
43+
pytyped = ["py.typed"]
44+
145
[tool.azure-sdk-build]
246
pyright = false
347
type_check_samples = true

sdk/servicebus/azure-servicebus/setup.py

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

sdk/servicebus/azure-servicebus/swagger/generate_attributes_sequence_tuple.py renamed to sdk/servicebus/azure-servicebus/swagger/generate_attributes_sequence_tuple.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
```py
12
# --------------------------------------------------------------------------------------------
23
# Copyright (c) Microsoft Corporation. All rights reserved.
34
# Licensed under the MIT License. See License.txt in the project root for license information.
@@ -31,3 +32,4 @@
3132
print("from azure.servicebus.management._generated.models import", ", ".join(class_names))
3233
print("\n")
3334
print(model_class_attributes_string)
35+
```

0 commit comments

Comments
 (0)