Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-osc-tiny for openSUSE:Factory
checked in at 2021-03-02 12:34:39
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-osc-tiny (Old)
and /work/SRC/openSUSE:Factory/.python-osc-tiny.new.2378 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-osc-tiny"
Tue Mar 2 12:34:39 2021 rev:9 rq:875933 version:0.3.3
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-osc-tiny/python-osc-tiny.changes
2021-01-07 21:26:14.517763719 +0100
+++
/work/SRC/openSUSE:Factory/.python-osc-tiny.new.2378/python-osc-tiny.changes
2021-03-02 12:46:10.284392588 +0100
@@ -1,0 +2,6 @@
+Wed Feb 24 10:49:30 UTC 2021 - Andreas Hasenkopf <[email protected]>
+
+- Release 0.3.3
+ * Added the `expand` parameter to some methods of the packages extension.
+
+-------------------------------------------------------------------
Old:
----
osc-tiny-0.3.2.tar.gz
New:
----
osc-tiny-0.3.3.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-osc-tiny.spec ++++++
--- /var/tmp/diff_new_pack.vYKcCE/_old 2021-03-02 12:46:10.792393027 +0100
+++ /var/tmp/diff_new_pack.vYKcCE/_new 2021-03-02 12:46:10.796393031 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-osc-tiny
#
-# Copyright (c) 2021 SUSE LINUX GmbH, Nuernberg, Germany.
+# 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
@@ -19,7 +19,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-osc-tiny
-Version: 0.3.2
+Version: 0.3.3
Release: 0
Summary: Client API for openSUSE BuildService
License: MIT
++++++ osc-tiny-0.3.2.tar.gz -> osc-tiny-0.3.3.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/osc-tiny-0.3.2/PKG-INFO new/osc-tiny-0.3.3/PKG-INFO
--- old/osc-tiny-0.3.2/PKG-INFO 2021-01-07 09:58:35.000000000 +0100
+++ new/osc-tiny-0.3.3/PKG-INFO 2021-02-24 11:35:58.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: osc-tiny
-Version: 0.3.2
+Version: 0.3.3
Summary: Client API for openSUSE BuildService
Home-page: http://github.com/crazyscientist/osc-tiny
Author: Andreas Hasenkopf
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/osc-tiny-0.3.2/osc_tiny.egg-info/PKG-INFO
new/osc-tiny-0.3.3/osc_tiny.egg-info/PKG-INFO
--- old/osc-tiny-0.3.2/osc_tiny.egg-info/PKG-INFO 2021-01-07
09:58:34.000000000 +0100
+++ new/osc-tiny-0.3.3/osc_tiny.egg-info/PKG-INFO 2021-02-24
11:35:58.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: osc-tiny
-Version: 0.3.2
+Version: 0.3.3
Summary: Client API for openSUSE BuildService
Home-page: http://github.com/crazyscientist/osc-tiny
Author: Andreas Hasenkopf
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/osc-tiny-0.3.2/osctiny/__init__.py
new/osc-tiny-0.3.3/osctiny/__init__.py
--- old/osc-tiny-0.3.2/osctiny/__init__.py 2021-01-07 09:57:57.000000000
+0100
+++ new/osc-tiny-0.3.3/osctiny/__init__.py 2021-02-24 11:35:35.000000000
+0100
@@ -6,4 +6,4 @@
__all__ = ['Osc', 'bs_requests', 'buildresults', 'comments', 'packages',
'projects', 'search', 'users']
-__version__ = "0.3.2"
+__version__ = "0.3.3"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/osc-tiny-0.3.2/osctiny/extensions/packages.py
new/osc-tiny-0.3.3/osctiny/extensions/packages.py
--- old/osc-tiny-0.3.2/osctiny/extensions/packages.py 2021-01-07
09:57:57.000000000 +0100
+++ new/osc-tiny-0.3.3/osctiny/extensions/packages.py 2021-02-24
11:35:35.000000000 +0100
@@ -186,7 +186,7 @@
# pylint: disable=too-many-arguments
def download_file(self, project, package, filename, destdir, meta=False,
- overwrite=False, rev=None):
+ overwrite=False, rev=None, expand=False):
"""
Download a file to directory
@@ -197,11 +197,16 @@
:param meta: switch to meta files
:param overwrite: switch to overwrite existing downloaded file
:param rev: Download file from this specific package revision
+ :param expand: If ``True`` and the package is a link, download the
file from the linked
+ package
:return: absolute path to file or ``None``
:raises OSError: if something goes wrong
.. versionadded:: 0.1.1
Parameter rev
+
+ .. versionchanged:: 0.3.3
+ Added the parameter ``expand``
"""
abspath_filename = os.path.abspath(os.path.join(destdir, filename))
if os.path.isfile(destdir):
@@ -215,7 +220,7 @@
if not os.path.exists(destdir):
os.makedirs(destdir)
- response = self.get_file(project, package, filename, meta=meta,
rev=rev)
+ response = self.get_file(project, package, filename, meta=meta,
rev=rev, expand=expand)
with open(abspath_filename, "wb") as handle:
for chunk in response.iter_content(1024):
@@ -343,7 +348,7 @@
return response.text
- def checkout(self, project, package, destdir, rev=None, meta=False):
+ def checkout(self, project, package, destdir, rev=None, meta=False,
expand=False):
"""
Checkout all files and directories of package
@@ -355,9 +360,14 @@
:param destdir: target local directory
:param rev: Package revision to check out
:param meta: Checkout meta files instead
+ :param expand: If ``True`` and the package is a link, download the
file from the linked
+ package
:return: nothing
.. versionadded:: 0.1.1
+
+ .. versionchanged:: 0.3.3
+ Added the parameter ``expand``
"""
if not os.path.exists(destdir):
if not os.path.isdir(destdir):
@@ -368,7 +378,7 @@
oscdir = DataDir(osc=self.osc, path=destdir, project=project,
package=package)
- dirlist = self.get_files(project, package, rev=rev, meta=meta)
+ dirlist = self.get_files(project, package, rev=rev, meta=meta,
expand=expand)
for entry in dirlist.findall("entry"):
self.download_file(
project=project,
@@ -377,7 +387,8 @@
destdir=destdir,
meta=meta,
overwrite=True,
- rev=rev
+ rev=rev,
+ expand=expand
)
os.link(
os.path.join(destdir, entry.get("name")),
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/osc-tiny-0.3.2/osctiny/osc.py
new/osc-tiny-0.3.3/osctiny/osc.py
--- old/osc-tiny-0.3.2/osctiny/osc.py 2021-01-07 09:57:57.000000000 +0100
+++ new/osc-tiny-0.3.3/osctiny/osc.py 2021-02-24 11:35:35.000000000 +0100
@@ -178,9 +178,10 @@
* Added parameter `params`
:param url: Full URL
- :param data: Data to be included as GET or POST parameters in request
:param method: HTTP method
:param stream: Delayed access, see `Body Content Workflow`_
+ :param data: Data to be included as POST parameters in request
+ :param params: Additional GET parameters to be included in request
:param raise_for_status: See `requests.Response.raise_for_status`_
:param timeout: Request timeout. See `Timeouts`_
:return: :py:class:`requests.Response`
@@ -232,6 +233,8 @@
response.raise_for_status()
return response
+ return None
+
@staticmethod
def handle_params(params):
"""
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/osc-tiny-0.3.2/setup.py new/osc-tiny-0.3.3/setup.py
--- old/osc-tiny-0.3.2/setup.py 2021-01-07 09:57:57.000000000 +0100
+++ new/osc-tiny-0.3.3/setup.py 2021-02-24 11:35:35.000000000 +0100
@@ -19,7 +19,7 @@
setup(
name='osc-tiny',
- version='0.3.2',
+ version='0.3.3',
description='Client API for openSUSE BuildService',
long_description=long_description,
long_description_content_type="text/markdown",