Skip to content

Commit d9631e4

Browse files
authored
Merge pull request #108 from Avasam/uv_build-build-backend
uv_build build backend
2 parents 2bf709b + 7f5c97c commit d9631e4

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

pyproject.toml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
[build-system]
2-
requires = ["setuptools>=77.0.3", "setuptools-scm"]
3-
build-backend = "setuptools.build_meta"
4-
5-
[tool.setuptools.dynamic]
6-
version = { attr = "pywinctl.__version__" } # any module attribute compatible with ast.literal_eval
2+
requires = ["uv_build>=0.11.21,<0.12"]
3+
build-backend = "uv_build"
74

85
[project.urls]
96
Homepage = "https://github.com/Kalmat/PyWinCtl"
@@ -14,7 +11,7 @@ Documentation = "https://pywinctl.readthedocs.io/"
1411

1512
[project]
1613
name = "PyWinCtl"
17-
dynamic = ["version"]
14+
version = "0.4.2"
1815
description = "Cross-Platform toolkit to get info on and control windows on screen"
1916
authors = [
2017
{ name = "Kalmat", email = "palookjones@gmail.com" }

src/pywinctl/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#!/usr/bin/python
2+
from importlib.metadata import version as _importlib_version
3+
24
from ._main import (Re, Window, checkPermissions, getActiveWindow,
35
getActiveWindowTitle, getAllAppsNames, getAllAppsWindowsTitles,
46
getAllTitles, getAllWindows, getAppsWithName, getWindowsWithTitle,
@@ -15,7 +17,7 @@
1517
"getAllScreens", "getScreenSize", "getWorkArea", "getMousePos"
1618
]
1719

18-
__version__ = "0.4.01"
20+
__version__ = _importlib_version("pywinctl")
1921

2022

2123
def version(numberOnly: bool = True) -> str:

uv.lock

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

0 commit comments

Comments
 (0)