Skip to content

Commit 7970469

Browse files
committed
Use uv_build backend
1 parent e581bde commit 7970469

File tree

2 files changed

+9
-17
lines changed

2 files changed

+9
-17
lines changed

pyproject.toml

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,11 @@
1-
[build-system]
2-
requires = [
3-
"setuptools>=61",
4-
]
5-
build-backend = "setuptools.build_meta"
6-
71
[project]
82
name = "contiguity"
9-
dynamic = ["version"]
3+
version = "3.0.0"
104
description = "Contiguity's official Python SDK"
115
readme = "README.md"
12-
license = {file = "LICENSE.txt"}
6+
license = { file = "LICENSE.txt" }
137
requires-python = ">=3.10"
14-
authors = [
15-
{name = "Contiguity", email = "help@contiguity.support"},
16-
]
8+
authors = [{ name = "Contiguity", email = "help@contiguity.support" }]
179
keywords = [
1810
"python",
1911
"contiguity",
@@ -52,11 +44,9 @@ dev = [
5244
[project.urls]
5345
Repository = "https://github.com/contiguity/python"
5446

55-
[tool.setuptools]
56-
package-data = {contiguity = ["py.typed"]}
57-
58-
[tool.setuptools.dynamic]
59-
version = {attr = "contiguity.__version__"}
47+
[build-system]
48+
requires = ["uv_build>=0.9.22"]
49+
build-backend = "uv_build"
6050

6151
[tool.ruff]
6252
src = ["src"]

src/contiguity/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from importlib.metadata import version
2+
13
from ._auth import get_contiguity_token
24
from ._client import ApiClient
35
from .domains import Domains
@@ -41,4 +43,4 @@ def __init__(
4143
"Text",
4244
"WhatsApp",
4345
)
44-
__version__ = "3.0.0"
46+
__version__ = version("contiguity")

0 commit comments

Comments
 (0)