From 24d6d52f7f460dc0a55c6566ad1b12d536a8b83edb020cff81d8a0a069f0378a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Fri, 13 Jun 2025 12:25:29 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-system_hotkey?expand=0&rev=6 --- .gitattributes | 23 +++++++++++++ .gitignore | 1 + python-system_hotkey.changes | 42 +++++++++++++++++++++++ python-system_hotkey.spec | 65 ++++++++++++++++++++++++++++++++++++ system_hotkey-1.0.3.tar.gz | 3 ++ 5 files changed, 134 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-system_hotkey.changes create mode 100644 python-system_hotkey.spec create mode 100644 system_hotkey-1.0.3.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-system_hotkey.changes b/python-system_hotkey.changes new file mode 100644 index 0000000..6d94a1c --- /dev/null +++ b/python-system_hotkey.changes @@ -0,0 +1,42 @@ +------------------------------------------------------------------- +Fri Jun 13 12:24:14 UTC 2025 - Markéta Machová + +- Convert to pip-based build + +------------------------------------------------------------------- +Thu Oct 22 16:48:44 UTC 2020 - andy great + +- Update to version 1.0.3. + * Fix a typo in Readme + * Documented the fact that xlib shouldn't really be used +- Cleanup spec file. + +------------------------------------------------------------------- +Sat May 23 02:50:29 UTC 2020 - andy great + +- Remove _service file. + +------------------------------------------------------------------- +Fri Apr 24 14:41:28 UTC 2020 - andy great + +- Clean spec file. + +------------------------------------------------------------------- +Thu Dec 26 15:01:20 UTC 2019 - aloisio@gmx.com + +- Update to version 1.0.2+git.20190515: + * Fix a typo in Readme + * Fix code example + * Add 'from' clause to re-raised errors + * update readme + * raise errors in main + * cleanup + * bug fix + * rip white space + * filtering out unrequired events on linux + * v bump + +------------------------------------------------------------------- +Thu Dec 26 14:40:38 UTC 2019 - Luigi Baldoni + +- Initial package (v1.0.3) diff --git a/python-system_hotkey.spec b/python-system_hotkey.spec new file mode 100644 index 0000000..14c6b66 --- /dev/null +++ b/python-system_hotkey.spec @@ -0,0 +1,65 @@ +# +# spec file for package python-system_hotkey +# +# Copyright (c) 2025 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: python-system_hotkey +Version: 1.0.3 +Release: 0 +Summary: System wide hotkeys +License: BSD-3-Clause +URL: https://github.com/timeyyy/system_hotkey +Source0: https://github.com/timeyyy/system_hotkey/archive/%{version}.tar.gz#/system_hotkey-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest-xvfb} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: %{python_module xcffib} +BuildRequires: %{python_module xpybutil} +BuildRequires: fdupes +BuildRequires: pkgconfig +BuildRequires: python-rpm-macros +BuildRequires: pkgconfig(xcb) +Requires: python-xcffib +Requires: python-xpybutil +BuildArch: noarch +%python_subpackages + +%description +System wide hotkeys for python 3. + +%prep +%setup -q -n system_hotkey-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +# The tests currently fail +#%%pytest + +%files %{python_files} +%license LICENSE +%doc HISTORY.rst README.rst +%{python_sitelib}/system_hotkey +%{python_sitelib}/system_hotkey-%{version}*-info + +%changelog diff --git a/system_hotkey-1.0.3.tar.gz b/system_hotkey-1.0.3.tar.gz new file mode 100644 index 0000000..1312916 --- /dev/null +++ b/system_hotkey-1.0.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:17a67fbaf416e5b2b80dc0ec8e5ac6a5a4d7af197b016908103e76524a10fa81 +size 29898