Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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" }
Expand Down
4 changes: 3 additions & 1 deletion src/pywinctl/__init__.py
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -15,7 +17,7 @@
"getAllScreens", "getScreenSize", "getWorkArea", "getMousePos"
]

__version__ = "0.4.01"
__version__ = _importlib_version("pywinctl")


def version(numberOnly: bool = True) -> str:
Expand Down
1 change: 1 addition & 0 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.