8b5573a
%?python_enable_dependency_generator
d4e055e
%global srcname pytest-cov
d4e055e
d4e055e
Name:           python-%{srcname}
730169d
Version:        2.8.1
dbd1b7d
Release:        1%{?dist}
d4e055e
Summary:        Pytest plugin for coverage reporting
d4e055e
d4e055e
License:        MIT
d4e055e
URL:            https://pypi.python.org/pypi/%{srcname}
Orion Poplawski 5dc1b67
Source0:        https://github.com/pytest-dev/%{srcname}/archive/v%{version}/%{srcname}-%{version}.tar.gz
d4e055e
d4e055e
BuildArch:      noarch
d4e055e
d4e055e
%description
d4e055e
Py.test plugin for coverage reporting with support for both centralised and
Orion Poplawski 5dc1b67
distributed testing, including subprocesses and multiprocessing for Python.
Orion Poplawski 5dc1b67
Orion Poplawski 5dc1b67
Orion Poplawski 5dc1b67
%package -n python2-%{srcname}
Orion Poplawski 5dc1b67
Summary:        Pytest plugin for coverage reporting
Orion Poplawski 5dc1b67
BuildRequires:  python2-devel
Orion Poplawski 5dc1b67
BuildRequires:  python2-setuptools
Orion Poplawski 5dc1b67
# For tests
baf0ab0
#  Not packaged: python2-fields
baf0ab0
#BuildRequires:  python2-pytest
baf0ab0
#BuildRequires:  python2-coverage >= 4.4
baf0ab0
#BuildRequires:  python2-fields
baf0ab0
#BuildRequires:  python2-process-tests
baf0ab0
#BuildRequires:  python2-six
baf0ab0
#BuildRequires:  python2-virtualenv
baf0ab0
#BuildRequires:  python2-pytest-xdist
Orion Poplawski 5dc1b67
%{?python_provide:%python_provide python2-%{srcname}}
Orion Poplawski 5dc1b67
Orion Poplawski 5dc1b67
%description -n python2-%{srcname}
Orion Poplawski 5dc1b67
Py.test plugin for coverage reporting with support for both centralised and
d4e055e
distributed testing, including subprocesses and multiprocessing for Python 2.
d4e055e
d4e055e
Orion Poplawski a5aad57
%package -n python%{python3_pkgversion}-%{srcname}
d4e055e
Summary:        Pytest plugin for coverage reporting
Orion Poplawski a5aad57
BuildRequires:  python%{python3_pkgversion}-devel
Orion Poplawski a5aad57
BuildRequires:  python%{python3_pkgversion}-setuptools
8b5573a
BuildRequires:  python%{python3_pkgversion}-pytest >= 3.6
adc0afe
BuildRequires:  python%{python3_pkgversion}-coverage >= 4.4
Orion Poplawski 7e71bb9
# For tests
baf0ab0
BuildRequires:  python%{python3_pkgversion}-fields
Orion Poplawski a5aad57
BuildRequires:  python%{python3_pkgversion}-process-tests
Orion Poplawski 5dc1b67
BuildRequires:  python%{python3_pkgversion}-six
Orion Poplawski a5aad57
BuildRequires:  python%{python3_pkgversion}-virtualenv
7bfd331
BuildRequires:  python%{python3_pkgversion}-pytest-xdist
Orion Poplawski 5dc1b67
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
d4e055e
Orion Poplawski a5aad57
%description -n python%{python3_pkgversion}-%{srcname}
d4e055e
Py.test plugin for coverage reporting with support for both centralised and
d4e055e
distributed testing, including subprocesses and multiprocessing for Python 3.
d4e055e
d4e055e
d4e055e
%prep
d4e055e
%setup -q -n %{srcname}-%{version}
d4e055e
rm -rf *.egg-info
d4e055e
d4e055e
d4e055e
%build
Orion Poplawski 7e71bb9
%py2_build
Orion Poplawski 7e71bb9
%py3_build
d4e055e
d4e055e
d4e055e
%install
Orion Poplawski 7e71bb9
%py3_install
Orion Poplawski 7e71bb9
%py2_install
d4e055e
d4e055e
Robert Kuska 020dbd3
%check
baf0ab0
# Python 2 tests have unpackaged dependencies
baf0ab0
# test_dist_missing_data needs internet
baf0ab0
# test_central_subprocess/dist_subprocess https://github.com/pytest-dev/pytest-cov/issues/90
baf0ab0
# test_subprocess_with_path_aliasing and test_dist_combine_racecondition tries to match strings and fails, mostly version mismatch
87e5181
# test_multiprocessing_pool{,_terminate, _close} cause deadlock on Python 3.8 - https://github.com/pytest-dev/pytest-cov/issues/295
7f99820
# To read a custom pth-file we need to add that path to site-dir, needed for tests at RPM build time                                   
7f99820
echo "import site;site.addsitedir(\"$(pwd)/src\")" > tests/sitecustomize.py        
7f99820
export PYTHONPATH="$(pwd)"/tests                                                
7f99820
py.test-%{python3_version} -vv \
87e5181
    -k "not test_dist_missing_data and not test_subprocess_with_path_aliasing and not test_dist_combine_racecondition and not central_subprocess and not dist_subprocess \
87e5181
        and not test_multiprocessing_pool and not test_multiprocessing_pool_terminate and not test_multiprocessing_pool_close"
