diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 54f1632..0000000 --- a/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2016 Florian Bruhin - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/pytest-xvfb-2.0.0.tar.gz b/pytest-xvfb-2.0.0.tar.gz deleted file mode 100644 index c86d151..0000000 --- a/pytest-xvfb-2.0.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c4ba642de05499940db7f65ee111621939be513e3e75c3da9156b7235e2ed8cf -size 6575 diff --git a/pytest-xvfb-3.0.0.tar.gz b/pytest-xvfb-3.0.0.tar.gz new file mode 100644 index 0000000..2155641 --- /dev/null +++ b/pytest-xvfb-3.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3746ab1f4d1159f03f751638d053689ccd284291b38b8fb03d3ebbe7bf69cfc0 +size 8607 diff --git a/python-pytest-xvfb.changes b/python-pytest-xvfb.changes index cbe8a23..79bb8cf 100644 --- a/python-pytest-xvfb.changes +++ b/python-pytest-xvfb.changes @@ -1,3 +1,22 @@ +------------------------------------------------------------------- +Wed Sep 27 10:03:35 UTC 2023 - Ben Greiner + +- Update to 3.0.0 + * New --xvfb-backend argument, which can be used to run Xephyr or + Xvnc in place of Xvfb (e.g. for visual inspection but on a + remote system or a consistent screen size needed). + * Support for Python 3.5 and 3.6 is now dropped, while official + support for 3.9, 3.10 and 3.11 was added (with no code chances + required). + * The Xvfb instance is now no longer saved in pytest's config + object as config.xvfb anymore, and only available via the xvfb + fixture. + * Xvfb is now shut down as late as possible (via an atexit hook + registered at import time), seemingly avoiding errors such as + "XIO: fatal IO error 0 (Success)". + * Code reformatting using black/shed. + * Packaging refresh using pyproject.toml. + ------------------------------------------------------------------- Sat Jun 10 09:42:19 UTC 2023 - ecsos diff --git a/python-pytest-xvfb.spec b/python-pytest-xvfb.spec index 36af663..9a31044 100644 --- a/python-pytest-xvfb.spec +++ b/python-pytest-xvfb.spec @@ -18,21 +18,22 @@ %{?sle15_python_module_pythons} Name: python-pytest-xvfb -Version: 2.0.0 +Version: 3.0.0 Release: 0 Summary: Pytest plugin to run Xvfb for tests License: MIT URL: https://github.com/The-Compiler/pytest-xvfb Source: https://files.pythonhosted.org/packages/source/p/pytest-xvfb/pytest-xvfb-%{version}.tar.gz -# https://github.com/The-Compiler/pytest-xvfb/pull/26 -Source1: https://raw.githubusercontent.com/The-Compiler/pytest-xvfb/master/LICENSE -BuildRequires: %{python_module PyVirtualDisplay >= 0.3} +BuildRequires: %{python_module PyVirtualDisplay >= 1.3} +BuildRequires: %{python_module base >= 3.7} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest >= 2.8.1} -BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module setuptools >= 61.2} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: xvfb-run -Requires: python-PyVirtualDisplay >= 0.3 +Requires: python-PyVirtualDisplay >= 1.3 Requires: python-pytest >= 2.8.1 Requires: xdpyinfo Recommends: xorg-x11-server @@ -57,22 +58,24 @@ benefits of Xvfb locally. %prep %setup -q -n pytest-xvfb-%{version} rm tests/test_xvfb_windows.py -cp %{SOURCE1} . %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -# test_failing_start fails on i586 -%pytest -k 'not test_failing_start' +# can't test this on obs +donttest="test_empty_display or test_no_xvfb_marker or test_xvfb_with_xauth" +%pytest -k "not ($donttest)" %files %{python_files} %license LICENSE %doc README.rst -%{python_sitelib}/* +%{python_sitelib}/pytest_xvfb.py +%pycache_only %{python_sitelib}/__pycache__/pytest_xvfb*.pyc +%{python_sitelib}/pytest_xvfb-%{version}.dist-info %changelog