- Fix alternatives
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-coverage?expand=0&rev=85
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Dec 10 18:42:00 UTC 2020 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
- Fix alternatives
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Dec 2 23:04:31 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
|
Wed Dec 2 23:04:31 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
@@ -72,14 +72,9 @@ rm tests/test_plugins.py
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%python_install
|
||||||
|
rm -vf %{buildroot}%{_bindir}/coverage{2,3}
|
||||||
%python_clone -a %{buildroot}%{_bindir}/coverage
|
%python_clone -a %{buildroot}%{_bindir}/coverage
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||||
%if 0%{?have_python2} && ! 0%{?skip_python2}
|
|
||||||
ln -sf coverage-%{python2_version} %{buildroot}%{_bindir}/coverage2
|
|
||||||
%endif
|
|
||||||
%if 0%{?have_python3} && ! 0%{?skip_python3}
|
|
||||||
ln -sf coverage-%{python3_version} %{buildroot}%{_bindir}/coverage3
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
# GetZipBytesTest.test_get_encoded_zip_files - needs zip command
|
# GetZipBytesTest.test_get_encoded_zip_files - needs zip command
|
||||||
@@ -108,7 +103,6 @@ export PATH="$(pwd)/build/bin:$PATH"
|
|||||||
export PYTHONPATH=":x"
|
export PYTHONPATH=":x"
|
||||||
%pytest_arch -k 'not (test_get_encoded_zip_files or test_egg or test_doctest or test_unicode or test_version or test_multiprocessing_with_branching or test_farm or test_dothtml_not_python or test_one_of or test_bytes or test_encoding or test_multi or test_xdist_sys_path_nuttiness_is_fixed or test_debug_sys_ctracer)'
|
%pytest_arch -k 'not (test_get_encoded_zip_files or test_egg or test_doctest or test_unicode or test_version or test_multiprocessing_with_branching or test_farm or test_dothtml_not_python or test_one_of or test_bytes or test_encoding or test_multi or test_xdist_sys_path_nuttiness_is_fixed or test_debug_sys_ctracer)'
|
||||||
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%python_install_alternative coverage
|
%python_install_alternative coverage
|
||||||
|
|
||||||
@@ -119,8 +113,6 @@ export PYTHONPATH=":x"
|
|||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
%doc CHANGES.rst CONTRIBUTORS.txt README.rst howto.txt
|
%doc CHANGES.rst CONTRIBUTORS.txt README.rst howto.txt
|
||||||
%python_alternative %{_bindir}/coverage
|
%python_alternative %{_bindir}/coverage
|
||||||
%python2_only %{_bindir}/coverage2
|
|
||||||
%python3_only %{_bindir}/coverage3
|
|
||||||
%{python_sitearch}/coverage/
|
%{python_sitearch}/coverage/
|
||||||
%{python_sitearch}/coverage-%{version}-py%{python_version}.egg-info
|
%{python_sitearch}/coverage-%{version}-py%{python_version}.egg-info
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user