Hello community,

here is the log from the commit of package python3-py for openSUSE:Factory 
checked in at 2015-01-05 04:43:12
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python3-py (Old)
 and      /work/SRC/openSUSE:Factory/.python3-py.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python3-py"

Changes:
--------
--- /work/SRC/openSUSE:Factory/python3-py/python3-py.changes    2014-10-06 
12:06:33.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python3-py.new/python3-py.changes       
2015-01-05 04:43:20.000000000 +0100
@@ -1,0 +2,13 @@
+Fri Jan  2 18:43:56 UTC 2015 - [email protected]
+
+- specfile:
+  * update copyright year
+  * update url
+
+- update to version 1.4.26:
+  * avoid calling normpath twice in py.path.local
+  * py.builtin._reraise properly reraises under Python3 now.
+  * fix issue53 - remove module index, thanks jenisys.
+  * allow posix path separators when "fnmatch" is called. Thanks Christian 
Long for the complete PR.
+
+-------------------------------------------------------------------

Old:
----
  py-1.4.25.tar.gz

New:
----
  py-1.4.26.tar.gz

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

Other differences:
------------------
++++++ python3-py.spec ++++++
--- /var/tmp/diff_new_pack.p07dv9/_old  2015-01-05 04:43:20.000000000 +0100
+++ /var/tmp/diff_new_pack.p07dv9/_new  2015-01-05 04:43:20.000000000 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python3-py
 #
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,12 +17,12 @@
 
 
 Name:           python3-py
-Version:        1.4.25
+Version:        1.4.26
 Release:        0
 Summary:        Library with cross-python path, ini-parsing, io, code, log 
facilities
 License:        MIT
 Group:          Development/Languages/Python
-Url:            http://pylib.org
+Url:            http://pylib.readthedocs.org/
 Source:         
http://pypi.python.org/packages/source/p/py/py-%{version}.tar.gz
 BuildRequires:  python3
 BuildRequires:  python3-Sphinx

++++++ py-1.4.25.tar.gz -> py-1.4.26.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py-1.4.25/CHANGELOG new/py-1.4.26/CHANGELOG
--- old/py-1.4.25/CHANGELOG     2014-09-24 13:39:53.000000000 +0200
+++ new/py-1.4.26/CHANGELOG     2014-10-24 13:56:34.000000000 +0200
@@ -1,3 +1,15 @@
+1.4.26
+==================================================
+
+- avoid calling normpath twice in py.path.local
+
+- py.builtin._reraise properly reraises under Python3 now.
+
+- fix issue53 - remove module index, thanks jenisys.
+
+- allow posix path separators when "fnmatch" is called.
+  Thanks Christian Long for the complete PR.
+
 1.4.25
 ==================================================
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py-1.4.25/PKG-INFO new/py-1.4.26/PKG-INFO
--- old/py-1.4.25/PKG-INFO      2014-09-24 13:39:53.000000000 +0200
+++ new/py-1.4.26/PKG-INFO      2014-10-24 13:56:34.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: py
-Version: 1.4.25
+Version: 1.4.26
 Summary: library with cross-python path, ini-parsing, io, code, log facilities
 Home-page: http://pylib.readthedocs.org/
 Author: holger krekel, Ronny Pfannschmidt, Benjamin Peterson and others
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py-1.4.25/doc/index.txt new/py-1.4.26/doc/index.txt
--- old/py-1.4.25/doc/index.txt 2014-09-24 13:39:53.000000000 +0200
+++ new/py-1.4.26/doc/index.txt 2014-10-24 13:56:34.000000000 +0200
@@ -9,7 +9,7 @@
 see :ref:`CHANGELOG <changelog>` for latest changes.
 
 .. note::
-    
+
    Since version 1.4, the testing tool "py.test" is part of its own `pytest 
distribution`_.
 
 .. _`pytest distribution`: http://pytest.org
@@ -38,6 +38,5 @@
 ==================
 
 * :ref:`genindex`
-* :ref:`modindex`
 * :ref:`search`
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py-1.4.25/py/__init__.py new/py-1.4.26/py/__init__.py
--- old/py-1.4.25/py/__init__.py        2014-09-24 13:39:53.000000000 +0200
+++ new/py-1.4.26/py/__init__.py        2014-10-24 13:56:34.000000000 +0200
@@ -8,7 +8,7 @@
 
 (c) Holger Krekel and others, 2004-2014
 """
-__version__ = '1.4.25'
+__version__ = '1.4.26'
 
 from py import _apipkg
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py-1.4.25/py/_builtin.py new/py-1.4.26/py/_builtin.py
--- old/py-1.4.25/py/_builtin.py        2014-09-24 13:39:53.000000000 +0200
+++ new/py-1.4.26/py/_builtin.py        2014-10-24 13:56:34.000000000 +0200
@@ -224,7 +224,7 @@
     def _reraise(cls, val, tb):
         __tracebackhide__ = True
         assert hasattr(val, '__traceback__')
-        raise val
+        raise cls.with_traceback(val, tb)
 else:
     exec ("""
 def _reraise(cls, val, tb):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py-1.4.25/py/_path/common.py 
