| |
@@ -1,8 +1,8 @@
|
| |
%global srcname pytest-cov
|
| |
|
| |
Name: python-%{srcname}
|
| |
- Version: 2.6.0
|
| |
- Release: 3%{?dist}
|
| |
+ Version: 2.6.1
|
| |
+ Release: 1%{?dist}
|
| |
Summary: Pytest plugin for coverage reporting
|
| |
|
| |
License: MIT
|
| |
@@ -20,17 +20,15 @@
|
| |
Summary: Pytest plugin for coverage reporting
|
| |
BuildRequires: python2-devel
|
| |
BuildRequires: python2-setuptools
|
| |
- BuildRequires: python2-pytest
|
| |
- BuildRequires: python2-coverage >= 4.4
|
| |
# For tests
|
| |
- # Not packaged
|
| |
- # BuildRequires: python2-fields
|
| |
- BuildRequires: python2-process-tests
|
| |
- BuildRequires: python2-six
|
| |
- BuildRequires: python2-virtualenv
|
| |
- BuildRequires: python2-pytest-xdist
|
| |
- Requires: python2-pytest
|
| |
- Requires: python2-coverage >= 4.4
|
| |
+ # Not packaged: python2-fields
|
| |
+ #BuildRequires: python2-pytest
|
| |
+ #BuildRequires: python2-coverage >= 4.4
|
| |
+ #BuildRequires: python2-fields
|
| |
+ #BuildRequires: python2-process-tests
|
| |
+ #BuildRequires: python2-six
|
| |
+ #BuildRequires: python2-virtualenv
|
| |
+ #BuildRequires: python2-pytest-xdist
|
| |
%{?python_provide:%python_provide python2-%{srcname}}
|
| |
|
| |
%description -n python2-%{srcname}
|
| |
@@ -45,14 +43,11 @@
|
| |
BuildRequires: python%{python3_pkgversion}-pytest
|
| |
BuildRequires: python%{python3_pkgversion}-coverage >= 4.4
|
| |
# For tests
|
| |
- # Not packaged
|
| |
- # BuildRequires: python%{python3_pkgversion}-fields
|
| |
+ BuildRequires: python%{python3_pkgversion}-fields
|
| |
BuildRequires: python%{python3_pkgversion}-process-tests
|
| |
BuildRequires: python%{python3_pkgversion}-six
|
| |
BuildRequires: python%{python3_pkgversion}-virtualenv
|
| |
BuildRequires: python%{python3_pkgversion}-pytest-xdist
|
| |
- Requires: python%{python3_pkgversion}-pytest
|
| |
- Requires: python%{python3_pkgversion}-coverage >= 4.4
|
| |
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
|
| |
|
| |
%description -n python%{python3_pkgversion}-%{srcname}
|
| |
@@ -76,9 +71,12 @@
|
| |
|
| |
|
| |
%check
|
| |
- # Tests fail https://github.com/pytest-dev/pytest-cov/issues/90
|
| |
- PYTHONPATH=%{buildroot}%{python2_sitelib}:$PWD/tests py.test-%{python2_version} -vv || :
|
| |
- PYTHONPATH=%{buildroot}%{python3_sitelib}:$PWD/tests py.test-%{python3_version} -vv || :
|
| |
+ # Python 2 tests have unpackaged dependencies
|
| |
+ # test_dist_missing_data needs internet
|
| |
+ # test_central_subprocess/dist_subprocess https://github.com/pytest-dev/pytest-cov/issues/90
|
| |
+ # test_subprocess_with_path_aliasing and test_dist_combine_racecondition tries to match strings and fails, mostly version mismatch
|
| |
+ PYTHONPATH=%{buildroot}%{python3_sitelib}:$PWD/tests py.test-%{python3_version} -vv \
|
| |
+ -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"
|
| |
|
| |
|
| |
%files -n python2-%{srcname}
|
| |
@@ -93,6 +91,9 @@
|
| |
|
| |
|
| |
%changelog
|
| |
+ * Thu Apr 04 2019 Miro Hrončok <mhroncok@redhat.com> - 2.6.1-1
|
| |
+ - Update to 2.6.1 for pytest 4 compatibility
|
| |
+
|
| |
* Tue Feb 12 2019 Orion Poplawski <orion@nwra.com> - 2.6.0-3
|
| |
- Build with pytest-xdist
|
| |
|
| |
Drop manual requires.
Instead of ignoring test results, we run what we can.
Build with pytest 4.3.1: https://copr.fedorainfracloud.org/coprs/churchyard/dirty-tests/build/878014/