Accepting request 1113852 from home:bnavigator:branches:devel:languages:python:pytest

- 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.

OBS-URL: https://build.opensuse.org/request/show/1113852
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-xvfb?expand=0&rev=15
This commit is contained in:
2023-09-28 11:47:02 +00:00
committed by Git OBS Bridge
parent 303035e73f
commit 68af6e8bfb
5 changed files with 37 additions and 36 deletions

21
LICENSE
View File

@@ -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.

BIN
pytest-xvfb-2.0.0.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
pytest-xvfb-3.0.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@@ -1,3 +1,22 @@
-------------------------------------------------------------------
Wed Sep 27 10:03:35 UTC 2023 - Ben Greiner <code@bnavigator.de>
- 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 <ecsos@opensuse.org> Sat Jun 10 09:42:19 UTC 2023 - ecsos <ecsos@opensuse.org>

View File

@@ -18,21 +18,22 @@
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
Name: python-pytest-xvfb Name: python-pytest-xvfb
Version: 2.0.0 Version: 3.0.0
Release: 0 Release: 0
Summary: Pytest plugin to run Xvfb for tests Summary: Pytest plugin to run Xvfb for tests
License: MIT License: MIT
URL: https://github.com/The-Compiler/pytest-xvfb URL: https://github.com/The-Compiler/pytest-xvfb
Source: https://files.pythonhosted.org/packages/source/p/pytest-xvfb/pytest-xvfb-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/p/pytest-xvfb/pytest-xvfb-%{version}.tar.gz
# https://github.com/The-Compiler/pytest-xvfb/pull/26 BuildRequires: %{python_module PyVirtualDisplay >= 1.3}
Source1: https://raw.githubusercontent.com/The-Compiler/pytest-xvfb/master/LICENSE BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module PyVirtualDisplay >= 0.3} BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest >= 2.8.1} BuildRequires: %{python_module pytest >= 2.8.1}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools >= 61.2}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
BuildRequires: xvfb-run BuildRequires: xvfb-run
Requires: python-PyVirtualDisplay >= 0.3 Requires: python-PyVirtualDisplay >= 1.3
Requires: python-pytest >= 2.8.1 Requires: python-pytest >= 2.8.1
Requires: xdpyinfo Requires: xdpyinfo
Recommends: xorg-x11-server Recommends: xorg-x11-server
@@ -57,22 +58,24 @@ benefits of Xvfb locally.
%prep %prep
%setup -q -n pytest-xvfb-%{version} %setup -q -n pytest-xvfb-%{version}
rm tests/test_xvfb_windows.py rm tests/test_xvfb_windows.py
cp %{SOURCE1} .
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
# test_failing_start fails on i586 # can't test this on obs
%pytest -k 'not test_failing_start' donttest="test_empty_display or test_no_xvfb_marker or test_xvfb_with_xauth"
%pytest -k "not ($donttest)"
%files %{python_files} %files %{python_files}
%license LICENSE %license LICENSE
%doc README.rst %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 %changelog