Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-EditorConfig for 
openSUSE:Factory checked in at 2021-08-28 22:29:29
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-EditorConfig (Old)
 and      /work/SRC/openSUSE:Factory/.python-EditorConfig.new.1899 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-EditorConfig"

Sat Aug 28 22:29:29 2021 rev:5 rq:914753 version:0.12.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-EditorConfig/python-EditorConfig.changes  
2020-03-16 10:18:36.551593856 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-EditorConfig.new.1899/python-EditorConfig.changes
        2021-08-28 22:29:52.990022959 +0200
@@ -1,0 +2,14 @@
+Fri Aug 27 09:45:50 UTC 2021 - John Paul Adrian Glaubitz 
<[email protected]>
+
+- Update to 0.12.3
+  * Update 0.12.3 to final version
+  * Add Python 3.9 support
+  * Fix fnmatch adjacent nested curly braces (#33)
+  * tests: bump to master (#32)
+  * editorconfig as a module (#31)
+  * setup.py: read version without installing (#30)
+  * travis: support Python 3.8
+  * Fix deprecation warnings coming with Python 3.7
+  * Add (c) to copyright notices per @xuhdev's request
+
+-------------------------------------------------------------------

Old:
----
  EditorConfig-0.12.2.tar.gz

New:
----
  EditorConfig-0.12.3.tar.gz

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

Other differences:
------------------
++++++ python-EditorConfig.spec ++++++
--- /var/tmp/diff_new_pack.QWP3EB/_old  2021-08-28 22:29:53.462023484 +0200
+++ /var/tmp/diff_new_pack.QWP3EB/_new  2021-08-28 22:29:53.466023488 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-EditorConfig
 #
-# 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
@@ -18,10 +18,10 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-EditorConfig
-Version:        0.12.2
+Version:        0.12.3
 Release:        0
 Summary:        File Locator and Interpreter for Python
-License:        Python-2.0 AND BSD-2-Clause
+License:        BSD-2-Clause AND Python-2.0
 URL:            https://editorconfig.org
 Source0:        
https://files.pythonhosted.org/packages/source/E/EditorConfig/EditorConfig-%{version}.tar.gz
 BuildRequires:  %{python_module setuptools}

++++++ EditorConfig-0.12.2.tar.gz -> EditorConfig-0.12.3.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/EditorConfig-0.12.2/COPYING 
new/EditorConfig-0.12.3/COPYING
--- old/EditorConfig-0.12.2/COPYING     2018-04-18 07:42:56.000000000 +0200
+++ new/EditorConfig-0.12.3/COPYING     2020-12-23 05:07:14.000000000 +0100
@@ -1,4 +1,4 @@
-Copyright 2011-2018 EditorConfig Team, including Hong Xu and Trey Hunner
+Copyright (c) 2011-2018 EditorConfig Team, including Hong Xu and Trey Hunner
 
 editorconfig-core-py is free software. You are free to copy,
 modify, and/or redistribute this work under the terms of the BSD
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/EditorConfig-0.12.2/EditorConfig.egg-info/PKG-INFO 
new/EditorConfig-0.12.3/EditorConfig.egg-info/PKG-INFO
--- old/EditorConfig-0.12.2/EditorConfig.egg-info/PKG-INFO      2018-04-18 
07:45:09.000000000 +0200
+++ new/EditorConfig-0.12.3/EditorConfig.egg-info/PKG-INFO      2020-12-23 
05:20:12.000000000 +0100
@@ -1,12 +1,11 @@
 Metadata-Version: 1.1
 Name: EditorConfig
-Version: 0.12.2
+Version: 0.12.3
 Summary: EditorConfig File Locator and Interpreter for Python
 Home-page: http://editorconfig.org/
 Author: EditorConfig Team
 Author-email: UNKNOWN
 License: python
-Description-Content-Type: UNKNOWN
 Description: ========================
         EditorConfig Python Core
         ========================
@@ -102,7 +101,9 @@
 Classifier: Programming Language :: Python
 Classifier: Programming Language :: Python :: 2.7
 Classifier: Programming Language :: Python :: 3
-Classifier: Programming Language :: Python :: 3.4
 Classifier: Programming Language :: Python :: 3.5
 Classifier: Programming Language :: Python :: 3.6
+Classifier: Programming Language :: Python :: 3.7
+Classifier: Programming Language :: Python :: 3.8
+Classifier: Programming Language :: Python :: 3.9
 Classifier: Programming Language :: Python :: Implementation :: PyPy
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/EditorConfig-0.12.2/EditorConfig.egg-info/SOURCES.txt 
new/EditorConfig-0.12.3/EditorConfig.egg-info/SOURCES.txt
--- old/EditorConfig-0.12.2/EditorConfig.egg-info/SOURCES.txt   2018-04-18 
07:45:09.000000000 +0200
+++ new/EditorConfig-0.12.3/EditorConfig.egg-info/SOURCES.txt   2020-12-23 
05:20:12.000000000 +0100
@@ -10,10 +10,11 @@
 EditorConfig.egg-info/entry_points.txt
 EditorConfig.egg-info/top_level.txt
 editorconfig/__init__.py
+editorconfig/__main__.py
 editorconfig/compat.py
 editorconfig/exceptions.py
 editorconfig/fnmatch.py
 editorconfig/handler.py
 editorconfig/ini.py
-editorconfig/main.py
+editorconfig/version.py
 editorconfig/versiontools.py
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/EditorConfig-0.12.2/EditorConfig.egg-info/entry_points.txt 
new/EditorConfig-0.12.3/EditorConfig.egg-info/entry_points.txt
--- old/EditorConfig-0.12.2/EditorConfig.egg-info/entry_points.txt      
2018-04-18 07:45:09.000000000 +0200
+++ new/EditorConfig-0.12.3/EditorConfig.egg-info/entry_points.txt      
2020-12-23 05:20:12.000000000 +0100
@@ -1,3 +1,3 @@
 [console_scripts]
-editorconfig = editorconfig.main:main
+editorconfig = editorconfig.__main__:main
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/EditorConfig-0.12.2/LICENSE.BSD 
new/EditorConfig-0.12.3/LICENSE.BSD
--- old/EditorConfig-0.12.2/LICENSE.BSD 2018-04-18 07:42:56.000000000 +0200
+++ new/EditorConfig-0.12.3/LICENSE.BSD 2020-12-23 05:07:14.000000000 +0100
@@ -1,4 +1,4 @@
-Copyright 2011-2018 EditorConfig Team, including Hong Xu and Trey Hunner
+Copyright (c) 2011-2018 EditorConfig Team, including Hong Xu and Trey Hunner
 
 Redistribution and use in source and binary forms, with or without
 modification, are permitted provided that the following conditions are met:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/EditorConfig-0.12.2/PKG-INFO 
new/EditorConfig-0.12.3/PKG-INFO
--- old/EditorConfig-0.12.2/PKG-INFO    2018-04-18 07:45:09.000000000 +0200
+++ new/EditorConfig-0.12.3/PKG-INFO    2020-12-23 05:20:12.393674900 +0100
@@ -1,12 +1,11 @@
 Metadata-Version: 1.1
 Name: EditorConfig
-Version: 0.12.2
+Version: 0.12.3
 Summary: EditorConfig File Locator and Interpreter for Python
 Home-page: http://editorconfig.org/
 Author: EditorConfig Team
 Author-email: UNKNOWN
 License: python
-Description-Content-Type: UNKNOWN
 Description: ========================
         EditorConfig Python Core
         ========================
@@ -102,7 +101,9 @@
 Classifier: Programming Language :: Python
 Classifier: Programming Language :: Python :: 2.7
 Classifier: Programming Language :: Python :: 3
-Classifier: Programming Language :: Python :: 3.4
 Classifier: Programming Language :: Python :: 3.5
 Classifier: Programming Language :: Python :: 3.6
+Classifier: Programming Language :: Python :: 3.7
+Classifier: Programming Language :: Python :: 3.8
+Classifier: Programming Language :: Python :: 3.9
 Classifier: Programming Language :: Python :: Implementation :: PyPy
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/EditorConfig-0.12.2/editorconfig/__init__.py 
new/EditorConfig-0.12.3/editorconfig/__init__.py
--- old/EditorConfig-0.12.2/editorconfig/__init__.py    2018-04-18 
07:44:24.000000000 +0200
+++ new/EditorConfig-0.12.3/editorconfig/__init__.py    2020-12-23 
05:07:14.000000000 +0100
@@ -1,8 +1,7 @@
 """EditorConfig Python Core"""
 
 from editorconfig.versiontools import join_version
-
-VERSION = (0, 12, 2, "final")
+from editorconfig.version import VERSION
 
 __all__ = ['get_properties', 'EditorConfigError', 'exceptions']
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/EditorConfig-0.12.2/editorconfig/__main__.py 
new/EditorConfig-0.12.3/editorconfig/__main__.py
--- old/EditorConfig-0.12.2/editorconfig/__main__.py    1970-01-01 
01:00:00.000000000 +0100
+++ new/EditorConfig-0.12.3/editorconfig/__main__.py    2020-12-23 
05:07:14.000000000 +0100
@@ -0,0 +1,82 @@
+"""EditorConfig command line interface
+
+Licensed under Simplified BSD License (see LICENSE.BSD file).
+
+"""
+
+import getopt
+import sys
+
+from editorconfig import VERSION, __version__
+from editorconfig.compat import force_unicode
+from editorconfig.exceptions import ParsingError, PathError, VersionError
+from editorconfig.handler import EditorConfigHandler
+from editorconfig.versiontools import split_version
+
+
+def version():
+    print("EditorConfig Python Core Version %s" % __version__)
+
+
+def usage(command, error=False):
+    if error:
+        out = sys.stderr
+    else:
+        out = sys.stdout
+    out.write("%s [OPTIONS] FILENAME\n" % command)
+    out.write('-f                 '
+              'Specify conf filename other than ".editorconfig".\n')
+    out.write("-b                 "
+              "Specify version (used by devs to test compatibility).\n")
+    out.write("-h OR --help       Print this help message.\n")
+    out.write("-v OR --version    Display version information.\n")
+
+
+def main():
+    command_name = sys.argv[0]
+    try:
+        opts, args = getopt.getopt(list(map(force_unicode, sys.argv[1:])),
+                                   "vhb:f:", ["version", "help"])
+    except getopt.GetoptError as e:
+        print(str(e))
+        usage(command_name, error=True)
+        sys.exit(2)
+
+    version_tuple = VERSION
+    conf_filename = '.editorconfig'
+
+    for option, arg in opts:
+        if option in ('-h', '--help'):
+            usage(command_name)
+            sys.exit()
+        if option in ('-v', '--version'):
+            version()
+            sys.exit()
+        if option == '-f':
+            conf_filename = arg
+        if option == '-b':
+            version_tuple = split_version(arg)
+            if version_tuple is None:
+                sys.exit("Invalid version number: %s" % arg)
+
+    if len(args) < 1:
+        usage(command_name, error=True)
+        sys.exit(2)
+    filenames = args
+    multiple_files = len(args) > 1
+
+    for filename in filenames:
+        handler = EditorConfigHandler(filename, conf_filename, version_tuple)
+        try:
+            options = handler.get_configurations()
+        except (ParsingError, PathError, VersionError) as e:
+            print(str(e))
+            sys.exit(2)
+        if multiple_files:
+            print("[%s]" % filename)
+        for key, value in options.items():
+            print("%s=%s" % (key, value))
+
+
+if __name__ == "__main__":
+    main()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/EditorConfig-0.12.2/editorconfig/fnmatch.py 
new/EditorConfig-0.12.3/editorconfig/fnmatch.py
--- old/EditorConfig-0.12.2/editorconfig/fnmatch.py     2018-04-18 
07:42:56.000000000 +0200
+++ new/EditorConfig-0.12.3/editorconfig/fnmatch.py     2020-12-23 
05:07:14.000000000 +0100
@@ -28,7 +28,7 @@
 LEFT_BRACE = re.compile(
     r"""
 
-    (?: ^ | [^\\] )     # Beginning of string or a character besides "\"
+    (?<! \\ )           # Not preceded by "\"
 
     \{                  # "{"
 
@@ -38,7 +38,7 @@
 RIGHT_BRACE = re.compile(
     r"""
 
-    (?: ^ | [^\\] )     # Beginning of string or a character besides "\"
+    (?<! \\ )           # Not preceded by "\"
 
     \}                  # "}"
 
@@ -135,7 +135,7 @@
             else:
                 result += '[^/]*'
         elif current_char == '?':
-            result += '.'
+            result += '[^/]'
         elif current_char == '[':
             if in_brackets:
                 result += '\\['
@@ -148,8 +148,8 @@
                         break
                     pos += 1
                 if has_slash:
-                    result += '\\[' + pat[index:(pos + 1)] + '\\]'
-                    index = pos + 2
+                    result += '\\[' + pat[index:(pos + 1)]
+                    index = pos + 1
                 else:
                     if index < length and pat[index] in '!^':
                         index += 1
@@ -163,8 +163,11 @@
             else:
                 result += '\\' + current_char
         elif current_char == ']':
-            result += current_char
-            in_brackets = False
+            if in_brackets and pat[index-2] == '\\':
+                result += '\\]'
+            else:
+                result += current_char
+                in_brackets = False
         elif current_char == '{':
             pos = index
             has_comma = False
@@ -178,7 +181,7 @@
                 num_range = NUMERIC_RANGE.match(pat[index:pos])
                 if num_range:
                     numeric_groups.append(map(int, num_range.groups()))
-                    result += "([+-]?\d+)"
+                    result += r"([+-]?\d+)"
                 else:
                     inner_result, inner_groups = translate(pat[index:pos],
                                                            nested=True)
@@ -216,5 +219,5 @@
         else:
             is_escaped = False
     if not nested:
-        result += '\Z(?ms)'
+        result = r'(?s)%s\Z' % result
     return result, numeric_groups
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/EditorConfig-0.12.2/editorconfig/ini.py 
new/EditorConfig-0.12.3/editorconfig/ini.py
--- old/EditorConfig-0.12.2/editorconfig/ini.py 2018-04-18 07:42:56.000000000 
+0200
+++ new/EditorConfig-0.12.3/editorconfig/ini.py 2020-12-23 05:07:14.000000000 
+0100
@@ -27,6 +27,10 @@
 
 __all__ = ["ParsingError", "EditorConfigParser"]
 
+MAX_SECTION_LENGTH = 4096
+MAX_PROPERTY_LENGTH= 50
+MAX_VALUE_LENGTH = 255
+
 
 class EditorConfigParser(object):
 
@@ -134,6 +138,8 @@
                 mo = self.SECTCRE.match(line)
                 if mo:
                     sectname = mo.group('header')
+                    if len(sectname) > MAX_SECTION_LENGTH:
+                        continue
                     in_section = True
                     matching_section = self.matches_filename(fpname, sectname)
                     # So sections can't start with a continuation line
@@ -154,6 +160,9 @@
                         if optval == '""':
                             optval = ''
                         optname = self.optionxform(optname.rstrip())
+                        if (len(optname) > MAX_PROPERTY_LENGTH or
+                            len(optval) > MAX_VALUE_LENGTH):
+                            continue
                         if not in_section and optname == 'root':
                             self.root_file = (optval.lower() == 'true')
                         if matching_section:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/EditorConfig-0.12.2/editorconfig/main.py 
new/EditorConfig-0.12.3/editorconfig/main.py
--- old/EditorConfig-0.12.2/editorconfig/main.py        2018-04-18 
07:42:56.000000000 +0200
+++ new/EditorConfig-0.12.3/editorconfig/main.py        1970-01-01 
01:00:00.000000000 +0100
@@ -1,78 +0,0 @@
-"""EditorConfig command line interface
-
-Licensed under Simplified BSD License (see LICENSE.BSD file).
-
-"""
-
-import getopt
-import sys
-
-from editorconfig import VERSION, __version__
-from editorconfig.compat import force_unicode
-from editorconfig.exceptions import ParsingError, PathError, VersionError
-from editorconfig.handler import EditorConfigHandler
-from editorconfig.versiontools import split_version
-
-
-def version():
-    print("EditorConfig Python Core Version %s" % __version__)
-
-
-def usage(command, error=False):
-    if error:
-        out = sys.stderr
-    else:
-        out = sys.stdout
-    out.write("%s [OPTIONS] FILENAME\n" % command)
-    out.write('-f                 '
-              'Specify conf filename other than ".editorconfig".\n')
-    out.write("-b                 "
-              "Specify version (used by devs to test compatibility).\n")
-    out.write("-h OR --help       Print this help message.\n")
-    out.write("-v OR --version    Display version information.\n")
-
-
-def main():
-    command_name = sys.argv[0]
-    try:
-        opts, args = getopt.getopt(list(map(force_unicode, sys.argv[1:])),
-                                   "vhb:f:", ["version", "help"])
-    except getopt.GetoptError as e:
-        print(str(e))
-        usage(command_name, error=True)
-        sys.exit(2)
-
-    version_tuple = VERSION
-    conf_filename = '.editorconfig'
-
-    for option, arg in opts:
-        if option in ('-h', '--help'):
-            usage(command_name)
-            sys.exit()
-        if option in ('-v', '--version'):
-            version()
-            sys.exit()
-        if option == '-f':
-            conf_filename = arg
-        if option == '-b':
-            version_tuple = split_version(arg)
-            if version_tuple is None:
-                sys.exit("Invalid version number: %s" % arg)
-
-    if len(args) < 1:
-        usage(command_name, error=True)
-        sys.exit(2)
-    filenames = args
-    multiple_files = len(args) > 1
-
-    for filename in filenames:
-        handler = EditorConfigHandler(filename, conf_filename, version_tuple)
-        try:
-            options = handler.get_configurations()
-        except (ParsingError, PathError, VersionError) as e:
-            print(str(e))
-            sys.exit(2)
-        if multiple_files:
-            print("[%s]" % filename)
-        for key, value in options.items():
-            print("%s=%s" % (key, value))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/EditorConfig-0.12.2/editorconfig/version.py 
new/EditorConfig-0.12.3/editorconfig/version.py
--- old/EditorConfig-0.12.2/editorconfig/version.py     1970-01-01 
01:00:00.000000000 +0100
+++ new/EditorConfig-0.12.3/editorconfig/version.py     2020-12-23 
05:09:27.000000000 +0100
@@ -0,0 +1 @@
+VERSION = (0, 12, 3, "final")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/EditorConfig-0.12.2/setup.py 
new/EditorConfig-0.12.3/setup.py
--- old/EditorConfig-0.12.2/setup.py    2018-04-17 05:59:54.000000000 +0200
+++ new/EditorConfig-0.12.3/setup.py    2020-12-23 05:10:19.000000000 +0100
@@ -1,10 +1,18 @@
+import os
 from setuptools import setup
 
-import editorconfig
+# Read the version
+g = {}
+with open(os.path.join("editorconfig", "version.py"), "rt") as fp:
+    exec(fp.read(), g)
+    v = g['VERSION']
+    version = ".".join(str(x) for x in v[:3])
+    if v[3] != "final":
+        version += "-" + v[3]
 
 setup(
     name='EditorConfig',
-    version=editorconfig.__version__,
+    version=version,
     author='EditorConfig Team',
     packages=['editorconfig'],
     url='http://editorconfig.org/',
@@ -13,7 +21,7 @@
     long_description=open('README.rst').read(),
     entry_points = {
         'console_scripts': [
-            'editorconfig = editorconfig.main:main',
+            'editorconfig = editorconfig.__main__:main',
         ]
     },
     classifiers=[
@@ -22,9 +30,11 @@
         'Programming Language :: Python',
         'Programming Language :: Python :: 2.7',
         'Programming Language :: Python :: 3',
-        'Programming Language :: Python :: 3.4',
         'Programming Language :: Python :: 3.5',
         'Programming Language :: Python :: 3.6',
+        'Programming Language :: Python :: 3.7',
+        'Programming Language :: Python :: 3.8',
+        'Programming Language :: Python :: 3.9',
         'Programming Language :: Python :: Implementation :: PyPy',
     ],
 )

Reply via email to