d4e055e
d4e055e
Orion Poplawski 5dc1b67
%files -n python2-%{srcname}
Orion Poplawski 7e71bb9
%license LICENSE
Orion Poplawski 7e71bb9
%doc AUTHORS.rst CHANGELOG.rst CONTRIBUTING.rst README.rst
d4e055e
%{python2_sitelib}/*
d4e055e
Orion Poplawski a5aad57
%files -n python%{python3_pkgversion}-%{srcname}
Orion Poplawski 7e71bb9
%license LICENSE
Orion Poplawski 7e71bb9
%doc AUTHORS.rst CHANGELOG.rst CONTRIBUTING.rst README.rst
d4e055e
%{python3_sitelib}/*
d4e055e
d4e055e
d4e055e
%changelog
730169d
* Sat Oct  5 2019 Orion Poplawski <orion@nwra.com> - 2.8.1-1
730169d
- Update to 2.8.1
730169d
dbd1b7d
* Fri Oct  4 2019 Orion Poplawski <orion@nwra.com> - 2.8.0-1
dbd1b7d
- Update to 2.8.0
dbd1b7d
933c81c
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.7.1-6
933c81c
- Rebuilt for Python 3.8.0rc1 (#1748018)
933c81c
d158875
* Sat Aug 17 2019 Miro Hrončok <mhroncok@redhat.com> - 2.7.1-5
d158875
- Rebuilt for Python 3.8
d158875
8b5573a
* Fri Aug 16 2019 Orion Poplawski <orion@nwra.com> - 2.7.1-4
8b5573a
- Enable python dependency generator
8b5573a
- Specify minimum pytest requirement in BR
8b5573a
6c22b06
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.1-3
6c22b06
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
6c22b06
87e5181
* Thu May 16 2019 Lumír Balhar <lbalhar@redhat.com> - 2.7.1-2
87e5181
- Skip three tests (multiprocessing_pool) to fix FTBFS with Python 3.8
87e5181
7f99820
* Sun May  5 2019 Orion Poplawski <orion@nwra.com> - 2.7.1-1
7f99820
- Update to 2.7.1
7f99820
baf0ab0
* Thu Apr 04 2019 Miro Hrončok <mhroncok@redhat.com> - 2.6.1-1
baf0ab0
- Update to 2.6.1 for pytest 4 compatibility
baf0ab0
7bfd331
* Tue Feb 12 2019 Orion Poplawski <orion@nwra.com> - 2.6.0-3
7bfd331
- Build with pytest-xdist
7bfd331
204a297
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.0-2
204a297
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
204a297
adc0afe
* Wed Dec 05 2018 Randy Barlow <bowlofeggs@fedoraproject.org> - 2.6.0-1
adc0afe
- Update to 2.6.0.
adc0afe
62fa013
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.1-6
62fa013
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
62fa013
ce53ba5
* Sat Jun 16 2018 Miro Hrončok <mhroncok@redhat.com> - 2.5.1-5
ce53ba5
- Rebuilt for Python 3.7
ce53ba5
d88bcfd
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.1-4
d88bcfd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
d88bcfd
Orion Poplawski 5dc1b67
* Wed Aug 9 2017 Orion Poplawski <orion@cora.nwra.com> - 2.5.1-3
Orion Poplawski 5dc1b67
- Ship python2-pytest-cov
Orion Poplawski 5dc1b67
0f74c0a
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.1-2
0f74c0a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
0f74c0a
Orion Poplawski d8c4c1f
* Fri May 12 2017 Orion Poplawski <orion@cora.nwra.com> - 2.5.1-1
Orion Poplawski d8c4c1f
- Update to 2.5.1
Orion Poplawski d8c4c1f
Orion Poplawski 1eb27e6
* Wed May 10 2017 Orion Poplawski <orion@cora.nwra.com> - 2.5.0-1
Orion Poplawski 1eb27e6
- Update to 2.5.0
Orion Poplawski 1eb27e6
e8ef211
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-3
e8ef211
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
e8ef211
c3394f1
* Tue Dec 13 2016 Stratakis Charalampos <cstratak@redhat.com> - 2.4.0-2
c3394f1
- Rebuild for Python 3.6
c3394f1
Orion Poplawski a5aad57
* Mon Oct 10 2016 Orion Poplawski <orion@cora.nwra.com> - 2.4.0-1
Orion Poplawski a5aad57
- Update to 2.4.0
Orion Poplawski a5aad57
b9f4120
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.0-2
b9f4120
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
b9f4120
Orion Poplawski d825a64
* Thu Jul 7 2016 Orion Poplawski <orion@cora.nwra.com> - 2.3.0-1
Orion Poplawski d825a64
- Update to 2.3.0
Orion Poplawski d825a64
Orion Poplawski 06e3c0f
* Mon May 23 2016 Orion Poplawski <orion@cora.nwra.com> - 2.2.1-1
Orion Poplawski 06e3c0f
- Ignore failing tests
Orion Poplawski 06e3c0f
Orion Poplawski 1730544
* Sat Feb 13 2016 Orion Poplawski <orion@cora.nwra.com> - 2.2.1-1
Orion Poplawski 1730544
- Update to 2.2.1
Orion Poplawski 1730544
9236edf
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-3
9236edf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
9236edf
Robert Kuska fa3fb13
* Fri Nov 06 2015 Robert Kuska <rkuska@redhat.com> - 2.2.0-2
Robert Kuska fa3fb13
- Rebuilt for Python3.5 rebuild
Robert Kuska fa3fb13
- Skip tests for a python3 rebuild as it seems to be env failure
Robert Kuska fa3fb13
Orion Poplawski a180007
* Mon Oct 5 2015 Orion Poplawski <orion@cora.nwra.com> - 2.2.0-1
Orion Poplawski a180007
- Update to 2.2.0
Orion Poplawski a180007
Orion Poplawski 7e71bb9
* Mon Sep 14 2015 Orion Poplawski <orion@cora.nwra.com> - 2.1.0-2
Orion Poplawski 7e71bb9
- Modernize spec
Orion Poplawski 7e71bb9
- Run tests properly, skipping xdist tests for now
Orion Poplawski 7e71bb9
9020e26
* Mon Sep 14 2015 Tomas Tomecek <ttomecek@redhat.com> - 2.1.0-1
9020e26
- upstream release 2.1.0
9020e26
c92eb5a
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6-4
c92eb5a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
c92eb5a
3232324
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6-3
3232324
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
3232324
05be5ac
* Tue May 27 2014 Orion Poplawski <orion@cora.nwra.com> - 1.6-2
05be5ac
- Rebuild for Python 3.4
05be5ac
d4e055e
* Tue Feb 25 2014 Orion Poplawski <orion@cora.nwra.com> - 1.6-1
d4e055e
- Initial package