Hello community, here is the log from the commit of package python-python-xlib for openSUSE:Factory checked in at 2020-12-16 10:59:15 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-python-xlib (Old) and /work/SRC/openSUSE:Factory/.python-python-xlib.new.2328 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-python-xlib" Wed Dec 16 10:59:15 2020 rev:8 rq:855356 version:0.29 Changes: -------- --- /work/SRC/openSUSE:Factory/python-python-xlib/python-python-xlib.changes 2020-08-25 12:37:32.461399652 +0200 +++ /work/SRC/openSUSE:Factory/.python-python-xlib.new.2328/python-python-xlib.changes 2020-12-16 10:59:16.715498641 +0100 @@ -1,0 +2,13 @@ +Fri Dec 11 23:39:19 UTC 2020 - Benjamin Greiner <c...@bnavigator.de> + +- Update to version 0.29 + * Drawable & XInput: Avoid using array.array.tostring() which + will be removed in Python 3.9 (thanks @t-wissmann). +- Changelog for version 0.28 + * DPMS: Display Power Management Signaling (by @thiagokokada) +- Add remove-mock.patch gh#python-xlib/python-xlib#186 +- Let the python-rpm-macros do their job for correct provides and + obsoletes tag for all python3 flavors + gh#openSUSE/python-rpm-macros#66 + +------------------------------------------------------------------- Old: ---- python-xlib-0.27.tar.bz2 New: ---- python-xlib-0.29.tar.gz remove-mock.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-python-xlib.spec ++++++ --- /var/tmp/diff_new_pack.0B8v9G/_old 2020-12-16 10:59:18.047499949 +0100 +++ /var/tmp/diff_new_pack.0B8v9G/_new 2020-12-16 10:59:18.051499954 +0100 @@ -19,32 +19,34 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define oldpython python Name: python-python-xlib -Version: 0.27 +Version: 0.29 Release: 0 Summary: Python X11 interface License: LGPL-2.1-or-later Group: Development/Libraries/Python URL: https://github.com/python-xlib/python-xlib -Source: https://files.pythonhosted.org/packages/source/p/python-xlib/python-xlib-%{version}.tar.bz2 -BuildRequires: %{python_module mock} +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 +Patch0: remove-mock.patch +BuildRequires: %{python_module pytest-xvfb} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module six >= 1.10.0} +%if 0%{suse_version} < 1550 +BuildRequires: python-mock +%endif BuildRequires: dos2unix BuildRequires: fdupes BuildRequires: python-rpm-macros -BuildRequires: xvfb-run Requires: python-six >= 1.10.0 BuildArch: noarch +Provides: python-xlib = %{version} +Obsoletes: python-xlib < %{version} %ifpython2 Provides: %{oldpython}-xlib = %{version} Obsoletes: %{oldpython}-xlib < %{version} %endif -%ifpython3 -Provides: python3-xlib = %{version} -Obsoletes: python3-xlib < %{version} -%endif %python_subpackages %description @@ -53,7 +55,9 @@ %prep %setup -q -n python-xlib-%{version} -dos2unix CHANGELOG.md README.rst TODO +dos2unix CHANGELOG.md README.rst TODO dev-requirements.txt test/* +# patch only applies to unix endings +%patch0 -p1 %build %python_build @@ -63,7 +67,7 @@ %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_expand xvfb-run --server-args "-screen 0 1920x1080x24" $python -m pytest -rs +%pytest -rs %files %{python_files} %license LICENSE ++++++ remove-mock.patch ++++++ From 8bab50254d78370398dcbdf247d59976b866c27f Mon Sep 17 00:00:00 2001 From: Ben Greiner <c...@bnavigator.de> Date: Sat, 12 Dec 2020 00:57:16 +0100 Subject: [PATCH 1/2] remove mock from dev-requirments --- dev-requirements.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/dev-requirements.txt b/dev-requirements.txt index b2f5288..22fc710 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -1,5 +1,4 @@ coverage codecov -mock nose setuptools-scm From 4c08116d51e2b2b2bc53d01ee8dd9698793cad5d Mon Sep 17 00:00:00 2001 From: Ben Greiner <c...@bnavigator.de> Date: Sat, 12 Dec 2020 00:58:19 +0100 Subject: [PATCH 2/2] Use mock from standard lib if possible --- test/test_unix_connect.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/test_unix_connect.py b/test/test_unix_connect.py index 7680ba5..36abede 100644 --- a/test/test_unix_connect.py +++ b/test/test_unix_connect.py @@ -6,7 +6,10 @@ import sys import unittest -from mock import patch +try: + from unittest.mock import patch +except ImportError: + from mock import patch from Xlib.support import unix_connect from Xlib.error import DisplayConnectionError, DisplayNameError _______________________________________________ openSUSE Commits mailing list -- commit@lists.opensuse.org To unsubscribe, email commit-le...@lists.opensuse.org List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette List Archives: https://lists.opensuse.org/archives/list/commit@lists.opensuse.org