14
0

Accepting request 957765 from devel:languages:python

- update to 0.31:
  * XInput: add event methods 
  * XResource: first implementation (thanks @alebastr).
  * Randr: add missing parameters to delete_output_mode function
- use multibuild to avoid expensive pytest-xvfb dependency
  (should reduce rebuild_time of 1-MinimalX by ~ 12 minutes)

OBS-URL: https://build.opensuse.org/request/show/957765
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-xlib?expand=0&rev=10
This commit is contained in:
2022-02-27 21:42:47 +00:00
committed by Git OBS Bridge
5 changed files with 40 additions and 12 deletions

3
_multibuild Normal file
View File

@@ -0,0 +1,3 @@
<multibuild>
<package>test</package>
</multibuild>

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Sat Feb 26 12:44:54 UTC 2022 - Dirk Müller <dmueller@suse.com>
- update to 0.31:
* XInput: add event methods
* XResource: first implementation (thanks @alebastr).
* Randr: add missing parameters to delete_output_mode function
- use multibuild to avoid expensive pytest-xvfb dependency
(should reduce rebuild_time of 1-MinimalX by ~ 12 minutes)
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Aug 12 11:29:05 UTC 2021 - Yifan Jiang <yfjiang@suse.com> Thu Aug 12 11:29:05 UTC 2021 - Yifan Jiang <yfjiang@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-python-xlib # spec file
# #
# Copyright (c) 2021 SUSE LLC # Copyright (c) 2022 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -22,8 +22,17 @@
%else %else
%define oldpython python %define oldpython python
%endif %endif
Name: python-python-xlib %global flavor @BUILD_FLAVOR@%{nil}
Version: 0.29 %if "%{flavor}" == "test"
%define psuffix -test
%bcond_without test
%else
%define psuffix %{nil}
%bcond_with test
%bcond_with wheel
%endif
Name: python-python-xlib%{psuffix}
Version: 0.31
Release: 0 Release: 0
Summary: Python X11 interface Summary: Python X11 interface
License: LGPL-2.1-or-later License: LGPL-2.1-or-later
@@ -32,11 +41,13 @@ URL: https://github.com/python-xlib/python-xlib
Source: https://files.pythonhosted.org/packages/source/p/python-xlib/python-xlib-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/p/python-xlib/python-xlib-%{version}.tar.gz
# PATCH-FEATURE-UPSTREAM remove-mock.patch -- gh#python-xlib/python-xlib#186 # PATCH-FEATURE-UPSTREAM remove-mock.patch -- gh#python-xlib/python-xlib#186
Patch0: remove-mock.patch Patch0: remove-mock.patch
BuildRequires: %{python_module pytest-xvfb}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
%if %{with test}
BuildRequires: %{python_module pytest-xvfb}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module six >= 1.10.0} BuildRequires: %{python_module six >= 1.10.0}
%endif
%if 0%{suse_version} < 1550 %if 0%{suse_version} < 1550
BuildRequires: python-mock BuildRequires: python-mock
BuildRequires: xauth BuildRequires: xauth
@@ -67,17 +78,21 @@ dos2unix CHANGELOG.md README.rst TODO dev-requirements.txt test/*
%build %build
%python_build %python_build
%if %{with test}
%check
%pytest -rs
%else
%install %install
%python_install %python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest -rs
%files %{python_files} %files %{python_files}
%license LICENSE %license LICENSE
%doc CHANGELOG.md README.rst TODO %doc CHANGELOG.md README.rst TODO
%{python_sitelib}/Xlib/ %{python_sitelib}/Xlib/
%{python_sitelib}/python_xlib-* %{python_sitelib}/python_xlib-*
%endif
%changelog %changelog

View File

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

3
python-xlib-0.31.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:74d83a081f532bc07f6d7afcd6416ec38403d68f68b9b9dc9e1f28fbf2d799e9
size 266303