Hello community, here is the log from the commit of package python3-traitlets for openSUSE:Factory checked in at 2017-02-26 17:10:15 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python3-traitlets (Old) and /work/SRC/openSUSE:Factory/.python3-traitlets.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python3-traitlets" Changes: -------- --- /work/SRC/openSUSE:Factory/python3-traitlets/python3-traitlets.changes 2016-10-28 10:45:27.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python3-traitlets.new/python3-traitlets.changes 2017-02-26 17:10:16.214662800 +0100 @@ -1,0 +2,12 @@ +Sat Feb 25 23:39:34 UTC 2017 - arun@gmx.de + +- specfile: + * update copyright year + +- update to version 4.3.2: + * using _traitname_default() without the @default decorator is no + longer deprecated. + * Passing config=True in traitlets constructors is no longer + deprecated. + +------------------------------------------------------------------- Old: ---- traitlets-4.3.1.tar.gz New: ---- traitlets-4.3.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python3-traitlets.spec ++++++ --- /var/tmp/diff_new_pack.AUWQwP/_old 2017-02-26 17:10:16.554611208 +0100 +++ /var/tmp/diff_new_pack.AUWQwP/_new 2017-02-26 17:10:16.554611208 +0100 @@ -1,7 +1,7 @@ # # spec file for package python3-traitlets # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 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: python3-traitlets -Version: 4.3.1 +Version: 4.3.2 Release: 0 Summary: Traitlets Python config system License: BSD-3-Clause ++++++ traitlets-4.3.1.tar.gz -> traitlets-4.3.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/traitlets-4.3.1/PKG-INFO new/traitlets-4.3.2/PKG-INFO --- old/traitlets-4.3.1/PKG-INFO 2016-09-28 13:32:43.000000000 +0200 +++ new/traitlets-4.3.2/PKG-INFO 2017-02-23 11:22:58.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: traitlets -Version: 4.3.1 +Version: 4.3.2 Summary: Traitlets Python config system Home-page: http://ipython.org Author: IPython Development Team diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/traitlets-4.3.1/docs/source/changelog.rst new/traitlets-4.3.2/docs/source/changelog.rst --- old/traitlets-4.3.1/docs/source/changelog.rst 2016-09-28 13:31:14.000000000 +0200 +++ new/traitlets-4.3.2/docs/source/changelog.rst 2017-02-23 11:20:41.000000000 +0100 @@ -4,6 +4,17 @@ 4.3 --- +4.3.2 +***** + +`4.3.2 on GitHub`_ + +4.3.2 is a tiny release, relaxing some of the deprecations introduced in 4.1: + +- using :meth:`_traitname_default()` without the ``@default`` decorator is no longer + deprecated. +- Passing ``config=True`` in traitlets constructors is no longer deprecated. + 4.3.1 ***** @@ -100,3 +111,4 @@ .. _`4.2.2 on GitHub`: https://github.com/ipython/traitlets/milestones/4.2.2 .. _`4.3.0 on GitHub`: https://github.com/ipython/traitlets/milestones/4.3 .. _`4.3.1 on GitHub`: https://github.com/ipython/traitlets/milestones/4.3.1 +.. _`4.3.2 on GitHub`: https://github.com/ipython/traitlets/milestones/4.3.2 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/traitlets-4.3.1/docs/source/migration.rst new/traitlets-4.3.2/docs/source/migration.rst --- old/traitlets-4.3.1/docs/source/migration.rst 2016-07-01 11:20:01.000000000 +0200 +++ new/traitlets-4.3.2/docs/source/migration.rst 2017-02-17 13:25:14.000000000 +0100 @@ -118,11 +118,12 @@ def handler_all(self, change): pass -Deprecation of magic method for dynamic defaults generation ------------------------------------------------------------ +dynamic defaults generation with decorators +------------------------------------------- The use of the magic methods ``_{trait}_default`` for dynamic default -generation is deprecated, in favor a new ``@default`` method decorator. +generation is not deprecated, but a new ``@default`` method decorator +is added. **Example:** diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/traitlets-4.3.1/traitlets/_version.py new/traitlets-4.3.2/traitlets/_version.py --- old/traitlets-4.3.1/traitlets/_version.py 2016-09-28 13:31:51.000000000 +0200 +++ new/traitlets-4.3.2/traitlets/_version.py 2017-02-23 11:21:13.000000000 +0100 @@ -1,2 +1,2 @@ -version_info = (4, 3, 1) +version_info = (4, 3, 2) __version__ = '.'.join(map(str, version_info)) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/traitlets-4.3.1/traitlets/config/tests/test_configurable.py new/traitlets-4.3.2/traitlets/config/tests/test_configurable.py --- old/traitlets-4.3.1/traitlets/config/tests/test_configurable.py 2016-09-28 13:31:41.000000000 +0200 +++ new/traitlets-4.3.2/traitlets/config/tests/test_configurable.py 2017-02-23 11:21:03.000000000 +0100 @@ -402,7 +402,7 @@ # reset deprecation limiter _deprecations_shown.clear() - with expected_warnings(['metadata should be set using the \.tag\(\) method']): + with expected_warnings([]): class DefaultConfigurable(Configurable): a = Integer(config=True) def _config_default(self): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/traitlets-4.3.1/traitlets/traitlets.py new/traitlets-4.3.2/traitlets/traitlets.py --- old/traitlets-4.3.1/traitlets/traitlets.py 2016-09-28 13:31:41.000000000 +0200 +++ new/traitlets-4.3.2/traitlets/traitlets.py 2017-02-23 11:21:03.000000000 +0100 @@ -416,7 +416,8 @@ read_only = False info_text = 'any value' - def __init__(self, default_value=Undefined, allow_none=False, read_only=None, help=None, **kwargs): + def __init__(self, default_value=Undefined, allow_none=False, read_only=None, help=None, + config=None, **kwargs): """Declare a traitlet. If *allow_none* is True, None is a valid value in addition to any @@ -456,6 +457,8 @@ self.metadata = kwargs else: self.metadata = self.metadata.copy() + if config is not None: + self.metadata['config'] = config # We add help to the metadata during a deprecation period so that # code that looks for the help string there can find it. @@ -506,7 +509,6 @@ if meth_name in cls.__dict__: method = getattr(obj, meth_name) - _deprecated_method(method, cls, meth_name, "use @default decorator instead.") return method return getattr(self, 'make_dynamic_default', None)