Hello community,

here is the log from the commit of package python-flake8-future-import for 
openSUSE:Factory checked in at 2019-02-01 11:47:59
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-flake8-future-import (Old)
 and      /work/SRC/openSUSE:Factory/.python-flake8-future-import.new.28833 
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-flake8-future-import"

Fri Feb  1 11:47:59 2019 rev:3 rq:670304 version:0.4.5

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-flake8-future-import/python-flake8-future-import.changes
  2018-12-13 19:44:32.249005333 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-flake8-future-import.new.28833/python-flake8-future-import.changes
       2019-02-01 11:48:28.896365410 +0100
@@ -1,0 +2,6 @@
+Thu Jan 31 10:20:38 UTC 2019 - Tomáš Chvátal <[email protected]>
+
+- Add patch to build with python 3.7:
+  * python37.patch
+
+-------------------------------------------------------------------

New:
----
  python37.patch

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

Other differences:
------------------
++++++ python-flake8-future-import.spec ++++++
--- /var/tmp/diff_new_pack.3Ruc8v/_old  2019-02-01 11:48:29.732364552 +0100
+++ /var/tmp/diff_new_pack.3Ruc8v/_new  2019-02-01 11:48:29.736364547 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-flake8-future-import
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -25,14 +25,15 @@
 Group:          Development/Languages/Python
 URL:            https://github.com/xZise/flake8-future-import
 Source:         
https://files.pythonhosted.org/packages/source/f/flake8-future-import/flake8-future-import-%{version}.tar.gz
+Patch0:         python37.patch
 BuildRequires:  %{python_module flake8}
 BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module six}
+BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires:       python-flake8
 BuildArch:      noarch
-
 %python_subpackages
 
 %description
@@ -48,6 +49,7 @@
 
 %prep
 %setup -q -n flake8-future-import-%{version}
+%patch0 -p1
 mv test_flake8_future_import.py test_flake8_future_import.py.in
 
 %build
@@ -55,7 +57,7 @@
 
 %check
 %{python_expand # Deal with generated Python code
-sed -e "s|#!/usr/bin/python\\\\n|#!%{_bindir}/$python\\\\n|g" \
+sed -e "s|#!%{_bindir}/python\\\\n|#!%{_bindir}/$python\\\\n|g" \
     -e "s|command = \\['flake8'|command = \\['flake8-%{$python_bin_suffix}'|g" 
\
     test_flake8_future_import.py.in > test_flake8_future_import.py
 $python setup.py test
@@ -63,6 +65,7 @@
 
 %install
 %python_install
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %files %{python_files}
 %license LICENSE

++++++ python37.patch ++++++
>From cace194a44d3b95c9c1ed96640bae49183acca04 Mon Sep 17 00:00:00 2001
From: Mario Rodas <[email protected]>
Date: Wed, 5 Dec 2018 19:15:58 -0500
Subject: [PATCH] Add "annotation" feature

Python 3.7 introduced "annotations" feature. See
https://docs.python.org/3/whatsnew/3.7.html#pep-563-postponed-evaluation-of-annotations
---
 flake8_future_import.py      | 3 ++-
 test_flake8_future_import.py | 4 ++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/flake8_future_import.py b/flake8_future_import.py
index 7bd1bbe..2c4b918 100755
--- a/flake8_future_import.py
+++ b/flake8_future_import.py
@@ -76,11 +76,12 @@ def add_arguments(cls, parser):
 GENERATOR_STOP = Feature(5, 'generator_stop', (3, 5, 0), (3, 7, 0))
 NESTED_SCOPES = Feature(6, 'nested_scopes', (2, 1, 0), (2, 2, 0))
 GENERATORS = Feature(7, 'generators', (2, 2, 0), (2, 3, 0))
+ANNOTATIONS = Feature(8, 'annotations', (3, 7, 0), (4, 0, 0))
 
 
 # Order important as it defines the error code
 ALL_FEATURES = (DIVISION, ABSOLUTE_IMPORT, WITH_STATEMENT, PRINT_FUNCTION,
-                UNICODE_LITERALS, GENERATOR_STOP, NESTED_SCOPES, GENERATORS)
+                UNICODE_LITERALS, GENERATOR_STOP, NESTED_SCOPES, GENERATORS, 
ANNOTATIONS)
 FEATURES = dict((feature.name, feature) for feature in ALL_FEATURES)
 FEATURE_NAMES = frozenset(feature.name for feature in ALL_FEATURES)
 # Make sure the features aren't messed up
diff --git a/test_flake8_future_import.py b/test_flake8_future_import.py
index 1083ea4..84fde59 100644
--- a/test_flake8_future_import.py
+++ b/test_flake8_future_import.py
@@ -135,14 +135,14 @@ def test_mandatory_and_unavailable(self):
         """Do not care about already mandatory or not yet available 
features."""
         self.run_checker(
             (2, 6, 0),
-            set(['nested_scopes', 'generators', 'with_statement', 
'generator_stop']),
+            set(['nested_scopes', 'generators', 'with_statement', 
'generator_stop', 'annotations']),
             ('unicode_literals', ))
 
     def test_use_of_unavailable(self):
         """Use an import which is to new for the minimum version."""
         self.run_checker(
             (2, 6, 0),
-            set(['nested_scopes', 'generators', 'with_statement']),
+            set(['nested_scopes', 'generators', 'with_statement', 
'annotations']),
             ('generator_stop', ))
 
 

Reply via email to