forked from pool/python-python-xlib
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
This commit is contained in:
committed by
Git OBS Bridge
parent
841fa0064f
commit
d745e1cf71
@@ -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>
|
||||
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user