Blob Blame History Raw
%global pypi_name pytest-xvfb

Name:           python-%{pypi_name}
Version:        2.0.0
Release:        5%{?dist}
Summary:        A pytest plugin to run Xvfb for tests

License:        MIT
Source0:        %{pypi_source}
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  %{py3_dist setuptools}
# For tests
BuildRequires:  %{py3_dist pytest} >= 2.8.1
BuildRequires:  %{py3_dist pyvirtualdisplay} >= 1.3
BuildRequires:  xorg-x11-xauth

%global _description %{expand:
With Xvfb and the plugin installed, your testsuite automatically runs with
Xvfb. This allows tests to be run without windows popping up during GUI tests
or on systems without a display (like a CI).

If Xvfb is not installed, the plugin does not run and your tests will still
work as normal. However, a warning message will print to standard output
letting you know that Xvfb is not installed.

If you're currently using xvfb-run in something like .travis.yml, simply remove
it and install this plugin instead - then you'll also have the benefits of Xvfb

%description %_description

%package -n     python3-%{pypi_name}
Summary:        %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}

Requires:       %{py3_dist py}
%description -n python3-%{pypi_name} %_description

%autosetup -n %{pypi_name}-%{version}
rm tests/




%files -n python3-%{pypi_name}
%pycached %{python3_sitelib}/

* Mon Jun 13 2022 Python Maint <> - 2.0.0-5
- Rebuilt for Python 3.11

* Fri Jan 21 2022 Fedora Release Engineering <> - 2.0.0-4
- Rebuilt for

* Fri Jul 23 2021 Fedora Release Engineering <> - 2.0.0-3
- Rebuilt for

* Fri Jun 04 2021 Python Maint <> - 2.0.0-2
- Rebuilt for Python 3.10

* Sat Feb 13 2021 Scott Talbert <> - 2.0.0-1
- Initial package