Skip to content

Commit 959dbbc

Browse files
committed
feat: drop setuptools dependency
1 parent 09a9cce commit 959dbbc

File tree

3 files changed

+2
-14
lines changed

3 files changed

+2
-14
lines changed

dingz/constants.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
"""Constants used by the Python API for interacting with dingz units."""
22

3-
import pkg_resources
3+
import importlib.metadata
44

55
try:
6-
__version__ = pkg_resources.get_distribution("setuptools").version
6+
__version__ = importlib.metadata.version("dingz")
77
except Exception:
88
__version__ = "unknown"
99

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ dependencies = [
2727
"aiohttp<4",
2828
"async-timeout>=5.0.1 ; python_full_version < '3.11'",
2929
"click>=8.1.8",
30-
"setuptools>=80.9.0",
3130
]
3231

3332
[project.urls]

uv.lock

Lines changed: 0 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)