Hello community,

here is the log from the commit of package python-Paste for openSUSE:Factory 
checked in at 2019-03-12 09:45:38
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-Paste (Old)
 and      /work/SRC/openSUSE:Factory/.python-Paste.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-Paste"

Tue Mar 12 09:45:38 2019 rev:21 rq:682768 version:3.0.8

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-Paste/python-Paste.changes        
2019-03-08 11:00:52.996545764 +0100
+++ /work/SRC/openSUSE:Factory/.python-Paste.new.28833/python-Paste.changes     
2019-03-12 09:45:40.343630663 +0100
@@ -1,0 +2,8 @@
+Fri Mar  8 09:27:42 UTC 2019 - John Vandenberg <[email protected]>
+
+- Add test_modified-fixup.patch to re-enable the test
+- Remove build dependency on pytest-runner
+- Update to v3.0.8
+  * Fix quoting of bytestrings
+
+-------------------------------------------------------------------

Old:
----
  Paste-3.0.7.tar.gz

New:
----
  Paste-3.0.8.tar.gz
  test_modified-fixup.patch

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

Other differences:
------------------
++++++ python-Paste.spec ++++++
--- /var/tmp/diff_new_pack.fiplfG/_old  2019-03-12 09:45:42.115630309 +0100
+++ /var/tmp/diff_new_pack.fiplfG/_new  2019-03-12 09:45:42.143630303 +0100
@@ -19,14 +19,14 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define oldpython python
 Name:           python-Paste
-Version:        3.0.7
+Version:        3.0.8
 Release:        0
 Summary:        Tools for using a Web Server Gateway Interface stack
 License:        MIT
 Group:          Development/Languages/Python
 URL:            https://github.com/cdent/paste
 Source:         
https://files.pythonhosted.org/packages/source/P/Paste/Paste-%{version}.tar.gz
-BuildRequires:  %{python_module pytest-runner}
+Patch0:         test_modified-fixup.patch
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module six > 1.4.0}
@@ -53,6 +53,8 @@
 
 %prep
 %setup -q -n Paste-%{version}
+%patch0 -p1
+sed -i '/pytest-runner/d' setup.py
 # remove test requiring internet access
 rm tests/test_proxy.py
 
@@ -64,7 +66,7 @@
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
-%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} 
py.test-%{$python_bin_suffix} -v -k 'not test_modified'
+%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} 
py.test-%{$python_bin_suffix} -v
 
 %files %{python_files}
 %license docs/license.txt

++++++ Paste-3.0.7.tar.gz -> Paste-3.0.8.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Paste-3.0.7/PKG-INFO new/Paste-3.0.8/PKG-INFO
--- old/Paste-3.0.7/PKG-INFO    2019-02-28 17:00:46.000000000 +0100
+++ new/Paste-3.0.8/PKG-INFO    2019-03-07 11:59:41.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: Paste
-Version: 3.0.7
+Version: 3.0.8
 Summary: Tools for using a Web Server Gateway Interface stack
 Home-page: https://pythonpaste.readthedocs.io/
 Author: Chris Dent
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Paste-3.0.7/Paste.egg-info/PKG-INFO 
new/Paste-3.0.8/Paste.egg-info/PKG-INFO
--- old/Paste-3.0.7/Paste.egg-info/PKG-INFO     2019-02-28 17:00:45.000000000 
+0100
+++ new/Paste-3.0.8/Paste.egg-info/PKG-INFO     2019-03-07 11:59:41.000000000 
+0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: Paste
-Version: 3.0.7
+Version: 3.0.8
 Summary: Tools for using a Web Server Gateway Interface stack
 Home-page: https://pythonpaste.readthedocs.io/
 Author: Chris Dent
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Paste-3.0.7/docs/news.txt 
new/Paste-3.0.8/docs/news.txt
--- old/Paste-3.0.7/docs/news.txt       2019-02-28 16:46:14.000000000 +0100
+++ new/Paste-3.0.8/docs/news.txt       2019-03-07 11:54:28.000000000 +0100
@@ -3,6 +3,11 @@
 
 .. contents::
 
+3.0.8
+-----
+
+* Fix quoting of bytestrings (#23, via jelmer).
+
 3.0.7
 -----
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Paste-3.0.7/paste/util/quoting.py 
new/Paste-3.0.8/paste/util/quoting.py
--- old/Paste-3.0.7/paste/util/quoting.py       2019-02-28 16:09:41.000000000 
+0100
+++ new/Paste-3.0.8/paste/util/quoting.py       2019-03-07 11:51:36.000000000 
+0100
@@ -23,7 +23,10 @@
     if v is None:
         return ''
     elif isinstance(v, six.binary_type):
-        return html.escape(v, 1)
+        if six.PY3:
+            return html.escape(v.decode(encoding), 1).encode(encoding)
+        else:
+            return html.escape(v, 1)
     elif isinstance(v, six.text_type):
         if six.PY3:
             return html.escape(v, 1)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Paste-3.0.7/setup.py new/Paste-3.0.8/setup.py
--- old/Paste-3.0.7/setup.py    2019-02-28 16:45:24.000000000 +0100
+++ new/Paste-3.0.8/setup.py    2019-03-07 11:53:15.000000000 +0100
@@ -12,7 +12,7 @@
 # - git push
 # - python setup.py sdist bdist_wheel upload --sign
 
-__version__ = '3.0.7'
+__version__ = '3.0.8'
 
 from setuptools import setup, find_packages
 import sys, os
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Paste-3.0.7/tests/test_util/test_quoting.py 
new/Paste-3.0.8/tests/test_util/test_quoting.py
--- old/Paste-3.0.7/tests/test_util/test_quoting.py     2019-02-28 
16:09:41.000000000 +0100
+++ new/Paste-3.0.8/tests/test_util/test_quoting.py     2019-03-07 
11:51:36.000000000 +0100
@@ -20,6 +20,8 @@
                          '')
         self.assertEqual(quoting.html_quote('<hey!>'),
                          '&lt;hey!&gt;')
+        self.assertEqual(quoting.html_quote(b'<hey!>'),
+                         b'&lt;hey!&gt;')
         if six.PY3:
             self.assertEqual(quoting.html_quote(u'<\u1029>'),
                              u'&lt;\u1029&gt;')

++++++ test_modified-fixup.patch ++++++
diff -ru Paste-3.0.8-orig/tests/test_fileapp.py 
Paste-3.0.8/tests/test_fileapp.py
--- Paste-3.0.8-orig/tests/test_fileapp.py      2019-02-28 22:09:41.000000000 
+0700
+++ Paste-3.0.8/tests/test_fileapp.py   2019-03-08 17:40:52.558943604 +0700
@@ -96,7 +96,9 @@
     res = harness.get("/",status=400,
             headers={'if-modified-since':
                 'Thu, 22 Dec 3030 01:01:01 GMT'})
-    assert 400 == res.status and b"check your system clock" in res.body
+    assert 400 == res.status and (
+        b"check your system clock" in res.body or
+        b"ill-formed timestamp" in res.body)
 
 def test_file():
     tempfile = "test_fileapp.%s.txt" % (random.random())

Reply via email to