diff --git a/PyVirtualDisplay-0.2.5.tar.gz b/PyVirtualDisplay-0.2.5.tar.gz deleted file mode 100644 index bcb4a38..0000000 --- a/PyVirtualDisplay-0.2.5.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5b267c8ffc98fcbd084ba852ab4caef3f22e9362bc5d117e1697e767553eaf41 -size 32471 diff --git a/PyVirtualDisplay-1.3.2.tar.gz b/PyVirtualDisplay-1.3.2.tar.gz new file mode 100644 index 0000000..095b0b0 --- /dev/null +++ b/PyVirtualDisplay-1.3.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3fa85a6e490e45eab64e6be19841e0ab15ec8054c97f162079a061da6a93eba0 +size 14852 diff --git a/python-PyVirtualDisplay.changes b/python-PyVirtualDisplay.changes index b35ba18..5ff9ca4 100644 --- a/python-PyVirtualDisplay.changes +++ b/python-PyVirtualDisplay.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Fri Aug 14 12:54:39 UTC 2020 - John Vandenberg + +- 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 diff --git a/python-PyVirtualDisplay.spec b/python-PyVirtualDisplay.spec index 00d3bd2..967881c 100644 --- a/python-PyVirtualDisplay.spec +++ b/python-PyVirtualDisplay.spec @@ -17,33 +17,43 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -%bcond_without test Name: python-PyVirtualDisplay -Version: 0.2.5 +Version: 1.3.2 Release: 0 Summary: Python wrapper for Xvfb, Xephyr and Xvnc License: BSD-2-Clause URL: https://github.com/ponty/PyVirtualDisplay Source: https://files.pythonhosted.org/packages/source/P/PyVirtualDisplay/PyVirtualDisplay-%{version}.tar.gz -BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-EasyProcess Requires: xorg-x11-Xvfb -Recommends: xorg-x11-Xvnc +Suggests: xorg-x11-Xvnc Suggests: xorg-x11-server-extra BuildArch: noarch -%if %{with test} +# SECTION test requirements BuildRequires: %{python_module EasyProcess} -BuildRequires: %{python_module nose} -%endif +BuildRequires: %{python_module Pillow} +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 %description -PyVirtualDisplay is a python wrapper for Xvfb, Xephyr and Xvnc +PyVirtualDisplay is a python wrapper for Xvfb, Xephyr and Xvnc. %prep %setup -q -n PyVirtualDisplay-%{version} +sed -i 's/from backports import tempfile/import tempfile/' tests/test_xvnc.py %build %python_build @@ -52,19 +62,13 @@ PyVirtualDisplay is a python wrapper for Xvfb, Xephyr and Xvnc %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} -%if %{with test} %check -mkdir tester -pushd tester -%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib} -$python -B -m nose pyvirtualdisplay -} -popd -%endif +# xvnc omitted due to "vncext: pseudocolour not supported" +%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)' %files %{python_files} %license LICENSE.txt -%doc README.rst +%doc README.md %{python_sitelib}/* %changelog