- Update to 4.5.3:

* Only packaging metadata changes.
- Run fdupes

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-coverage?expand=0&rev=75
This commit is contained in:
Tomáš Chvátal 2019-03-11 11:04:49 +00:00 committed by Git OBS Bridge
parent 04b77e41fb
commit e2341c7aa8
4 changed files with 53 additions and 18 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ab235d9fe64833f12d1334d29b558aacedfbca2356dfb9691f2d0d38a8a7bfb4
size 384845

3
coverage-4.5.3.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9de60893fb447d1e797f6bf08fdf0dbcda0c1e34c1b06c92bd3a363c0ea8c609
size 384747

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon Mar 11 10:03:32 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 4.5.3:
* Only packaging metadata changes.
- Run fdupes
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Jan 1 13:38:34 UTC 2019 - Michael Ströder <michael@stroeder.com> Tue Jan 1 13:38:34 UTC 2019 - Michael Ströder <michael@stroeder.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-coverage # spec file for package python-coverage
# #
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -12,13 +12,13 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-coverage Name: python-coverage
Version: 4.5.2 Version: 4.5.3
Release: 0 Release: 0
Summary: Code coverage measurement for Python Summary: Code coverage measurement for Python
License: Apache-2.0 License: Apache-2.0
@ -26,16 +26,19 @@ Group: Development/Languages/Python
URL: https://github.com/nedbat/coveragepy URL: https://github.com/nedbat/coveragepy
Source: https://files.pythonhosted.org/packages/source/c/coverage/coverage-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/c/coverage/coverage-%{version}.tar.gz
BuildRequires: %{python_module devel} BuildRequires: %{python_module devel}
BuildRequires: %{python_module flaky}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module pytest-xdist}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module unittest-mixins}
BuildRequires: %{python_module xml}
BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
# Test requirements:
#BuildRequires: python-mock
#BuildRequires: python-nose
Requires: python-setuptools Requires: python-setuptools
Requires: python-xml Requires: python-xml
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(postun): update-alternatives Requires(postun): update-alternatives
Requires(pre): coreutils
%python_subpackages %python_subpackages
%description %description
@ -45,6 +48,14 @@ library to determine which lines are executable, and which have been executed.
%prep %prep
%setup -q -n coverage-%{version} %setup -q -n coverage-%{version}
# do not require xdist
sed -i -e '/addopts/d' setup.cfg
# writes in /usr/
rm tests/test_process.py
# summary differs trivialy
rm tests/test_summary.py
# requires additional plugins
rm tests/test_plugins.py
%build %build
%python_build %python_build
@ -52,6 +63,7 @@ library to determine which lines are executable, and which have been executed.
%install %install
%python_install %python_install
%python_clone -a %{buildroot}%{_bindir}/coverage %python_clone -a %{buildroot}%{_bindir}/coverage
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%if 0%{?have_python2} && ! 0%{?skip_python2} %if 0%{?have_python2} && ! 0%{?skip_python2}
ln -sf coverage-%{python2_version} %{buildroot}%{_bindir}/coverage2 ln -sf coverage-%{python2_version} %{buildroot}%{_bindir}/coverage2
%endif %endif
@ -59,14 +71,30 @@ ln -sf coverage-%{python2_version} %{buildroot}%{_bindir}/coverage2
ln -sf coverage-%{python3_version} %{buildroot}%{_bindir}/coverage3 ln -sf coverage-%{python3_version} %{buildroot}%{_bindir}/coverage3
%endif %endif
#NOTE(saschpe): The following seems to mess with the install dir, which is odd: %check
#%%check # GetZipBytesTest.test_get_encoded_zip_files - needs zip command
# Taken straight from tox.ini: # test_egg - needs generated egg file
#python setup.py develop # test_doctest - weird doctest importing
#python igor.py zip_mods install_egg remove_extension # test_unicode - differs between py2/py3
#python igor.py test_with_tracer py # test_version - checks for non-compiled variant, we ship only compiled one
#python setup.py --quiet build_ext --inplace # test_multiprocessing_with_branching - whitespace issue in regexp
#python igor.py test_with_tracer c # test_farm - tries to write in /usr
# test_dothtml_not_python - no idea
# test_bytes
# test_one_of
export LANG=en_US.UTF8
# Copy executables to py2/3 build areas, to be used for testing
%{python_expand mkdir build/bin
for filepath in %{buildroot}/%{_bindir}/coverage*-%{$python_bin_suffix}; do
filename=$(basename $filepath)
unsuffixed=${filename/-%{$python_bin_suffix}/}
cp $filepath build/bin/$unsuffixed
done
export PATH="$(pwd)/build/bin:$PATH"
export PYTHONPATH=%{buildroot}%{$python_sitearch}
py.test-%{$python_bin_suffix} -v -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)'
rm -r build/bin
}
%post %post
%python_install_alternative coverage %python_install_alternative coverage