Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
e7547f317f !10 [sync] PR-9: update to 5.5
From: @openeuler-sync-bot
Reviewed-by: @small_leek
Signed-off-by: @small_leek
2021-08-23 11:57:54 +00:00
lmz
f807bbb271 update to 5.5
(cherry picked from commit 599089a911fe22e37685871d1681da20be72815f)
2021-08-19 20:59:13 +08:00
openeuler-ci-bot
6fe321d89b !8 update python-coverage to 5.4
From: @haochenstar
Reviewed-by: @orange-snn
Signed-off-by: @orange-snn
2021-01-30 18:35:21 +08:00
haochenstar
2db3bbff5b update python-coverage to 5.4 2021-01-30 09:29:34 +08:00
openeuler-ci-bot
d2d7c0dd82 !7 remove python2
From: @eaglegai
Reviewed-by: @orange-snn
Signed-off-by: @orange-snn
2020-10-29 20:45:29 +08:00
eaglegai
fd24d35ab9 remove python2, don't support python2 anymore 2020-10-29 10:07:34 +08:00
openeuler-ci-bot
f33ec3b008 !3 update coverage version to 5.2
Merge pull request !3 from liuziyu/master
2020-07-29 16:23:18 +08:00
liuzy518
015ccee7b0 update coverage version to 5.2 2020-07-28 15:54:12 +08:00
openeuler-ci-bot
ad1d255f8d !2 add yaml file
Merge pull request !2 from yixiangzhike/master
2020-07-06 08:54:49 +08:00
yixiangzhike
eb96ee16f5 add yaml file 2020-06-13 14:37:44 +08:00
4 changed files with 30 additions and 42 deletions

Binary file not shown.

BIN
coverage-5.5.tar.gz Normal file

Binary file not shown.

View File

@ -1,35 +1,16 @@
Name: python-coverage Name: python-coverage
Version: 4.5.3 Version: 5.5
Release: 1 Release: 1
Summary: Code coverage measurement for Python Summary: Code coverage measurement for Python
License: ASL 2.0 and MIT and (MIT or GPL) License: Apache-2.0
URL: https://coverage.readthedocs.io/en/v4.5.x/ URL: https://coverage.readthedocs.io/en/coverage-%{version}/
Source0: https://github.com/nedbat/coveragepy/archive/coverage-%{version}.tar.gz Source0: https://pypi.python.org/packages/source/c/coverage/coverage-%{version}.tar.gz
BuildRequires: gcc BuildRequires: gcc
%description %description
Coverage.py is a tool for measuring code coverage of Python programs. It monitors Coverage.py measures code coverage, typically during test execution. It uses the code analysis tools and tracing hooks provided in the Python standard library to determine which lines are executable, and which have been executed.
your program, noting which parts of the code have been executed, then analyzes the
source to identify code that could have been executed but was not.
Coverage measurement is typically used to gauge the effectiveness of tests. It can
show which parts of your code are being exercised by tests, and which are not.
%package -n python2-coverage
Summary: Code coverage measurement for Python 2
BuildRequires: python2-devel python2-setuptools
Requires: python2-setuptools
%{?python_provide:%python_provide python2-coverage}
Provides: bundled(js-jquery) = 1.11.1 bundled(js-jquery-debounce) = 1.1
Provides: bundled(js-jquery-hotkeys) = 0.8 bundled(js-jquery-tablesorter)
Provides: bundled(js-jquery-isonscreen) = 1.2.0
%description -n python2-coverage
Coverage.py is a tool for measuring code coverage of Python 2 programs. It monitors
your program, noting which parts of the code have been executed, then analyzes the
source to identify code that could have been executed but was not.
%package -n python3-coverage %package -n python3-coverage
Summary: Code coverage measurement for Python 3 Summary: Code coverage measurement for Python 3
@ -52,37 +33,19 @@ sed -i 's/\r//g' README.rst
find . -type f ! -perm 0644 -exec chmod 0644 \{\} \; find . -type f ! -perm 0644 -exec chmod 0644 \{\} \;
%build %build
%py2_build
%py3_build %py3_build
%install %install
%py2_install
mv %{buildroot}/%{_bindir}/coverage %{buildroot}/%{_bindir}/python-coverage
%py3_install %py3_install
mv %{buildroot}/%{_bindir}/coverage %{buildroot}/%{_bindir}/python3-coverage mv %{buildroot}/%{_bindir}/coverage %{buildroot}/%{_bindir}/python3-coverage
find %{buildroot}/%{_bindir} -type f -name "coverage*" -delete find %{buildroot}/%{_bindir} -type f -name "coverage*" -delete
pushd %{buildroot}%{_bindir} pushd %{buildroot}%{_bindir}
for i in coverage coverage2 coverage-%{python2_version} python2-coverage; do
ln -s python-coverage $i
done
ln -s python3-coverage coverage3 ln -s python3-coverage coverage3
ln -s python3-coverage coverage-%{python3_version} ln -s python3-coverage coverage-%{python3_version}
popd popd
%files -n python2-coverage
%doc README.rst
%license NOTICE.txt LICENSE.txt
%{_bindir}/coverage-%{python2_version}
%{_bindir}/coverage
%{_bindir}/coverage2
%{_bindir}/python2-coverage
%{_bindir}/%{name}
%{python2_sitearch}/coverage/
%{python2_sitearch}/coverage-%{version}-py?.?.egg-info/
%files -n python3-coverage %files -n python3-coverage
%doc README.rst %doc README.rst
%license NOTICE.txt LICENSE.txt %license NOTICE.txt LICENSE.txt
@ -93,5 +56,26 @@ popd
%{python3_sitearch}/coverage-%{version}-py?.?.egg-info/ %{python3_sitearch}/coverage-%{version}-py?.?.egg-info/
%changelog %changelog
* Sun Jul 25 2021 OpenStack_SIG <openstack@openeuler.org> - 5.5-1
- Package update to 5.5.1
* Sat Jan 30 2021 xihaochen <xihaochen@huawei.com> - 5.4-1
- Type:requirements
- Id:NA
- SUG:NA
- DESC:update python-coverage to 5.4
* Thu Oct 29 2020 gaihuiying <gaihuiying1@huawei.com> - 5.2-2
- Type:requirement
- ID:NA
- SUG:NA
- DESC:remove python2
* Tue Jul 28 2020 liulong <liulong20@huawei.com> - 5.2-1
- Type:requirement
- ID:NA
- SUG:NA
- DESC:update coverage version to 5.2
* Sat Oct 12 2019 openEuler Buildteam <buildteam@openeuler.org> - 4.5.3-1 * Sat Oct 12 2019 openEuler Buildteam <buildteam@openeuler.org> - 4.5.3-1
- Package Init - Package Init

4
python-coverage.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: nedbat/coveragepy
tag_prefix: coverage-
seperator: .