Skip to content

Commit 168268b

Browse files
Copilotswathipilkashifkhan
authored
Convert azure-template package from setup.py to pyproject.toml with Python 3.9+ support (#42622)
* Initial plan * Convert azure-template package from setup.py to pyproject.toml Co-authored-by: swathipil <[email protected]> * Fix package-data configuration to use pytyped instead of package name Co-authored-by: swathipil <[email protected]> * Add samples* to exclude list in setuptools package discovery Co-authored-by: swathipil <[email protected]> * Update Python version support to 3.9+ and add 3.12, 3.13 classifiers Co-authored-by: kashifkhan <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: swathipil <[email protected]> Co-authored-by: kashifkhan <[email protected]>
1 parent 183b9a5 commit 168268b

File tree

2 files changed

+43
-85
lines changed

2 files changed

+43
-85
lines changed

sdk/template/azure-template/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-template"
7+
authors = [
8+
{name = "Microsoft Corporation", email = "[email protected]"},
9+
]
10+
description = "Microsoft Azure Template Package Client Library for Python"
11+
keywords = ["azure", "azure sdk"]
12+
requires-python = ">=3.9"
13+
license = "MIT"
14+
classifiers = [
15+
"Development Status :: 4 - Beta",
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<2.0.0,>=1.23.0",
27+
]
28+
dynamic = ["version", "readme"]
29+
30+
[project.urls]
31+
"Bug Reports" = "https://github.com/Azure/azure-sdk-for-python/issues"
32+
"Source" = "https://github.com/Azure/azure-sdk-for-python"
33+
34+
[tool.setuptools.dynamic]
35+
version = {attr = "azure.template._version.VERSION"}
36+
readme = {file = ["README.md"], content-type = "text/markdown"}
37+
38+
[tool.setuptools.packages.find]
39+
exclude = ["tests*", "samples*", "azure"]
40+
41+
[tool.setuptools.package-data]
42+
pytyped = ["py.typed"]
43+
144
[tool.azure-sdk-build]
245
mypy = true
346
type_check_samples = true

sdk/template/azure-template/setup.py

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

0 commit comments

Comments
 (0)