%global pypi_name pytest-testmon
Name: python-%{pypi_name}
Version: 0.9.6
Release: 3%{?dist}
Summary: A py.test plug-in which executes only tests affected by recent changes
License: MIT
URL: http://testmon.org/
Source0: https://files.pythonhosted.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python2-devel
BuildRequires: python2-setuptools
BuildRequires: python2-pytest
BuildRequires: python2-coverage
BuildRequires: python2-coverage_pth
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pytest
BuildRequires: python3-coverage
BuildRequires: python3-coverage_pth
%description
This is a py.test plug-in which automatically selects and re-
executes only tests affected by recent changes.
%package -n python2-%{pypi_name}
Summary: A py.test plug-in which executes only tests affected by recent changes
%{?python_provide:%python_provide python2-%{pypi_name}}
Requires: python2-pytest >= 2.7.0
Requires: python2-coverage >= 4
Requires: python2-coverage_pth
Requires: python2-setuptools
%description -n python2-%{pypi_name}
This is a py.test plug-in which automatically selects and re-
executes only tests affected by recent changes.
This a Python 2 version of the package.
%package -n python3-%{pypi_name}
Summary: A py.test plug-in which executes only tests affected by recent changes
%{?python_provide:%python_provide python3-%{pypi_name}}
Requires: python3-pytest >= 2.7.0
Requires: python3-coverage >= 4
Requires: python3-coverage_pth
Requires: python3-setuptools
%description -n python3-%{pypi_name}
This is a py.test plug-in which automatically selects and re-
executes only tests affected by recent changes.
This a Python 3 version of the package.
%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info
%build
%py2_build
%py3_build
%install
%py2_install
%py3_install
%check
# The testsuite calls py.test command from different directory, so this is neccessary to see tesmon
export PYTHONPATH=$PWD
py.test-3
py.test-2
%files -n python2-%{pypi_name}
%license LICENSE
%doc README.rst
%{python2_sitelib}/testmon
%{python2_sitelib}/pytest_testmon-%{version}-py?.?.egg-info
%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{python3_sitelib}/testmon
%{python3_sitelib}/pytest_testmon-%{version}-py?.?.egg-info
%changelog
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.6-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Mon Jul 17 2017 Charalampos Stratakis <cstratak@redhat.com> - 0.9.6-1
- update to 0.9.6
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Thu Dec 22 2016 Miro Hrončok <mhroncok@redhat.com> - 0.9.3-1
- Update
- Rebuild for Python 3.6
* Sat Oct 01 2016 Julien Enselme <jujens@jujens.eu> - 0.8.2-3
- Add patch for pytest3
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.2-2
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
* Wed Apr 13 2016 Miro Hrončok <mhroncok@redhat.com> - 0.8.2-1
- New upstream release (removes the need for old patch)
- Be consistent with Requires and BRs
- Add coverage_pth to Requires
- Run tests and BR on dependencies
- Use GitHub archive to get tests
- export PYTHONPATH before running tests
- Add LICENSE file to %%license
* Fri Mar 11 2016 Miro Hrončok <mhroncok@redhat.com> - 0.8.1-1
- Initial package