Hello community,

here is the log from the commit of package python-Babel for openSUSE:Factory 
checked in at 2020-05-20 18:36:24
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-Babel (Old)
 and      /work/SRC/openSUSE:Factory/.python-Babel.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-Babel"

Wed May 20 18:36:24 2020 rev:29 rq:807190 version:2.8.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-Babel/python-Babel.changes        
2020-01-16 18:14:52.488758752 +0100
+++ /work/SRC/openSUSE:Factory/.python-Babel.new.2738/python-Babel.changes      
2020-05-20 18:36:29.180107984 +0200
@@ -1,0 +2,11 @@
+Tue May 19 10:38:24 UTC 2020 - Tomáš Chvátal <tchva...@suse.com>
+
+- Add patch to fix building with new python 3.8.3:
+  * python383.patch
+
+-------------------------------------------------------------------
+Tue May 19 10:36:45 UTC 2020 - Tomáš Chvátal <tchva...@suse.com>
+
+- Do not bother with documentation package, it is all available online
+
+-------------------------------------------------------------------

Old:
----
  python-Babel-doc.changes
  python-Babel-doc.spec

New:
----
  python383.patch

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

Other differences:
------------------
++++++ python-Babel.spec ++++++
--- /var/tmp/diff_new_pack.AeIUhu/_old  2020-05-20 18:36:29.900109493 +0200
+++ /var/tmp/diff_new_pack.AeIUhu/_new  2020-05-20 18:36:29.904109501 +0200
@@ -23,10 +23,9 @@
 Release:        0
 Summary:        Internationalization utilities
 License:        BSD-3-Clause
-Group:          Development/Languages/Python
 URL:            http://babel.pocoo.org/
 Source:         
https://files.pythonhosted.org/packages/source/B/Babel/Babel-%{version}.tar.gz
-# Test requirements:
+Patch0:         python383.patch
 BuildRequires:  %{python_module freezegun}
 BuildRequires:  %{python_module py >= 1.4.14}
 BuildRequires:  %{python_module pytest >= 2.3.5}
@@ -53,6 +52,7 @@
 
 %prep
 %setup -q -n Babel-%{version}
+%patch0 -p1
 
 %build
 %python_build

++++++ python383.patch ++++++
>From 7bdaa28a55e8d8228d5434effa4b1473ab7b3669 Mon Sep 17 00:00:00 2001
From: Felix Schwarz <felix.schw...@oss.schwarz.eu>
Date: Tue, 5 May 2020 08:05:56 +0000
Subject: [PATCH] fix tests when using Python 3.9a6

In Python 3.9a6 integer values for future flags were changed to prevent
collision with compiler flags. We need to retrieve these at runtime so
the test suite works with Python <= 3.8 as well as Python 3.9.
---
 tests/test_util.py | 17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)

diff --git a/tests/test_util.py b/tests/test_util.py
index a6a4450c..b9343aaa 100644
--- a/tests/test_util.py
+++ b/tests/test_util.py
@@ -11,6 +11,7 @@
 # individuals. For the exact contribution history, see the revision
 # history and logs, available at http://babel.edgewall.org/log/.
 
+import __future__
 import unittest
 
 import pytest
@@ -20,6 +21,12 @@
 from babel.util import parse_future_flags
 
 
+class _FF:
+    division         = __future__.division.compiler_flag
+    print_function   = __future__.print_function.compiler_flag
+    with_statement   = __future__.with_statement.compiler_flag
+    unicode_literals = __future__.unicode_literals.compiler_flag
+
 def test_distinct():
     assert list(util.distinct([1, 2, 1, 3, 4, 4])) == [1, 2, 3, 4]
     assert list(util.distinct('foobar')) == ['f', 'o', 'b', 'a', 'r']
@@ -70,25 +77,25 @@ def test_parse_encoding_non_ascii():
 from __future__ import print_function,
     division, with_statement,
     unicode_literals
-''', 0x10000 | 0x2000 | 0x8000 | 0x20000),
+''', _FF.print_function | _FF.division | _FF.with_statement | 
_FF.unicode_literals),
     ('''
 from __future__ import print_function, division
 print('hello')
-''', 0x10000 | 0x2000),
+''', _FF.print_function | _FF.division),
     ('''
 from __future__ import print_function, division, unknown,,,,,
 print 'hello'
-''', 0x10000 | 0x2000),
+''', _FF.print_function | _FF.division),
     ('''
 from __future__ import (
     print_function,
     division)
-''', 0x10000 | 0x2000),
+''', _FF.print_function | _FF.division),
     ('''
 from __future__ import \\
     print_function, \\
     division
-''', 0x10000 | 0x2000),
+''', _FF.print_function | _FF.division),
 ])
 def test_parse_future(source, result):
     fp = BytesIO(source.encode('latin-1'))

Reply via email to