Hello community, here is the log from the commit of package python-py for openSUSE:Factory checked in at 2015-02-06 22:35:52 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-py (Old) and /work/SRC/openSUSE:Factory/.python-py.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-py" Changes: -------- --- /work/SRC/openSUSE:Factory/python-py/python-py.changes 2014-10-01 07:40:13.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-py.new/python-py.changes 2015-02-06 22:35:53.000000000 +0100 @@ -1,0 +2,10 @@ +Wed Feb 4 14:25:30 UTC 2015 - tbechtold@suse.com + +- 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: ------------------ ++++++ python-py.spec ++++++ --- /var/tmp/diff_new_pack.onBDiZ/_old 2015-02-06 22:35:54.000000000 +0100 +++ /var/tmp/diff_new_pack.onBDiZ/_new 2015-02-06 22:35:54.000000000 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-py # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX 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,7 +17,7 @@ Name: python-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 ++++++ 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: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org