From d745e1cf71f6504d68f19031e6ff677cd4b6035889c22387ac29f1a7caa669cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 17 Aug 2020 06:16:02 +0000 Subject: [PATCH] Accepting request 827116 from home:jayvdb:py-submit Replace nose with pytest OBS-URL: https://build.opensuse.org/request/show/827116 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-xlib?expand=0&rev=14 --- python-python-xlib.changes | 6 ++++++ python-python-xlib.spec | 9 +++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/python-python-xlib.changes b/python-python-xlib.changes index 57bfe1f..21f6070 100644 --- a/python-python-xlib.changes +++ b/python-python-xlib.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun Aug 16 21:12:28 UTC 2020 - John Vandenberg + +- Replace nose with pytest +- dos2unix %doc files + ------------------------------------------------------------------- Wed Aug 5 08:07:43 UTC 2020 - Marketa Calabkova diff --git a/python-python-xlib.spec b/python-python-xlib.spec index 18fa1a1..46c6610 100644 --- a/python-python-xlib.spec +++ b/python-python-xlib.spec @@ -26,12 +26,12 @@ 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} -BuildRequires: %{python_module nose} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module six >= 1.10.0} +BuildRequires: dos2unix BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: xvfb-run @@ -52,7 +52,8 @@ The Python X Library is intended to be a fully functional X client library for Python programs. %prep -%autosetup -n python-xlib-%{version} -p1 +%setup -q -n python-xlib-%{version} +dos2unix CHANGELOG.md README.rst TODO %build %python_build @@ -62,7 +63,7 @@ library for Python programs. %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_expand xvfb-run --server-args "-screen 0 1920x1080x24" $python runtests.py +%python_expand xvfb-run --server-args "-screen 0 1920x1080x24" $python -m pytest -rs %files %{python_files} %license LICENSE