new/py-1.4.26/py/_path/common.py
--- old/py-1.4.25/py/_path/common.py    2014-09-24 13:39:53.000000000 +0200
+++ new/py-1.4.26/py/_path/common.py    2014-10-24 13:56:34.000000000 +0200
@@ -1,8 +1,11 @@
 """
 """
-import os, sys
+import os, sys, posixpath
 import py
 
+# Moved from local.py.
+iswin32 = sys.platform == "win32" or (getattr(os, '_name', False) == 'nt')
+
 class Checkers:
     _depend_on_existence = 'exists', 'link', 'dir', 'file'
 
@@ -383,6 +386,15 @@
 
     def __call__(self, path):
         pattern = self.pattern
+
+        if (pattern.find(path.sep) == -1 and
+        iswin32 and
+        pattern.find(posixpath.sep) != -1):
+            # Running on Windows, the pattern has no Windows path separators,
+            # and the pattern has one or more Posix path separators. Replace
+            # the Posix path separators with the Windows path separator.
+            pattern = pattern.replace(posixpath.sep, path.sep)
+
         if pattern.find(path.sep) == -1:
             name = path.basename
         else:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py-1.4.25/py/_path/local.py 
new/py-1.4.26/py/_path/local.py
--- old/py-1.4.25/py/_path/local.py     2014-09-24 13:39:53.000000000 +0200
+++ new/py-1.4.26/py/_path/local.py     2014-10-24 13:56:34.000000000 +0200
@@ -7,12 +7,11 @@
 import sys, os, re, atexit, io
 import py
 from py._path import common
+from py._path.common import iswin32
 from stat import S_ISLNK, S_ISDIR, S_ISREG
 
 from os.path import abspath, normpath, isabs, exists, isdir, isfile, islink
 
-iswin32 = sys.platform == "win32" or (getattr(os, '_name', False) == 'nt')
-
 if sys.version_info > (3,0):
     def map_as_list(func, iter):
         return list(map(func, iter))
@@ -153,7 +152,7 @@
         elif isinstance(path, py.builtin._basestring):
             if expanduser:
                 path = os.path.expanduser(path)
-            self.strpath = abspath(normpath(path))
+            self.strpath = abspath(path)
         else:
             raise ValueError("can only pass None, Path instances "
                              "or non-empty strings to LocalPath")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py-1.4.25/py.egg-info/PKG-INFO 
new/py-1.4.26/py.egg-info/PKG-INFO
--- old/py-1.4.25/py.egg-info/PKG-INFO  2014-09-24 13:39:53.000000000 +0200
+++ new/py-1.4.26/py.egg-info/PKG-INFO  2014-10-24 13:56:34.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: py
-Version: 1.4.25
+Version: 1.4.26
 Summary: library with cross-python path, ini-parsing, io, code, log facilities
 Home-page: http://pylib.readthedocs.org/
 Author: holger krekel, Ronny Pfannschmidt, Benjamin Peterson and others
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py-1.4.25/setup.py new/py-1.4.26/setup.py
--- old/py-1.4.25/setup.py      2014-09-24 13:39:53.000000000 +0200
+++ new/py-1.4.26/setup.py      2014-10-24 13:56:34.000000000 +0200
@@ -7,7 +7,7 @@
         name='py',
         description='library with cross-python path, ini-parsing, io, code, 
log facilities',
         long_description = open('README.txt').read(),
-        version='1.4.25',
+        version='1.4.26',
         url='http://pylib.readthedocs.org/',
         license='MIT license',
         platforms=['unix', 'linux', 'osx', 'cygwin', 'win32'],
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py-1.4.25/testing/path/test_local.py 
new/py-1.4.26/testing/path/test_local.py
--- old/py-1.4.25/testing/path/test_local.py    2014-09-24 13:39:53.000000000 
+0200
+++ new/py-1.4.26/testing/path/test_local.py    2014-10-24 13:56:34.000000000 
+0200
@@ -581,6 +581,15 @@
             x = py.path.local.sysfind(cmd.relto(root))
             assert x.check(file=1)
 
+    def test_fnmatch_file_abspath_posix_pattern_on_win32(self, tmpdir):
+        # path-matching patterns might contain a posix path separator '/'
+        # Test that we can match that pattern on windows.
+        import posixpath
+        b = tmpdir.join("a", "b")
+        assert b.fnmatch(posixpath.sep.join("ab"))
+        pattern = posixpath.sep.join([str(tmpdir), "*", "b"])
+        assert b.fnmatch(pattern)
+
 class TestPOSIXLocalPath:
     pytestmark = skiponwin32
 

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to