Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-flake8-pyi for openSUSE:Factory checked in at 2021-05-04 22:00:55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-flake8-pyi (Old) and /work/SRC/openSUSE:Factory/.python-flake8-pyi.new.2988 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-flake8-pyi" Tue May 4 22:00:55 2021 rev:6 rq:890238 version:20.10.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-flake8-pyi/python-flake8-pyi.changes 2020-05-28 09:07:07.111662901 +0200 +++ /work/SRC/openSUSE:Factory/.python-flake8-pyi.new.2988/python-flake8-pyi.changes 2021-05-04 22:00:59.444600320 +0200 @@ -1,0 +2,7 @@ +Tue May 4 06:41:27 UTC 2021 - Mark??ta Machov?? <mmach...@suse.com> + +- Update to 20.10.0 + * Fix for Python 3.9's AST changes + * skip typeshed test for older Python versions + +------------------------------------------------------------------- Old: ---- flake8-pyi-20.5.0.tar.gz New: ---- flake8-pyi-20.10.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-flake8-pyi.spec ++++++ --- /var/tmp/diff_new_pack.bU4mLc/_old 2021-05-04 22:00:59.872598711 +0200 +++ /var/tmp/diff_new_pack.bU4mLc/_new 2021-05-04 22:00:59.876598697 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-flake8-pyi # -# 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 @@ %define skip_python2 1 %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-flake8-pyi -Version: 20.5.0 +Version: 20.10.0 Release: 0 Summary: A plugin for flake8 to enable linting .pyi files License: MIT ++++++ flake8-pyi-20.5.0.tar.gz -> flake8-pyi-20.10.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flake8-pyi-20.5.0/PKG-INFO new/flake8-pyi-20.10.0/PKG-INFO --- old/flake8-pyi-20.5.0/PKG-INFO 2020-05-13 04:05:11.776741000 +0200 +++ new/flake8-pyi-20.10.0/PKG-INFO 2020-10-18 08:15:54.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.2 Name: flake8-pyi -Version: 20.5.0 +Version: 20.10.0 Summary: A plugin for flake8 to enable linting .pyi files. Home-page: https://github.com/ambv/flake8-pyi Author: ??ukasz Langa @@ -116,6 +116,11 @@ Change Log ---------- + 20.10.0 + ~~~~~~~ + + * support Python 3.9 + 20.5.0 ~~~~~~ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flake8-pyi-20.5.0/README.rst new/flake8-pyi-20.10.0/README.rst --- old/flake8-pyi-20.5.0/README.rst 2020-05-13 03:39:53.000000000 +0200 +++ new/flake8-pyi-20.10.0/README.rst 2020-10-18 08:13:40.000000000 +0200 @@ -108,6 +108,11 @@ Change Log ---------- +20.10.0 +~~~~~~~ + +* support Python 3.9 + 20.5.0 ~~~~~~ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flake8-pyi-20.5.0/flake8_pyi.egg-info/PKG-INFO new/flake8-pyi-20.10.0/flake8_pyi.egg-info/PKG-INFO --- old/flake8-pyi-20.5.0/flake8_pyi.egg-info/PKG-INFO 2020-05-13 04:05:11.000000000 +0200 +++ new/flake8-pyi-20.10.0/flake8_pyi.egg-info/PKG-INFO 2020-10-18 08:15:53.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.2 Name: flake8-pyi -Version: 20.5.0 +Version: 20.10.0 Summary: A plugin for flake8 to enable linting .pyi files. Home-page: https://github.com/ambv/flake8-pyi Author: ??ukasz Langa @@ -116,6 +116,11 @@ Change Log ---------- + 20.10.0 + ~~~~~~~ + + * support Python 3.9 + 20.5.0 ~~~~~~ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flake8-pyi-20.5.0/pyi.py new/flake8-pyi-20.10.0/pyi.py --- old/flake8-pyi-20.5.0/pyi.py 2020-05-13 04:04:10.000000000 +0200 +++ new/flake8-pyi-20.10.0/pyi.py 2020-10-18 08:13:48.000000000 +0200 @@ -13,7 +13,7 @@ from pyflakes.checker import ModuleScope, ClassScope, FunctionScope from typing import Any, Iterable, NamedTuple, Optional, Type -__version__ = "20.5.0" +__version__ = "20.10.0" LOG = logging.getLogger("flake8.pyi") @@ -203,10 +203,12 @@ version_info = node.left if isinstance(version_info, ast.Subscript): slc = version_info.slice - if isinstance(slc, ast.Index): + if isinstance(slc, (ast.Index, ast.Num)): + # Python 3.9 flattens the AST and removes Index, so simulate that here + slice_num = slc if isinstance(slc, ast.Num) else slc.value # anything other than the integer 0 doesn't make much sense # (things that are in 2.7 and 3.7 but not 3.6?) - if isinstance(slc.value, ast.Num) and slc.value.n == 0: + if isinstance(slice_num, ast.Num) and slice_num.n == 0: must_be_single = True else: self.error(node, Y003)