Hello community,

here is the log from the commit of package python3-autopep8 for 
openSUSE:Factory checked in at 2015-10-19 22:50:20
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python3-autopep8 (Old)
 and      /work/SRC/openSUSE:Factory/.python3-autopep8.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python3-autopep8"

Changes:
--------
--- /work/SRC/openSUSE:Factory/python3-autopep8/python3-autopep8.changes        
2015-08-11 08:26:28.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python3-autopep8.new/python3-autopep8.changes   
2015-10-20 00:04:26.000000000 +0200
@@ -1,0 +2,7 @@
+Mon Oct 12 09:45:19 UTC 2015 - toddrme2...@gmail.com
+
+- Update to version 1.2.1
+  - Add support for python 3.5
+  - Add support for latest pep8 package
+
+-------------------------------------------------------------------

Old:
----
  autopep8-1.2.tar.gz

New:
----
  autopep8-1.2.1.tar.gz

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

Other differences:
------------------
++++++ python3-autopep8.spec ++++++
--- /var/tmp/diff_new_pack.C2Pm3d/_old  2015-10-20 00:04:27.000000000 +0200
+++ /var/tmp/diff_new_pack.C2Pm3d/_new  2015-10-20 00:04:27.000000000 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           python3-autopep8
-Version:        1.2
+Version:        1.2.1
 Release:        0
 Url:            https://github.com/hhatto/autopep8
 Summary:        Automatic generated to pep8 checked code

++++++ autopep8-1.2.tar.gz -> autopep8-1.2.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/autopep8-1.2/PKG-INFO new/autopep8-1.2.1/PKG-INFO
--- old/autopep8-1.2/PKG-INFO   2015-07-27 06:41:08.000000000 +0200
+++ new/autopep8-1.2.1/PKG-INFO 2015-09-20 03:30:39.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: autopep8
-Version: 1.2
+Version: 1.2.1
 Summary: A tool that automatically formats Python code to conform to the PEP 8 
style guide
 Home-page: https://github.com/hhatto/autopep8
 Author: Hideo Hattori
@@ -111,8 +111,7 @@
                 return (some_tuple, some_variable)
         
         
-            def example2():
-                return ('' in {'f': 2}) in {'has_key() is deprecated': True}
+            def example2(): return ('' in {'f': 2}) in {'has_key() is 
deprecated': True}
         
         
             class Example3(object):
@@ -380,5 +379,6 @@
 Classifier: Programming Language :: Python :: 3.2
 Classifier: Programming Language :: Python :: 3.3
 Classifier: Programming Language :: Python :: 3.4
+Classifier: Programming Language :: Python :: 3.5
 Classifier: Topic :: Software Development :: Libraries :: Python Modules
 Classifier: Topic :: Software Development :: Quality Assurance
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/autopep8-1.2/README.rst new/autopep8-1.2.1/README.rst
--- old/autopep8-1.2/README.rst 2015-07-22 07:30:55.000000000 +0200
+++ new/autopep8-1.2.1/README.rst       2015-09-20 03:27:50.000000000 +0200
@@ -103,8 +103,7 @@
         return (some_tuple, some_variable)
 
 
-    def example2():
-        return ('' in {'f': 2}) in {'has_key() is deprecated': True}
+    def example2(): return ('' in {'f': 2}) in {'has_key() is deprecated': 
True}
 
 
     class Example3(object):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/autopep8-1.2/autopep8.egg-info/PKG-INFO 
new/autopep8-1.2.1/autopep8.egg-info/PKG-INFO
--- old/autopep8-1.2/autopep8.egg-info/PKG-INFO 2015-07-27 06:41:08.000000000 
+0200
+++ new/autopep8-1.2.1/autopep8.egg-info/PKG-INFO       2015-09-20 
03:30:39.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: autopep8
-Version: 1.2
+Version: 1.2.1
 Summary: A tool that automatically formats Python code to conform to the PEP 8 
style guide
 Home-page: https://github.com/hhatto/autopep8
 Author: Hideo Hattori
@@ -111,8 +111,7 @@
                 return (some_tuple, some_variable)
         
         
-            def example2():
-                return ('' in {'f': 2}) in {'has_key() is deprecated': True}
+            def example2(): return ('' in {'f': 2}) in {'has_key() is 
deprecated': True}
         
         
             class Example3(object):
@@ -380,5 +379,6 @@
 Classifier: Programming Language :: Python :: 3.2
 Classifier: Programming Language :: Python :: 3.3
 Classifier: Programming Language :: Python :: 3.4
+Classifier: Programming Language :: Python :: 3.5
 Classifier: Topic :: Software Development :: Libraries :: Python Modules
 Classifier: Topic :: Software Development :: Quality Assurance
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/autopep8-1.2/autopep8.egg-info/pbr.json 
new/autopep8-1.2.1/autopep8.egg-info/pbr.json
--- old/autopep8-1.2/autopep8.egg-info/pbr.json 2015-07-27 06:41:08.000000000 
+0200
+++ new/autopep8-1.2.1/autopep8.egg-info/pbr.json       2015-09-20 
03:30:39.000000000 +0200
@@ -1 +1 @@
-{"is_release": false, "git_version": "eb6c788"}
\ No newline at end of file
+{"is_release": false, "git_version": "064354f"}
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/autopep8-1.2/autopep8.py 
new/autopep8-1.2.1/autopep8.py
--- old/autopep8-1.2/autopep8.py        2015-07-27 06:40:16.000000000 +0200
+++ new/autopep8-1.2.1/autopep8.py      2015-09-20 03:29:39.000000000 +0200
@@ -66,7 +66,7 @@
     unicode = str
 
 
-__version__ = '1.2'
+__version__ = '1.2.1'
 
 
 CR = '\r'
@@ -471,7 +471,7 @@
                 line_index = result['line'] - 1
                 original_line = self.source[line_index]
 
-                is_logical_fix = len(inspect.getargspec(fix).args) > 2
+                is_logical_fix = len(_get_parameters(fix)) > 2
                 if is_logical_fix:
                     logical = None
                     if logical_support:
@@ -2984,9 +2984,9 @@
 
 def global_fixes():
     """Yield multiple (code, function) tuples."""
-    for function in globals().values():
+    for function in list(globals().values()):
         if inspect.isfunction(function):
-            arguments = inspect.getargspec(function)[0]
+            arguments = _get_parameters(function)
             if arguments[:1] != ['source']:
                 continue
 
@@ -2995,6 +2995,19 @@
                 yield (code, function)
 
 
+def _get_parameters(function):
+    if sys.version_info >= (3, 3):
+        # We need to match "getargspec()", which includes "self" as the first
+        # value for methods.
+        # https://bugs.python.org/issue17481#msg209469
+        if inspect.ismethod(function):
+            function = function.__func__
+
+        return list(inspect.signature(function).parameters)
+    else:
+        return inspect.getargspec(function)[0]
+
+
 def apply_global_fixes(source, options, where='global', filename=''):
     """Run global fixes on source code.
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/autopep8-1.2/setup.py new/autopep8-1.2.1/setup.py
--- old/autopep8-1.2/setup.py   2015-06-03 06:01:19.000000000 +0200
+++ new/autopep8-1.2.1/setup.py 2015-09-20 03:27:50.000000000 +0200
@@ -49,6 +49,7 @@
             'Programming Language :: Python :: 3.2',
             'Programming Language :: Python :: 3.3',
             'Programming Language :: Python :: 3.4',
+            'Programming Language :: Python :: 3.5',
             'Topic :: Software Development :: Libraries :: Python Modules',
             'Topic :: Software Development :: Quality Assurance',
         ],


Reply via email to