diff --git a/PyVirtualDisplay-2.1.tar.gz b/PyVirtualDisplay-2.1.tar.gz deleted file mode 100644 index 13b8cb7..0000000 --- a/PyVirtualDisplay-2.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9d4c6957ec2c4753b5293fb6a60a90d7c27fc01bc5de9b5aa863f7c1e3fb4efc -size 18024 diff --git a/PyVirtualDisplay-2.2.tar.gz b/PyVirtualDisplay-2.2.tar.gz new file mode 100644 index 0000000..b803518 --- /dev/null +++ b/PyVirtualDisplay-2.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3ecda6b183b03ba65dcfdf0019809722480d7b7e10eea6e3a40bf1ba3146bab7 +size 18075 diff --git a/python-PyVirtualDisplay.changes b/python-PyVirtualDisplay.changes index 46bdbc0..34cdf49 100644 --- a/python-PyVirtualDisplay.changes +++ b/python-PyVirtualDisplay.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Sat Oct 16 09:16:00 UTC 2021 - Ben Greiner + +- Update to v2.2 + * no release notes +- Disable python2: not supported, not resolvable on Leaps + ------------------------------------------------------------------- Sat Mar 27 13:35:24 UTC 2021 - Ben Greiner diff --git a/python-PyVirtualDisplay.spec b/python-PyVirtualDisplay.spec index 06f5f4c..9e55dcb 100644 --- a/python-PyVirtualDisplay.spec +++ b/python-PyVirtualDisplay.spec @@ -16,14 +16,16 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%{?!python_module:%define python_module() python3-%{**}} +%define skip_python2 1 Name: python-PyVirtualDisplay -Version: 2.1 +Version: 2.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 @@ -37,10 +39,9 @@ BuildRequires: %{python_module Pillow} BuildRequires: %{python_module attrs} BuildRequires: %{python_module entrypoint2} BuildRequires: %{python_module psutil} +BuildRequires: %{python_module pytest-xdist} 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 @@ -61,8 +62,12 @@ PyVirtualDisplay is a python wrapper for Xvfb, Xephyr and Xvnc. %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -# 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)' +donttest="examples or smart" +%{python_expand # +export PYTHONPATH=%{buildroot}%{$python_sitelib} +xvfb-run --server-args "-screen 0 1920x1080x24" \ + $python -m pytest -v tests -rs -k "not ($donttest)" -n auto +} %files %{python_files} %license LICENSE.txt