14
0

Accepting request 827207 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/827207
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-xlib?expand=0&rev=7
This commit is contained in:
2020-08-25 10:37:29 +00:00
committed by Git OBS Bridge
2 changed files with 11 additions and 4 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sun Aug 16 21:12:28 UTC 2020 - John Vandenberg <jayvdb@gmail.com>
- Replace nose with pytest
- dos2unix %doc files
-------------------------------------------------------------------
Wed Aug 5 08:07:43 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>

View File

@@ -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