From 7f5c97cba74a11a0ce20edbc9436aa2c6387506c Mon Sep 17 00:00:00 2001 From: Avasam Date: Fri, 19 Jun 2026 11:09:57 -0400 Subject: [PATCH] uv_build build backend --- pyproject.toml | 9 +++------ src/pywinctl/__init__.py | 4 +++- uv.lock | 1 + 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 2a56331..146600b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,9 +1,6 @@ [build-system] -requires = ["setuptools>=77.0.3", "setuptools-scm"] -build-backend = "setuptools.build_meta" - -[tool.setuptools.dynamic] -version = { attr = "pywinctl.__version__" } # any module attribute compatible with ast.literal_eval +requires = ["uv_build>=0.11.21,<0.12"] +build-backend = "uv_build" [project.urls] Homepage = "https://github.com/Kalmat/PyWinCtl" @@ -14,7 +11,7 @@ Documentation = "https://pywinctl.readthedocs.io/" [project] name = "PyWinCtl" -dynamic = ["version"] +version = "0.4.2" description = "Cross-Platform toolkit to get info on and control windows on screen" authors = [ { name = "Kalmat", email = "palookjones@gmail.com" } diff --git a/src/pywinctl/__init__.py b/src/pywinctl/__init__.py index 0615a18..5def630 100644 --- a/src/pywinctl/__init__.py +++ b/src/pywinctl/__init__.py @@ -1,4 +1,6 @@ #!/usr/bin/python +from importlib.metadata import version as _importlib_version + from ._main import (Re, Window, checkPermissions, getActiveWindow, getActiveWindowTitle, getAllAppsNames, getAllAppsWindowsTitles, getAllTitles, getAllWindows, getAppsWithName, getWindowsWithTitle, @@ -15,7 +17,7 @@ "getAllScreens", "getScreenSize", "getWorkArea", "getMousePos" ] -__version__ = "0.4.01" +__version__ = _importlib_version("pywinctl") def version(numberOnly: bool = True) -> str: diff --git a/uv.lock b/uv.lock index 8cffad9..6dece52 100644 --- a/uv.lock +++ b/uv.lock @@ -8315,6 +8315,7 @@ wheels = [ [[package]] name = "pywinctl" +version = "0.4.2" source = { editable = "." } dependencies = [ { name = "ewmhlib", marker = "sys_platform == 'linux'" },