Copyright 2014-2020 codecov
Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-codecov for openSUSE:Factory checked in at 2021-08-29 21:33:53
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-codecov (Old)
and /work/SRC/openSUSE:Factory/.python-codecov.new.1899 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-codecov"
Sun Aug 29 21:33:53 2021 rev:6 rq:914826 version:2.1.12
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-codecov/python-codecov.changes 2020-09-17 15:04:30.716691231 +0200
+++ /work/SRC/openSUSE:Factory/.python-codecov.new.1899/python-codecov.changes 2021-08-29 21:33:58.954678991 +0200
@@ -1,0 +2,26 @@
+Tue Aug 24 13:53:55 UTC 2021 - John Paul Adrian Glaubitz
+
+- Update to 2.1.12
+ - Add Cirrus CI
+ - Bump coverage from 5.3 to 5.3.1
+ - Bump coverage from 5.3.1 to 5.4
+ - Bump coverage from 5.4 to 5.5
+ - Upgrade to GitHub-native Dependabot
+- from version 2.1.11
+ - Added option to disable printing of gcov-out
+ - Handle exceptions that don't have a returncode
+ - Update to Python 3.9
+- from version 2.1.10
+ - Output elapsed time with S3 upload
+ - Improve error reporting in the "try_run" function and correctly
+ include original command output in the error message
+ - Added sleep between upload retries.
+ - Ignore emacs lisp files
+ - Fix error try_to_run using | without shell=True (fix #284)
+ - Bump coverage from 4.5.4 to 5.2.1
+ - Update python versions
+ - Add license scan report and status
+ - Update README with accurate links
+ - Bump coverage from 5.2.1 to 5.3
+
+-------------------------------------------------------------------
Old:
----
codecov-2.1.9.tar.gz
New:
----
codecov-2.1.12.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-codecov.spec ++++++
--- /var/tmp/diff_new_pack.bLufSd/_old 2021-08-29 21:33:59.402679612 +0200
+++ /var/tmp/diff_new_pack.bLufSd/_new 2021-08-29 21:33:59.402679612 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-codecov
#
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-codecov
-Version: 2.1.9
+Version: 2.1.12
Release: 0
Summary: Hosted coverage reports
License: Apache-2.0
@@ -36,7 +36,7 @@
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
Requires(post): update-alternatives
-Requires(postun): update-alternatives
+Requires(postun):update-alternatives
%python_subpackages
++++++ codecov-2.1.9.tar.gz -> codecov-2.1.12.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/codecov-2.1.9/CHANGELOG.md new/codecov-2.1.12/CHANGELOG.md
--- old/codecov-2.1.9/CHANGELOG.md 2020-08-20 04:28:08.000000000 +0200
+++ new/codecov-2.1.12/CHANGELOG.md 2021-08-02 19:56:03.000000000 +0200
@@ -1,6 +1,42 @@
+### `2.1.12`
+
+#### Fixes
+- #322 Add Cirrus CI
+
+#### Dependencies and Misc
+- #311 Bump coverage from 5.3 to 5.3.1
+- #312 Bump coverage from 5.3.1 to 5.4
+- #314 Bump coverage from 5.4 to 5.5
+- #320 Upgrade to GitHub-native Dependabot
+
+### `2.1.11`
+
+#### Fixes
+- #305 Added option to disable printing of gcov-out
+- #308 Handle exceptions that don't have a returncode
+
+#### Dependencies and Misc
+- #301 Update to Python 3.9
+
+### `2.1.10`
+
+#### Fixes
+- [#148](https://github.com/codecov/codecov-python/pull/148) Output elapsed time with S3 upload
+- [#153](https://github.com/codecov/codecov-python/pull/153) Improve error reporting in the "try_run" function and correctly include original command output in the error message
+- [#295](https://github.com/codecov/codecov-python/pull/295) Added sleep between upload retries.
+- [#297](https://github.com/codecov/codecov-python/pull/297) Ignore emacs lisp files
+- [#298](https://github.com/codecov/codecov-python/pull/298) Fix error try_to_run using | without shell=True (fix #284)
+
+#### Dependencies and Misc
+- [#290](https://github.com/codecov/codecov-python/pull/290) Bump coverage from 4.5.4 to 5.2.1
+- [#291](https://github.com/codecov/codecov-python/pull/291) Update python versions
+- [#292](https://github.com/codecov/codecov-python/pull/292) Add license scan report and status
+- [#294](https://github.com/codecov/codecov-python/pull/294) Update README with accurate links
+- [#296](https://github.com/codecov/codecov-python/pull/296) Bump coverage from 5.2.1 to 5.3
+
### `2.1.9`
-- []()Remove token restriction as it is changed server-side
+- [#289](https://github.com/codecov/codecov-python/pull/289)Remove token restriction as it is changed server-side
### `2.1.8`
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/codecov-2.1.9/PKG-INFO new/codecov-2.1.12/PKG-INFO
--- old/codecov-2.1.9/PKG-INFO 2020-08-21 18:52:12.549248000 +0200
+++ new/codecov-2.1.12/PKG-INFO 2021-08-02 19:56:28.460793300 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 1.2
Name: codecov
-Version: 2.1.9
+Version: 2.1.12
Summary: Hosted coverage reports for GitHub, Bitbucket and Gitlab
Home-page: https://github.com/codecov/codecov-python
Author: Codecov
@@ -20,6 +20,8 @@
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
+Classifier: Programming Language :: Python :: 3.8
+Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Topic :: Software Development :: Testing
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/codecov-2.1.9/README.md new/codecov-2.1.12/README.md
--- old/codecov-2.1.9/README.md 2020-08-20 04:21:02.000000000 +0200
+++ new/codecov-2.1.12/README.md 2021-08-02 18:56:19.000000000 +0200
@@ -1,7 +1,9 @@
-Codecov Global Python Uploader
+# Codecov Global Python Uploader
+
[![codecov.io](https://codecov.io/github/codecov/codecov-python/coverage.svg?branch=master)](https://codecov.io/github/codecov/codecov-python)
![PyPI](https://img.shields.io/pypi/v/codecov)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
+[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fcodecov%2Fcodecov-python.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fcodecov%2Fcodecov-python?ref=badge_shield)
=======
| [Support][1] | [Documentation][2] | [Community Boards][3] | [Twitter][4] |
| ------------ | ------------------ | --------------------- | ------------ |
@@ -77,7 +79,7 @@
## CI Providers
-| Company | Supported | Token Required |
+| Company | Supported | Token Required |
| ----------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------- |
| [AppVeyor](https://www.appveyor.com/) | Yes [![Build status](https://ci.appveyor.com/api/projects/status/sw18lsj7786bw806/branch/master?svg=true)](https://ci.appveyor.com/project/stevepeak/codecov-python/branch/master) | Private only |
| [Bamboo](https://www.atlassian.com/software/bamboo) | `coming soon` | |
@@ -94,6 +96,7 @@
| [Solano Labs](https://www.solanolabs.com/) | `coming soon` | |
| [Travis CI](https://travis-ci.org/) | Yes [![Build Status](https://secure.travis-ci.org/codecov/codecov-python.svg?branch=master)](https://travis-ci.org/codecov/codecov-python) | Private only |
| [Wercker](http://wercker.com/) | Yes | Public & Private |
+| [Cirrus CI](https://cirrus-ci.org/) | Yes | Private only |
| Git / Mercurial | Yes (as a fallback) | Public & Private |
@@ -104,9 +107,14 @@
[1]: https://codecov.io/support/
-[2]: https://community.codecov.io/
-[3]: https://twitter.com/codecov
+[2]: https://docs.codecov.io/
+[3]: https://community.codecov.io/
+[4]: https://twitter.com/codecov
## Copyright
+
+
+## License
+[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fcodecov%2Fcodecov-python.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fcodecov%2Fcodecov-python?ref=badge_large)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/codecov-2.1.9/codecov/__init__.py new/codecov-2.1.12/codecov/__init__.py
--- old/codecov-2.1.9/codecov/__init__.py 2020-08-20 04:26:21.000000000 +0200
+++ new/codecov-2.1.12/codecov/__init__.py 2021-08-02 18:56:19.000000000 +0200
@@ -88,6 +88,7 @@
r"(/\.coverage.*)|"
r"(\.coveragerc)|"
r"(\.egg)|"
+ r"(\.el)|"
r"(\.gif)|"
r"(\.ini)|"
r"(\.less)|"
@@ -213,7 +214,7 @@
process = Popen(cmd, stdout=PIPE, **popen_args)
output, _ = process.communicate()
if process.returncode:
- raise CalledProcessError(process.returncode, cmd)
+ raise CalledProcessError(process.returncode, cmd, output)
else:
assert process.returncode == 0
return output.decode("utf-8")
@@ -223,7 +224,14 @@
try:
return check_output(cmd, shell=shell, cwd=cwd)
except Exception as e:
- write(" Error running `%s`: %s" % (cmd, e or str(e)))
+ write(
+ " Error running `%s`: returncode=%s, output=%s"
+ % (
+ cmd,
+ str(getattr(e, "returncode", None)),
+ str(getattr(e, "output", str(e))),
+ )
+ )
return None
@@ -287,11 +295,14 @@
return str(res).strip() or ""
-def retry_upload(url, request_method, retries=3, break_codes=(200,), **kwargs):
- for _ in range(retries):
+def retry_upload(url, request_method, retries=5, break_codes=(200,), **kwargs):
+ wait_seconds = 2
+ for i in range(retries):
res = request_method(url, **kwargs)
if res.status_code in break_codes:
return res
+ write(" Retrying {0}/{1} in {2}s..".format(i + 1, retries, wait_seconds))
+ sleep(wait_seconds)
return res
@@ -318,7 +329,7 @@
"--token",
"-t",
default=os.getenv("CODECOV_TOKEN"),
- help="Private repository token or @filename for file containing the token. Defaults to $CODECOV_TOKEN. Not required for public repositories on Travis CI, CircleCI and AppVeyor",
+ help="Private repository token or @filename for file containing the token. Defaults to $CODECOV_TOKEN. Not required for public repositories on Travis CI, CircleCI, AppVeyor and CirrusCI",
)
basics.add_argument(
"--file",
@@ -369,6 +380,9 @@
gcov.add_argument(
"--gcov-exec", default="gcov", help="gcov executable to run. Defaults to 'gcov'"
)
+ gcov.add_argument(
+ "--no-gcov-out", action="store_true", default=False, help="Disable gcov output"
+ )
gcov.add_argument("--gcov-args", default="", help="extra arguments to pass to gcov")
advanced = parser.add_argument_group(
@@ -409,7 +423,7 @@
advanced.add_argument("--tag", default=None, help="Git tag")
advanced.add_argument(
"--tries",
- default=3,
+ default=5,
type=int,
help="Specify the total number of attempts to make when uploading coverage report",
)
@@ -831,6 +845,25 @@
write(" GitHub Actions CI Detected")
+ # ---------
+ # Cirrus CI
+ # ---------
+ elif os.getenv("CIRRUS_CI"):
+ # https://cirrus-ci.org/guide/writing-tasks/#environment-variables
+ query.update(
+ dict(
+ service="cirrus-ci",
+ slug=os.getenv("CIRRUS_REPO_FULL_NAME"),
+ branch=os.getenv("CIRRUS_BRANCH"),
+ pr=os.getenv("CIRRUS_PR"),
+ commit=os.getenv("CIRRUS_CHANGE_IN_REPO"),
+ build=os.getenv("CIRRUS_BUILD_ID"),
+ build_url="https://cirrus-ci.com/task/" + os.getenv("CIRRUS_TASK_ID"),
+ job=os.getenv("CIRRUS_TASK_NAME"),
+ )
+ )
+ write(" Cirrus CI Detected")
+
else:
query.update(
dict(
@@ -862,7 +895,7 @@
try:
query["commit"] = try_to_run(
["git", "rev-parse", "HEAD"]
- ) or try_to_run(["hg", "id", "-i", "--debug", "|", "tr", "-d", "'+'"])
+ ) or try_to_run(["hg", "log", "-r", ".", "-T", "{node}"])
write(" -> Got sha from git/hg")
except: # pragma: no cover
@@ -975,8 +1008,11 @@
if codecov.gcov_args:
cmd.append(sanitize_arg("", codecov.gcov_args or ""))
cmd.append(path)
- write(" Executing gcov (%s)" % cmd)
- write(try_to_run(cmd))
+ if not codecov.no_gcov_out:
+ write(" Executing gcov (%s)" % cmd)
+ gcov_out = try_to_run(cmd)
+ if not codecov.no_gcov_out:
+ write(gcov_out)
# Collect Reports
# ---------------
@@ -1143,6 +1179,7 @@
)
s3.raise_for_status()
assert s3.status_code == 200
+ write(" Uploading to S3 took %s" % s3.elapsed)
write(" " + result)
success = True
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/codecov-2.1.9/codecov/__version__.py new/codecov-2.1.12/codecov/__version__.py
--- old/codecov-2.1.9/codecov/__version__.py 2020-08-20 04:27:36.000000000 +0200
+++ new/codecov-2.1.12/codecov/__version__.py 2021-08-02 19:56:03.000000000 +0200
@@ -5,4 +5,4 @@
__license__ = "Apache 2.0"
__title__ = "codecov"
__url__ = "https://github.com/codecov/codecov-python"
-__version__ = "2.1.9"
+__version__ = "2.1.12"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/codecov-2.1.9/codecov.egg-info/PKG-INFO new/codecov-2.1.12/codecov.egg-info/PKG-INFO
--- old/codecov-2.1.9/codecov.egg-info/PKG-INFO 2020-08-21 18:52:12.000000000 +0200
+++ new/codecov-2.1.12/codecov.egg-info/PKG-INFO 2021-08-02 19:56:27.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 1.2
Name: codecov
-Version: 2.1.9
+Version: 2.1.12
Summary: Hosted coverage reports for GitHub, Bitbucket and Gitlab
Home-page: https://github.com/codecov/codecov-python
Author: Codecov
@@ -20,6 +20,8 @@
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
+Classifier: Programming Language :: Python :: 3.8
+Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Topic :: Software Development :: Testing
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/codecov-2.1.9/setup.py new/codecov-2.1.12/setup.py
--- old/codecov-2.1.9/setup.py 2020-06-14 20:20:48.000000000 +0200
+++ new/codecov-2.1.12/setup.py 2021-07-06 22:34:47.000000000 +0200
@@ -15,6 +15,8 @@
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
+ "Programming Language :: Python :: 3.8",
+ "Programming Language :: Python :: 3.9",
"Programming Language :: Python :: Implementation :: PyPy",
"License :: OSI Approved :: Apache Software License",
"Topic :: Software Development :: Testing",