Hello community, here is the log from the commit of package python-Paste for openSUSE:Factory checked in at 2018-10-25 08:13:39 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-Paste (Old) and /work/SRC/openSUSE:Factory/.python-Paste.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-Paste" Thu Oct 25 08:13:39 2018 rev:17 rq:642830 version:2.0.3 Changes: -------- --- /work/SRC/openSUSE:Factory/python-Paste/python-Paste.changes 2018-03-22 12:10:34.561933538 +0100 +++ /work/SRC/openSUSE:Factory/.python-Paste.new/python-Paste.changes 2018-10-25 08:14:19.516122780 +0200 @@ -1,0 +2,6 @@ +Thu Oct 18 09:19:55 UTC 2018 - Tomáš Chvátal <tchva...@suse.com> + +- Fix build on python 3.7: + * python37.patch + +------------------------------------------------------------------- New: ---- python37.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-Paste.spec ++++++ --- /var/tmp/diff_new_pack.wTkhjV/_old 2018-10-25 08:14:20.340122427 +0200 +++ /var/tmp/diff_new_pack.wTkhjV/_new 2018-10-25 08:14:20.344122425 +0200 @@ -12,49 +12,40 @@ # license that conforms to the Open Source Definition (Version 1.9) # 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/ # -%bcond_without tests - %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define oldpython python Name: python-Paste Version: 2.0.3 Release: 0 -Url: http://pythonpaste.org Summary: Tools for using a Web Server Gateway Interface stack License: MIT Group: Development/Languages/Python +URL: http://pythonpaste.org Source: https://files.pythonhosted.org/packages/source/P/Paste/Paste-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: %{python_module devel} +Patch0: python37.patch +# Test build requirements: +BuildRequires: %{python_module nose} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module six > 1.4.0} BuildRequires: fdupes BuildRequires: python-rpm-macros # Documentation build requirements: BuildRequires: python3-Sphinx -# Test build requirements: -BuildRequires: %{python_module nose} -%if 0%{?suse_version} >= 1000 || 0%{?fedora_version} >= 24 -Suggests: python-flup -%endif Requires: python-six > 1.4.0 +BuildArch: noarch +Suggests: python-flup %ifpython2 -%if 0%{?suse_version} >= 1000 || 0%{?fedora_version} >= 24 -Suggests: python-python-openid -%endif Provides: %{oldpython}-paste = %{version} Obsoletes: %{oldpython}-paste < %{version} +Suggests: python-python-openid %endif %ifpython3 -%if 0%{?suse_version} >= 1000 || 0%{?fedora_version} >= 24 Suggests: python3-python3-openid %endif -%endif -BuildArch: noarch %python_subpackages %description @@ -71,23 +62,21 @@ rm paste/urlmap.py.orig rm paste/httpserver.py.orig rm paste/util/template.py.orig +%patch0 -p1 %build %python_build -%{__python3} setup.py build_sphinx && rm build/sphinx/html/.buildinfo +python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo %install %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} -%if %{with tests} %check %python_exec setup.py -q test -%endif %files %{python_files} -%defattr(-,root,root,-) -%doc docs/license.txt +%license docs/license.txt %doc build/sphinx/html/ %{python_sitelib}/* ++++++ python37.patch ++++++ # HG changeset patch # User Miro Hrončok <m...@hroncok.cz> # Date 1528476582 -7200 # Fri Jun 08 18:49:42 2018 +0200 # Branch py37 # Node ID c5a2c7e3191cdcebf3fa5f0e52f55910ed2120b9 # Parent 0e5a48796ab969d874c6b772c5c33561ac2d1b0d Don't raise StopIteration from generator, return instead See https://www.python.org/dev/peps/pep-0479/ diff -r 0e5a48796ab9 -r c5a2c7e3191c paste/auth/digest.py --- a/paste/auth/digest.py Tue Mar 08 16:29:31 2016 -0800 +++ b/paste/auth/digest.py Fri Jun 08 18:49:42 2018 +0200 @@ -57,7 +57,7 @@ prev = item yield prev.strip() - raise StopIteration + return def _auth_to_kv_pairs(auth_string): """ split a digest auth string into key, value pairs """