diff --git a/.gitignore b/.gitignore index 8b90551..652f811 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ /pytest-cov-2.5.1.tar.gz /pytest-cov-2.6.0.tar.gz /pytest-cov-2.6.1.tar.gz +/pytest-cov-2.7.1.tar.gz diff --git a/python-pytest-cov.spec b/python-pytest-cov.spec index d8bf38a..e2e4426 100644 --- a/python-pytest-cov.spec +++ b/python-pytest-cov.spec @@ -1,7 +1,7 @@ %global srcname pytest-cov Name: python-%{srcname} -Version: 2.6.1 +Version: 2.7.1 Release: 1%{?dist} Summary: Pytest plugin for coverage reporting @@ -75,7 +75,10 @@ rm -rf *.egg-info # 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 \ +# To read a custom pth-file we need to add that path to site-dir, needed for tests at RPM build time +echo "import site;site.addsitedir(\"$(pwd)/src\")" > tests/sitecustomize.py +export PYTHONPATH="$(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" @@ -91,6 +94,9 @@ PYTHONPATH=%{buildroot}%{python3_sitelib}:$PWD/tests py.test-%{python3_version} %changelog +* Sun May 5 2019 Orion Poplawski - 2.7.1-1 +- Update to 2.7.1 + * Thu Apr 04 2019 Miro HronĨok - 2.6.1-1 - Update to 2.6.1 for pytest 4 compatibility diff --git a/sources b/sources index b0b5eea..72c4848 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (pytest-cov-2.6.1.tar.gz) = d277ca7cb183b0c18e126b8a6a36793fb449cb77f3058cfbcd0cea39b2bd9855e53a1a13839b7767b3d3583c1a83199a501c3c1924598946ead32981eff1c56f +SHA512 (pytest-cov-2.7.1.tar.gz) = bb2bc5be49b3c2f56a36b6396d6b1a6734e86fb0bf1c2ef29bf8dbc95dcb9364c6deb1525529d46f4ec0ffa6899ef0e94b5f76e5ed892b0a092e69ad6c6e080e