Hello community, here is the log from the commit of package python-traits for openSUSE:Factory checked in at 2019-04-30 12:59:10 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-traits (Old) and /work/SRC/openSUSE:Factory/.python-traits.new.5536 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-traits" Tue Apr 30 12:59:10 2019 rev:4 rq:697378 version:5.1.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-traits/python-traits.changes 2019-04-18 09:56:58.569362114 +0200 +++ /work/SRC/openSUSE:Factory/.python-traits.new.5536/python-traits.changes 2019-04-30 12:59:13.450163870 +0200 @@ -1,0 +2,7 @@ +Tue Apr 23 15:50:09 UTC 2019 - pgaj...@suse.com + +- version update to 5.1.1 + * Revert a change (#449) which accidentally broke external uses of + ``_py2to3.str_find`` and ``_py2to3.str_rfind``. (#472) + +------------------------------------------------------------------- Old: ---- traits-5.1.0.tar.gz New: ---- traits-5.1.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-traits.spec ++++++ --- /var/tmp/diff_new_pack.1o4XmK/_old 2019-04-30 12:59:15.338165369 +0200 +++ /var/tmp/diff_new_pack.1o4XmK/_new 2019-04-30 12:59:15.342165372 +0200 @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define oldpython python Name: python-traits -Version: 5.1.0 +Version: 5.1.1 Release: 0 Summary: Explicitly typed attributes for Python # Images have different licenses. For image license breakdown check ++++++ traits-5.1.0.tar.gz -> traits-5.1.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/traits-5.1.0/CHANGES.rst new/traits-5.1.1/CHANGES.rst --- old/traits-5.1.0/CHANGES.rst 2019-04-15 16:07:14.000000000 +0200 +++ new/traits-5.1.1/CHANGES.rst 2019-04-18 11:26:35.000000000 +0200 @@ -1,6 +1,16 @@ Traits CHANGELOG ================ +Release 5.1.1 +------------- + +Released: 2019-04-18 + +Fixes + +* Revert a change (#449) which accidentally broke external uses of + ``_py2to3.str_find`` and ``_py2to3.str_rfind``. (#472) + Release 5.1.0 ------------- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/traits-5.1.0/PKG-INFO new/traits-5.1.1/PKG-INFO --- old/traits-5.1.0/PKG-INFO 2019-04-15 16:41:20.000000000 +0200 +++ new/traits-5.1.1/PKG-INFO 2019-04-18 11:30:48.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.2 Name: traits -Version: 5.1.0 +Version: 5.1.1 Summary: explicitly typed attributes for Python Home-page: http://docs.enthought.com/traits Author: David C. Morrill, et. al. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/traits-5.1.0/setup.py new/traits-5.1.1/setup.py --- old/traits-5.1.0/setup.py 2019-04-15 15:25:02.000000000 +0200 +++ new/traits-5.1.1/setup.py 2019-04-18 11:26:35.000000000 +0200 @@ -9,7 +9,7 @@ MAJOR = 5 MINOR = 1 -MICRO = 0 +MICRO = 1 IS_RELEASED = True diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/traits-5.1.0/traits/_py2to3.py new/traits-5.1.1/traits/_py2to3.py --- old/traits-5.1.0/traits/_py2to3.py 2019-03-14 15:46:40.000000000 +0100 +++ new/traits-5.1.1/traits/_py2to3.py 2019-04-18 11:26:35.000000000 +0200 @@ -17,8 +17,15 @@ # use from traitsui. # Once that PR is merged and a new release of traitsui is available, we can # remove these aliases for good. -str_find = str.find -str_rfind = str.rfind +if six.PY2: + import string + + str_find = string.find + str_rfind = string.rfind +else: + str_find = str.find + str_rfind = str.rfind + if six.PY2: from types import InstanceType, ClassType @@ -80,10 +87,10 @@ class nested_context_mgrs(ExitStack): """ Emulation of python 2's :py:class:`contextlib.nested`. - + It has gone from python 3 due to it's deprecation status in python 2. - + Note that :py:class:`contextlib.nested` was deprecated for a reason: It has issues with context managers that fail during init. The same caveats also apply here. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/traits-5.1.0/traits/_version.py new/traits-5.1.1/traits/_version.py --- old/traits-5.1.0/traits/_version.py 2019-04-15 16:41:19.000000000 +0200 +++ new/traits-5.1.1/traits/_version.py 2019-04-18 11:30:47.000000000 +0200 @@ -1,7 +1,7 @@ # THIS FILE IS GENERATED FROM TRAITS SETUP.PY -version = '5.1.0' -full_version = '5.1.0' -git_revision = 'bc896728d443c8417f175c799353b2e55b63833f' +version = '5.1.1' +full_version = '5.1.1' +git_revision = 'e2fe1b95dc0660321350aab09428a811922acc78' is_released = True if not is_released: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/traits-5.1.0/traits/tests/test__py2to3.py new/traits-5.1.1/traits/tests/test__py2to3.py --- old/traits-5.1.0/traits/tests/test__py2to3.py 1970-01-01 01:00:00.000000000 +0100 +++ new/traits-5.1.1/traits/tests/test__py2to3.py 2019-04-18 11:26:35.000000000 +0200 @@ -0,0 +1,42 @@ +# Copyright (c) 2007, Enthought, Inc. +# All rights reserved. +# +# This software is provided without warranty under the terms of the BSD +# license included in /LICENSE.txt and may be redistributed only +# under the conditions described in the aforementioned license. The license +# is also available online at http://www.enthought.com/licenses/BSD.txt + +from __future__ import absolute_import, print_function, unicode_literals + +import unittest + +import six + +from traits._py2to3 import str_find, str_rfind + + +class TestPy2to3(unittest.TestCase): + def test_str_find(self): + # Note: inputs are Unicode strings. + self.assertEqual(str_find("abcabc", "c"), 2) + self.assertEqual(str_find("abcabc", "d"), -1) + + def test_str_rfind(self): + # Note: inputs are Unicode strings. + self.assertEqual(str_rfind("abcabc", "c"), 5) + self.assertEqual(str_rfind("abcabc", "d"), -1) + + if six.PY2: + def test_str_find_with_bytestrings(self): + # Try all possible mixes of Unicode with bytes. + self.assertEqual(str_find("abcabc", "b"), 1) + self.assertEqual(str_find(u"abcabc", "b"), 1) + self.assertEqual(str_find("abcabc", u"b"), 1) + self.assertEqual(str_find(u"abcabc", u"b"), 1) + + def test_str_rfind_with_bytestrings(self): + # Try all possible mixes of Unicode with bytes. + self.assertEqual(str_rfind("abcabc", "b"), 4) + self.assertEqual(str_rfind(u"abcabc", "b"), 4) + self.assertEqual(str_rfind("abcabc", u"b"), 4) + self.assertEqual(str_rfind(u"abcabc", u"b"), 4) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/traits-5.1.0/traits.egg-info/PKG-INFO new/traits-5.1.1/traits.egg-info/PKG-INFO --- old/traits-5.1.0/traits.egg-info/PKG-INFO 2019-04-15 16:41:20.000000000 +0200 +++ new/traits-5.1.1/traits.egg-info/PKG-INFO 2019-04-18 11:30:47.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.2 Name: traits -Version: 5.1.0 +Version: 5.1.1 Summary: explicitly typed attributes for Python Home-page: http://docs.enthought.com/traits Author: David C. Morrill, et. al. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/traits-5.1.0/traits.egg-info/SOURCES.txt new/traits-5.1.1/traits.egg-info/SOURCES.txt --- old/traits-5.1.0/traits.egg-info/SOURCES.txt 2019-04-15 16:41:20.000000000 +0200 +++ new/traits-5.1.1/traits.egg-info/SOURCES.txt 2019-04-18 11:30:48.000000000 +0200 @@ -189,6 +189,7 @@ traits/testing/tests/test_unittest_tools.py traits/tests/__init__.py traits/tests/check_timing.py +traits/tests/test__py2to3.py traits/tests/test_abc.py traits/tests/test_anytrait_static_notifiers.py traits/tests/test_array.py