Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-pyflakes for openSUSE:Factory
checked in at 2021-05-12 19:31:19
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pyflakes (Old)
and /work/SRC/openSUSE:Factory/.python-pyflakes.new.2988 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pyflakes"
Wed May 12 19:31:19 2021 rev:27 rq:891883 version:2.3.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pyflakes/python-pyflakes.changes
2021-03-21 23:19:18.812717469 +0100
+++
/work/SRC/openSUSE:Factory/.python-pyflakes.new.2988/python-pyflakes.changes
2021-05-12 19:31:26.259232597 +0200
@@ -1,0 +2,6 @@
+Sun May 9 14:45:39 UTC 2021 - Dirk M??ller <[email protected]>
+
+- update to 2.3.1:
+ - Fix regression in 2.3.0: type annotations no longer redefine imports
+
+-------------------------------------------------------------------
Old:
----
pyflakes-2.3.0.tar.gz
New:
----
pyflakes-2.3.1.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pyflakes.spec ++++++
--- /var/tmp/diff_new_pack.FkvEko/_old 2021-05-12 19:31:27.543226893 +0200
+++ /var/tmp/diff_new_pack.FkvEko/_new 2021-05-12 19:31:27.547226876 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-pyflakes
#
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -19,7 +19,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without test
Name: python-pyflakes
-Version: 2.3.0
+Version: 2.3.1
Release: 0
Summary: Passive checker of Python programs
License: MIT
@@ -32,7 +32,7 @@
# the pkg_resources module is required at runtime
Requires: python-setuptools
Requires(post): update-alternatives
-Requires(postun): update-alternatives
+Requires(postun):update-alternatives
BuildArch: noarch
%python_subpackages
++++++ pyflakes-2.3.0.tar.gz -> pyflakes-2.3.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pyflakes-2.3.0/NEWS.rst new/pyflakes-2.3.1/NEWS.rst
--- old/pyflakes-2.3.0/NEWS.rst 2021-03-14 17:32:52.000000000 +0100
+++ new/pyflakes-2.3.1/NEWS.rst 2021-03-24 17:31:00.000000000 +0100
@@ -1,3 +1,7 @@
+2.3.1 (2021-03-24)
+
+- Fix regression in 2.3.0: type annotations no longer redefine imports
+
2.3.0 (2021-03-14)
- Recognize tuple concatenation in ``__all__`` export definitions
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pyflakes-2.3.0/PKG-INFO new/pyflakes-2.3.1/PKG-INFO
--- old/pyflakes-2.3.0/PKG-INFO 2021-03-14 17:33:07.042730300 +0100
+++ new/pyflakes-2.3.1/PKG-INFO 2021-03-24 17:32:11.632774800 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.2
Name: pyflakes
-Version: 2.3.0
+Version: 2.3.1
Summary: passive checker of Python programs
Home-page: https://github.com/PyCQA/pyflakes
Author: A lot of people
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pyflakes-2.3.0/pyflakes/__init__.py
new/pyflakes-2.3.1/pyflakes/__init__.py
--- old/pyflakes-2.3.0/pyflakes/__init__.py 2021-03-14 17:32:52.000000000
+0100
+++ new/pyflakes-2.3.1/pyflakes/__init__.py 2021-03-24 17:31:12.000000000
+0100
@@ -1 +1 @@
-__version__ = '2.3.0'
+__version__ = '2.3.1'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pyflakes-2.3.0/pyflakes/checker.py
new/pyflakes-2.3.1/pyflakes/checker.py
--- old/pyflakes-2.3.0/pyflakes/checker.py 2021-03-14 17:31:42.000000000
+0100
+++ new/pyflakes-2.3.1/pyflakes/checker.py 2021-03-24 17:30:16.000000000
+0100
@@ -548,6 +548,10 @@
annotation.
"""
+ def redefines(self, other):
+ """An Annotation doesn't define any name, so it cannot redefine one."""
+ return False
+
class FunctionDefinition(Definition):
pass
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pyflakes-2.3.0/pyflakes/test/test_type_annotations.py
new/pyflakes-2.3.1/pyflakes/test/test_type_annotations.py
--- old/pyflakes-2.3.0/pyflakes/test/test_type_annotations.py 2021-03-14
17:31:42.000000000 +0100
+++ new/pyflakes-2.3.1/pyflakes/test/test_type_annotations.py 2021-03-24
17:30:16.000000000 +0100
@@ -284,6 +284,14 @@
''', m.ForwardAnnotationSyntaxError)
@skipIf(version_info < (3, 6), 'new in Python 3.6')
+ def test_annotating_an_import(self):
+ self.flakes('''
+ from a import b, c
+ b: c
+ print(b)
+ ''')
+
+ @skipIf(version_info < (3, 6), 'new in Python 3.6')
def test_unused_annotation(self):
# Unused annotations are fine in module and class scope
self.flakes('''
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pyflakes-2.3.0/pyflakes.egg-info/PKG-INFO
new/pyflakes-2.3.1/pyflakes.egg-info/PKG-INFO
--- old/pyflakes-2.3.0/pyflakes.egg-info/PKG-INFO 2021-03-14
17:33:06.000000000 +0100
+++ new/pyflakes-2.3.1/pyflakes.egg-info/PKG-INFO 2021-03-24
17:32:11.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.2
Name: pyflakes
-Version: 2.3.0
+Version: 2.3.1
Summary: passive checker of Python programs
Home-page: https://github.com/PyCQA/pyflakes
Author: A lot of people