Skip to content

Commit d0d3221

Browse files
Copilotswathipil
andcommitted
Convert azure-cosmos from setup.py to pyproject.toml
Co-authored-by: swathipil <[email protected]>
1 parent 50c7d9d commit d0d3221

File tree

2 files changed

+51
-80
lines changed

2 files changed

+51
-80
lines changed

sdk/cosmos/azure-cosmos/pyproject.toml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,54 @@
1+
[build-system]
2+
requires = ["setuptools>=77.0.3", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "azure-cosmos"
7+
authors = [
8+
{name = "Microsoft Corporation", email = "[email protected]"},
9+
]
10+
maintainers = [
11+
{name = "Microsoft", email = "[email protected]"},
12+
]
13+
description = "Microsoft Azure Cosmos Client Library for Python"
14+
keywords = ["azure", "azure sdk"]
15+
requires-python = ">=3.8"
16+
license = "MIT"
17+
classifiers = [
18+
"Development Status :: 4 - Beta",
19+
"Intended Audience :: Developers",
20+
"Natural Language :: English",
21+
"Operating System :: OS Independent",
22+
"Programming Language :: Python",
23+
"Programming Language :: Python :: 3 :: Only",
24+
"Programming Language :: Python :: 3",
25+
"Programming Language :: Python :: 3.8",
26+
"Programming Language :: Python :: 3.9",
27+
"Programming Language :: Python :: 3.10",
28+
"Programming Language :: Python :: 3.11",
29+
"Programming Language :: Python :: 3.12",
30+
"Programming Language :: Python :: 3.13",
31+
]
32+
dependencies = [
33+
"azure-core>=1.30.0",
34+
"typing-extensions>=4.6.0",
35+
]
36+
dynamic = ["version", "readme"]
37+
38+
[project.urls]
39+
repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk"
40+
41+
[tool.setuptools.dynamic]
42+
version = {attr = "azure.cosmos._version.VERSION"}
43+
readme = {file = ["README.md"], content-type = "text/markdown"}
44+
45+
[tool.setuptools.packages.find]
46+
exclude = ["samples*", "tests*", "doc*", "azure"]
47+
48+
[tool.setuptools.package-data]
49+
"azure.cosmos" = ["py.typed"]
50+
"azure" = ["__init__.py"]
51+
152
[tool.azure-sdk-build]
253
mypy = true
354
pyright = false

sdk/cosmos/azure-cosmos/setup.py

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

0 commit comments

Comments
 (0)