Blame python-pytest-forked.spec

0ef27c
%global pypi_name pytest-forked
0ef27c
%global desc The pytest-forked plugin extends py.test by adding an option to run tests in\
0ef27c
isolated forked subprocesses. This is useful if you have tests involving C or\
0ef27c
C++ libraries that might crash the process. To use the plugin, simply use the\
0ef27c
--forked argument when invoking py.test.
0ef27c
0ef27c
Name:           python-%{pypi_name}
44f748
Version:        1.0.2
44f748
Release:        1%{?dist}
0ef27c
Summary:        py.test plugin for running tests in isolated forked subprocesses
0ef27c
0ef27c
License:        MIT
0ef27c
URL:            https://github.com/pytest-dev/pytest-forked
0ef27c
Source0:        https://files.pythonhosted.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
0ef27c
BuildArch:      noarch
0ef27c
0ef27c
BuildRequires:  python2-devel python3-devel
bc4f03
BuildRequires:  python2-py python2-pytest python2-setuptools_scm
bc4f03
BuildRequires:  python3-py python3-pytest python3-setuptools_scm
0ef27c
0ef27c
%description
0ef27c
%{desc}
0ef27c
0ef27c
%package -n     python2-%{pypi_name}
0ef27c
Summary:        %{summary}
0ef27c
%{?python_provide:%python_provide python2-%{pypi_name}}
0ef27c
bc4f03
Requires:       python2-py python2-pytest
0ef27c
%description -n python2-%{pypi_name}
0ef27c
%{desc}
0ef27c
0ef27c
%package -n     python3-%{pypi_name}
0ef27c
Summary:        %{summary}
0ef27c
%{?python_provide:%python_provide python3-%{pypi_name}}
0ef27c
bc4f03
Requires:       python3-py python3-pytest
0ef27c
%description -n python3-%{pypi_name}
0ef27c
%{desc}
0ef27c
0ef27c
%prep
0ef27c
%autosetup -n %{pypi_name}-%{version}
0ef27c
rm -f testing/conftest.pyc
0ef27c
rm -rf testing/__pycache__
0ef27c
0ef27c
%build
0ef27c
%py2_build
0ef27c
%py3_build
0ef27c
0ef27c
%install
0ef27c
%py2_install
0ef27c
%py3_install
0ef27c
0ef27c
%check
0ef27c
PYTHONPATH=%{buildroot}%{python2_sitelib} py.test-%{python2_version} testing
0ef27c
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} testing
0ef27c
0ef27c
0ef27c
%files -n python2-%{pypi_name}
0ef27c
%doc example/boxed.txt README.rst
0ef27c
%license LICENSE
0ef27c
%{python2_sitelib}/pytest_forked*
0ef27c
0ef27c
%files -n python3-%{pypi_name}
0ef27c
%doc example/boxed.txt README.rst
0ef27c
%license LICENSE
0ef27c
%{python3_sitelib}/pytest_forked*
0ef27c
0ef27c
%changelog
44f748
* Wed Feb 20 2019 Scott Talbert <swt@techie.net> - 1.0.2-1
44f748
- New upstream release 1.0.2
44f748
ce9756
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-2
ce9756
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
ce9756
202115
* Sat Jan 12 2019 Scott Talbert <swt@techie.net> - 1.0.1-1
202115
- New upstream release 1.0.1
202115
033b1e
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2-5
033b1e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
033b1e
e5a84a
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.2-4
e5a84a
- Rebuilt for Python 3.7
e5a84a
4e32f1
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2-3
4e32f1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
4e32f1
0ef27c
* Thu Aug 17 2017 Scott Talbert <swt@techie.net> - 0.2-2
0ef27c
- Updated to use py[23]dist macros for BR and R
0ef27c
0ef27c
* Thu Aug 10 2017 Scott Talbert <swt@techie.net> - 0.2-1
0ef27c
- Initial package.