Compare commits

6 Commits

Author SHA256 Message Date
f74de286f0 Accepting request 1273544 from devel:languages:python
- Add missing BuildRequires on attrs.
- Be a tiny bit more explicit in the files list.

OBS-URL: https://build.opensuse.org/request/show/1273544
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wmctrl?expand=0&rev=6
2025-04-30 17:04:31 +00:00
1175008d8b - Add missing BuildRequires on attrs.
- Be a tiny bit more explicit in the files list.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wmctrl?expand=0&rev=12
2025-04-30 04:25:21 +00:00
39eef31687 Accepting request 1230124 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1230124
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wmctrl?expand=0&rev=5
2024-12-11 20:05:08 +00:00
06d58256a0 Accepting request 1230105 from openSUSE:Factory:RISCV
- Avoid race condition in test script

OBS-URL: https://build.opensuse.org/request/show/1230105
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wmctrl?expand=0&rev=10
2024-12-11 14:13:22 +00:00
d3ee7a602f Accepting request 1229358 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1229358
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wmctrl?expand=0&rev=4
2024-12-09 20:12:53 +00:00
0452becd41 Accepting request 1229320 from home:glaubitz:branches:devel:languages:python
- Update to version 0.5
  * Add missing dependency
  * Remove use of deprecated py.test in tests
  * commit some edits which has been living in my local copy for years
  * Modernized the packaging configuration
  * Added automatic release workflow
  * Added specification on what module to package
  * Bumped up the version
  * Fixed trigger for the publish action
  * Fixed content-type parameter
- Switch package to modern Python Stack on SLE-15
  * Use Python 3.11 on SLE-15 by default
  * Drop support for older Python versions
- Switch build system from setuptools to pyproject.toml
  * Add python-pip and python-wheel to BuildRequires
  * Replace %python_build with %pyproject_wheel
  * Replace %python_install with %pyproject_install
- Update Requires from pyproject.toml

OBS-URL: https://build.opensuse.org/request/show/1229320
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wmctrl?expand=0&rev=8
2024-12-09 12:29:42 +00:00
4 changed files with 49 additions and 13 deletions

View File

@@ -1,3 +1,36 @@
-------------------------------------------------------------------
Wed Apr 30 04:25:10 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Add missing BuildRequires on attrs.
- Be a tiny bit more explicit in the files list.
-------------------------------------------------------------------
Wed Dec 11 12:48:56 UTC 2024 - Andreas Schwab <schwab@suse.de>
- Avoid race condition in test script
-------------------------------------------------------------------
Mon Dec 9 11:08:46 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to version 0.5
* Add missing dependency
* Remove use of deprecated py.test in tests
* commit some edits which has been living in my local copy for years
* Modernized the packaging configuration
* Added automatic release workflow
* Added specification on what module to package
* Bumped up the version
* Fixed trigger for the publish action
* Fixed content-type parameter
- Switch package to modern Python Stack on SLE-15
* Use Python 3.11 on SLE-15 by default
* Drop support for older Python versions
- Switch build system from setuptools to pyproject.toml
* Add python-pip and python-wheel to BuildRequires
* Replace %python_build with %pyproject_wheel
* Replace %python_install with %pyproject_install
- Update Requires from pyproject.toml
-------------------------------------------------------------------
Thu Jan 26 01:23:32 UTC 2023 - John Vandenberg <jayvdb@gmail.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-wmctrl
#
# Copyright (c) 2021 SUSE LLC
# 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
@@ -16,18 +16,20 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%{?sle15_python_module_pythons}
Name: python-wmctrl
Version: 0.4
Version: 0.5
Release: 0
Summary: Python programmatic control of X windows
# Project is in the process of transitioning from Bitbucket to GitHub
License: MIT
Group: Development/Languages/Python
URL: https://github.com/antocuni/wmctrl
Source: https://files.pythonhosted.org/packages/source/w/wmctrl/wmctrl-%{version}.tar.gz
BuildRequires: %{python_module attrs}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: openbox
BuildRequires: python-rpm-macros
@@ -36,6 +38,7 @@ BuildRequires: xclock
BuildRequires: xfontsel
BuildRequires: xorg-x11-server
BuildRequires: xvfb-run
Requires: python-attrs
Requires: wmctrl
Requires: xorg-x11-server
BuildArch: noarch
@@ -50,10 +53,10 @@ Python tool to programmatically control windows inside X.
sed -i 's/\(py$\|py\.test\)/pytest/g' test/test_wmctrl.py
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@@ -61,7 +64,7 @@ sed -i 's/\(py$\|py\.test\)/pytest/g' test/test_wmctrl.py
cat > /tmp/test_script.sh <<EOF
#!/bin/sh
openbox &
sleep 5
sleep 10
wmctrl -l -G -p -x
$python -m pytest -rs -k 'not (test_activate or test_properties or test_Desktop_active)' test/test_wmctrl.py
EOF
@@ -71,8 +74,8 @@ xvfb-run /tmp/test_script.sh
%files %{python_files}
%license LICENSE
%{python_sitelib}/wmctrl.py*
%pycache_only %{python_sitelib}/__pycache__
%{python_sitelib}/wmctrl*/
%{python_sitelib}/wmctrl.py
%pycache_only %{python_sitelib}/__pycache__/wmctrl*pyc
%{python_sitelib}/wmctrl-%{version}.dist-info
%changelog

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:66cbff72b0ca06a22ec3883ac3a4d7c41078bdae4fb7310f52951769b10e14e0
size 5437

3
wmctrl-0.5.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7839a36b6fe9e2d6fd22304e5dc372dbced2116ba41283ea938b2da57f53e962
size 5202