Blob Blame Raw
%global pypi_name pytest-forked
%global desc The pytest-forked plugin extends py.test by adding an option to run tests in\
isolated forked subprocesses. This is useful if you have tests involving C or\
C++ libraries that might crash the process. To use the plugin, simply use the\
--forked argument when invoking py.test.

Name:           python-%{pypi_name}
Version:        0.2
Release:        3%{?dist}
Summary:        py.test plugin for running tests in isolated forked subprocesses

License:        MIT
Patch0:         no-setuptools-scm.patch
BuildArch:      noarch

BuildRequires:  python2-devel python%{python3_pkgversion}-devel
BuildRequires:  python2-py pytest
BuildRequires:  python%{python3_pkgversion}-py python%{python3_pkgversion}-pytest


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

Requires:       python2-py pytest
%description -n python2-%{pypi_name}

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

Requires:       python%{python3_pkgversion}-py python%{python3_pkgversion}-pytest
%description -n python%{python3_pkgversion}-%{pypi_name}

%autosetup -n %{pypi_name}-%{version}
rm -f testing/conftest.pyc
rm -rf testing/__pycache__



PYTHONPATH=%{buildroot}%{python2_sitelib} py.test-%{python2_version} testing
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} testing

%files -n python2-%{pypi_name}
%doc example/boxed.txt README.rst
%license LICENSE

%files -n python%{python3_pkgversion}-%{pypi_name}
%doc example/boxed.txt README.rst
%license LICENSE

* Fri Feb 09 2018 Fedora Release Engineering <> - 0.2-3
- Rebuilt for

* Thu Aug 17 2017 Scott Talbert <> - 0.2-2
- Updated to use py[23]dist macros for BR and R

* Thu Aug 10 2017 Scott Talbert <> - 0.2-1
- Initial package.