14
0

Accepting request 828220 from home:jayvdb:py-submit

- Remove %bcond_without test and activate test suite
- Update to v1.3.2
  * No changelog available
    See https://github.com/ponty/PyVirtualDisplay/compare/0.2.5...1.3.2

OBS-URL: https://build.opensuse.org/request/show/828220
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyVirtualDisplay?expand=0&rev=25
This commit is contained in:
Tomáš Chvátal
2020-08-21 09:40:13 +00:00
committed by Git OBS Bridge
parent 0e5803d81d
commit d404a51a41
4 changed files with 32 additions and 20 deletions

View File

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

View File

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

View File

@@ -1,3 +1,11 @@
-------------------------------------------------------------------
Fri Aug 14 12:54:39 UTC 2020 - John Vandenberg <jayvdb@gmail.com>
- Remove %bcond_without test and activate test suite
- Update to v1.3.2
* No changelog available
See https://github.com/ponty/PyVirtualDisplay/compare/0.2.5...1.3.2
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Mar 2 04:20:32 UTC 2020 - Steve Kowalik <steven.kowalik@suse.com> Mon Mar 2 04:20:32 UTC 2020 - Steve Kowalik <steven.kowalik@suse.com>

View File

@@ -17,33 +17,43 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without test
Name: python-PyVirtualDisplay Name: python-PyVirtualDisplay
Version: 0.2.5 Version: 1.3.2
Release: 0 Release: 0
Summary: Python wrapper for Xvfb, Xephyr and Xvnc Summary: Python wrapper for Xvfb, Xephyr and Xvnc
License: BSD-2-Clause License: BSD-2-Clause
URL: https://github.com/ponty/PyVirtualDisplay URL: https://github.com/ponty/PyVirtualDisplay
Source: https://files.pythonhosted.org/packages/source/P/PyVirtualDisplay/PyVirtualDisplay-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/P/PyVirtualDisplay/PyVirtualDisplay-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-EasyProcess Requires: python-EasyProcess
Requires: xorg-x11-Xvfb Requires: xorg-x11-Xvfb
Recommends: xorg-x11-Xvnc Suggests: xorg-x11-Xvnc
Suggests: xorg-x11-server-extra Suggests: xorg-x11-server-extra
BuildArch: noarch BuildArch: noarch
%if %{with test} # SECTION test requirements
BuildRequires: %{python_module EasyProcess} BuildRequires: %{python_module EasyProcess}
BuildRequires: %{python_module nose} BuildRequires: %{python_module Pillow}
%endif BuildRequires: %{python_module attrs}
BuildRequires: %{python_module entrypoint2}
BuildRequires: %{python_module path.py}
BuildRequires: %{python_module pyscreenshot}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module vncdotool >= 0.13.0}
BuildRequires: maim
BuildRequires: xmessage
BuildRequires: xorg-x11-server-extra
BuildRequires: xvfb-run
# /SECTION
%python_subpackages %python_subpackages
%description %description
PyVirtualDisplay is a python wrapper for Xvfb, Xephyr and Xvnc PyVirtualDisplay is a python wrapper for Xvfb, Xephyr and Xvnc.
%prep %prep
%setup -q -n PyVirtualDisplay-%{version} %setup -q -n PyVirtualDisplay-%{version}
sed -i 's/from backports import tempfile/import tempfile/' tests/test_xvnc.py
%build %build
%python_build %python_build
@@ -52,19 +62,13 @@ PyVirtualDisplay is a python wrapper for Xvfb, Xephyr and Xvnc
%python_install %python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%if %{with test}
%check %check
mkdir tester # xvnc omitted due to "vncext: pseudocolour not supported"
pushd tester %python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} xvfb-run --server-args "-screen 0 1920x1080x24" $python -m pytest tests -rs -k 'not (examples or smart or xvnc)'
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib}
$python -B -m nose pyvirtualdisplay
}
popd
%endif
%files %{python_files} %files %{python_files}
%license LICENSE.txt %license LICENSE.txt
%doc README.rst %doc README.md
%{python_sitelib}/* %{python_sitelib}/*
%changelog %changelog