Hello community,

here is the log from the commit of package python-py2pack for openSUSE:Factory 
checked in at 2018-04-19 15:29:53
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-py2pack (Old)
 and      /work/SRC/openSUSE:Factory/.python-py2pack.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-py2pack"

Thu Apr 19 15:29:53 2018 rev:45 rq:597414 version:0.8.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-py2pack/python-py2pack.changes    
2018-03-07 10:39:05.156937805 +0100
+++ /work/SRC/openSUSE:Factory/.python-py2pack.new/python-py2pack.changes       
2018-04-19 15:30:07.897474493 +0200
@@ -1,0 +2,6 @@
+Tue Apr 17 09:45:04 UTC 2018 - kbabi...@suse.com
+
+- Added fix-api-package-urls.patch: Fix an issue with a deprecated
+  XMLRPC method (bnc#1089613)
+
+-------------------------------------------------------------------

New:
----
  fix-api-package-urls.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-py2pack.spec ++++++
--- /var/tmp/diff_new_pack.4A1qdk/_old  2018-04-19 15:30:08.925432347 +0200
+++ /var/tmp/diff_new_pack.4A1qdk/_new  2018-04-19 15:30:08.925432347 +0200
@@ -25,6 +25,7 @@
 License:        Apache-2.0
 Group:          Development/Languages/Python
 Source:         
https://files.pythonhosted.org/packages/source/p/py2pack/py2pack-%{version}.tar.gz
+Patch0:         fix-api-package-urls.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  %{python_module Jinja2}
 BuildRequires:  %{python_module Sphinx}
@@ -62,6 +63,7 @@
 
 %prep
 %setup -q -n py2pack-%{version}
+%patch0 -p1
 
 %build
 %python_build

++++++ fix-api-package-urls.patch ++++++
>From d6c8e1e6434a063da50d4879e9e58ed1c8d99292 Mon Sep 17 00:00:00 2001
From: Karol Babioch <kbabi...@suse.de>
Date: Tue, 17 Apr 2018 11:10:24 +0200
Subject: [PATCH] Use release_urls() XMLRPC method for the time being

This replaces the `package_urls()` XMLRPC method by the `release_urls()`
method, since the former was deprecated and no longer works. Invoking the
endpoint results in an error:

    This API has been deprecated. Use https://pypi.org/xxx/yyy/json instead.
    The XMLRPC method release_urls can be used in the interim, but will be
    deprecated in the future.

This addresses issue #95. However, this is only a quick-fix, since the
`package_urls()` method will also be deprecated in the future.
---
 py2pack/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/py2pack/__init__.py b/py2pack/__init__.py
index ed0911a..0eb97ba 100644
--- a/py2pack/__init__.py
+++ b/py2pack/__init__.py
@@ -268,7 +268,7 @@ def newest_download_url(args):
     if args.source_url:
         return {'url': args.source_url,
                 'filename': args.source_url[args.source_url.rfind("/") + 1:]}
-    for url in pypi.package_urls(args.name, args.version):                  # 
Fetch all download URLs
+    for url in pypi.release_urls(args.name, args.version):                  # 
Fetch all download URLs
         if url['packagetype'] == 'sdist':                                   # 
Found the source URL we care for
             return url
     # No PyPI tarball release, let's see if an upstream download URL is 
provided:

Reply via email to