From 3c3dc5b15ded601f8887b2e8085674e155c0a4246414ba91b798cbe4ea57fe0e Mon Sep 17 00:00:00 2001 From: OBS User buildservice-autocommit Date: Sat, 16 Jan 2021 12:55:36 +0000 Subject: [PATCH 1/3] Updating link to change in openSUSE:Factory/python-traitlets revision 8.0 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-traitlets?expand=0&rev=f69aa317bc6f6a803a78a7b3b50a5c21 --- python-traitlets.changes | 103 --------------------------------------- python-traitlets.spec | 15 ++++-- traitlets-4.3.3.tar.gz | 3 ++ traitlets-5.0.5.tar.gz | 3 -- 4 files changed, 15 insertions(+), 109 deletions(-) create mode 100644 traitlets-4.3.3.tar.gz delete mode 100644 traitlets-5.0.5.tar.gz diff --git a/python-traitlets.changes b/python-traitlets.changes index 69d8f8e..131be75 100644 --- a/python-traitlets.changes +++ b/python-traitlets.changes @@ -1,106 +1,3 @@ -------------------------------------------------------------------- -Sat Jan 9 20:14:07 UTC 2021 - Arun Persaud - -- specfile: - * update copyright year - * remove python2 - * skip six - -- update to version 5.0.5: - * Support deprecated literals for sets, tuples on the command-line: - nbconvert --TagRemovePreprocessor.remove_cell_tags='{"tag"}' - * Fix from_string_list for Tuples in general - * Fix support for List(default_value=None, allow_none=True) and - other Container traits - * Fix help output for nested aliases and tuple traits - -- changes from version 5.0.4: - * Support deprecated use of byte-literals for bytes on the - command-line: ipython kernel --Session.key="b'abc'". The b prefix - is no longer needed in traitlets 5.0, but is supported for - backward-compatibility - * Improve output of configuration errors, especially when help - output would make it hard to find the helpful error message - -- changes from version 5.0.3: - * Fix regression in handling –opt=None on the CLI for configurable - traits with allow_none=True - -- changes from version 5.0.2: - * Fix casting bytes to unicode - -- changes from version 5.0.0: - * Major changes are: - + Removal of Python 2 support, - + Removal of Python 3.0-3.6 support - + we now follow NEP 29, and are thus Python 3.7+ only. - + remove six as a dependency - + remove funcsig as a dependency. - * Here is a list of most Pull requests that went into 5.0 and a - short description. - + PR #362 , PR #361 introduces: - help for aliases , aliases dict - values can now be a tuple with (‘target’, ‘help string’) - - subcommands can now be arbitrary callable and do not need to be - subclass of Application - + PR #306 Add compatibility with the trait package for - Dictionaries and add the key_trait parameters allowing to - restrict the type of the key of a mapping. The constructor - parameters trait and traits are renamed to value_trait and - per_key_traits. - + PR #319 adds ability to introduce both shot and long version of - aliases, allowing for short and long options - and --. - + PR #322 rewrite command line argument parsing to use argparse, - and allow more flexibility in assigning literals without - quoting. - + PR #332 Make it easier to redefined default values of parents - classes. - + PR #333 introduces a Callable trait. - + PR #340 Old way of passing containers in the command line is now - deprecated, and will emit warning on the command line. - + PR #341 introduces --Application.show_config=True which will - make by default any application show it configuration, all the - files it loaded configuration from, and exit. - + PR #349 unify ability to declare default values across traitlets - with a singular method default method, and PR #525 adds a - warning that Undefined is deprecated. - + PR #355 fix a random ordering issues in command lines flags. - + PR #356 allow both self and cls in __new__ method for - genericity. - + PR #360 Simplify overwriting and extending the command line - argument parser. - + PR #371 introduces a FuzzyEnum trait that allow case insensitive - and unique prefix matching. - + PR #384 Ass a trait_values method to extra a mapping of trait - and their values. - + PR #393 Link now have a transform attribute (taking two - functions inverse of each other), that affect how a value is - mapped between a source and a target. - + PR #394 Link now have a link method to re-link object after - unlink has been called. - + PR #402 rewrite handling of error messages for nested traits. - + PR #405 all function that use to print help now have an - equivalent that yields the help lines. - + PR #413 traits now have a method trait_has_value, returning a - boolean to know if a value has been assigned to a trait - (excluding the default), in order to help avoiding circular - validation at initialisation. - + PR #416 Explicitly export traitlets in __all__ to avoid exposing - implementation details. - + PR #438 introduces .info_rst() to let traitlets overwrite the - automatically generated rst documentation. - + PR #458 Add a sphinx extension to automatically document options - of Application instance in projects using traitlets. - + PR #509 remove all base except: meaning traitlets will not catch - a number of BaseException s anymore. - + PR #515 Add a class decorator to enable tab completion of - keyword arguments in signature. - + PR #516 a Sentinel Traitlets was made public by mistake and is - now deprecated. - + PR #517 use parent Logger within logggin configurable when - possible. - + PR #522 Make loading config files idempotent and expose the list - of loaded config files for long running services. - ------------------------------------------------------------------- Thu Mar 12 07:59:14 UTC 2020 - Tomáš Chvátal diff --git a/python-traitlets.spec b/python-traitlets.spec index 8ed97d7..18488be 100644 --- a/python-traitlets.spec +++ b/python-traitlets.spec @@ -1,7 +1,7 @@ # # spec file for package python-traitlets # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,9 +17,9 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define skip_python2 1 +%bcond_without python2 Name: python-traitlets -Version: 5.0.5 +Version: 4.3.3 Release: 0 Summary: Traitlets Python config system License: BSD-3-Clause @@ -29,11 +29,20 @@ BuildRequires: %{python_module decorator} BuildRequires: %{python_module ipython_genutils} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module six} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-decorator Requires: python-ipython_genutils +Requires: python-six BuildArch: noarch +%if %{with python2} +BuildRequires: python-enum34 +BuildRequires: python-mock +%endif +%ifpython2 +Requires: python-enum34 +%endif %python_subpackages %description diff --git a/traitlets-4.3.3.tar.gz b/traitlets-4.3.3.tar.gz new file mode 100644 index 0000000..44a13d7 --- /dev/null +++ b/traitlets-4.3.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d023ee369ddd2763310e4c3eae1ff649689440d4ae59d7485eb4cfbbe3e359f7 +size 89838 diff --git a/traitlets-5.0.5.tar.gz b/traitlets-5.0.5.tar.gz deleted file mode 100644 index c4ba423..0000000 --- a/traitlets-5.0.5.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:178f4ce988f69189f7e523337a3e11d91c786ded9360174a3d9ca83e79bc5396 -size 128856 From 05656d12a283a75d6976599ac2230780cb79286ff2d5a55430150b3af787de37 Mon Sep 17 00:00:00 2001 From: Benjamin Greiner Date: Thu, 6 Jan 2022 10:38:58 +0000 Subject: [PATCH 2/3] Accepting request 944201 from home:bnavigator:branches:devel:languages:python:jupyter - Update to version 5.1.1 * 5.1.1 fixes compatibility issues with Python 3.10 (rc2). - Release 5.1.0 * Traitlets 5.1 brings a couple of updates and changes to traitlets, and is recommended for all users. What follow is a non-exhaustive list of changes: * Removal of the ``ipython_genutils`` dependency, this should remove any direct and indirect reliance on ``nose`` and prepare traitlets 5.1 for Python 3.10 and above compatibility, some test suite changes also accommodate Python 3.10 changes. If you package traitlets downstream, make sure to remove this dependency. * Removal of ``ipython_genutils`` may have change the default encoding detected for the command line argument parsing when not utf-8. We expect this to affect a small portion of older windows version. If you encounter issue let us know. * Stop recommendation of ``CUnicode`` in some circumstances as it's deprecated. * Our test suite is now using GitHub action instead of travis CI. If you are packaging downstream using the git repository, you may have to exclude the ``.github`` folder now, and can remove exclusion of * It fixes a parsing issue for list of one single element on the CLI. * We reserve the right to remove official support for Python 3.7 in subsequent minor revisions. - Releases 5.0.2 to 5.0.5 * Support deprecated literals for sets, tuples on the command-line: ``nbconvert --TagRemovePreprocessor.remove_cell_tags=' *"tag"}'`` * Fix ``from_string_list`` for Tuples in general * Fix support for ``List(default_value=None, allow_none=True)`` and other Container traits * Fix help output for nested aliases and tuple traits * Support deprecated use of byte-literals for bytes on the command-line: ``ipython kernel --Session.key="b'abc'"``. The `b` prefix is no longer needed in traitlets 5.0, but is supported for backward-compatibility * Improve output of configuration errors, especially when help output would make it hard to find the helpful error message * Fix regression in handling `--opt=None` on the CLI for configurable traits with `allow_none=True` * Fix casting bytes to unicode - Traitlets 5.0 * Traitlets 5.0 is a new version of traitlets that accumulate changes over a period of more close to four years; A number of internal refactoring made the internal code structure cleaner and simpler, and greatly improved the diagnostic error messages as well has help and documentation generation. * We expect no code change needed for any consumer of the Python API (ipywidgets, and alike), though CLI argument parsing have seen a complete rewrite, so if you have an application that does use the parsing logic of traitlets you may see changes in behavior, and now have access to more features. * Major changes are: - Removal of Python 2 support, - Removal of Python 3.0-3.6 support - we now follow NEP 29, and are thus Python 3.7+ only. - remove ``six`` as a dependency - remove ``funcsig`` as a dependency. - Fix build without python2 - Update to version 4.3.3 * Adds Application.loaded_config_files property for accessing config files that have been loaded and makes the property idempotent on multiple loads. - Add missing python-six BuildRequires - Add missing python-six Requires - Implement single-spec version. - Update to 4.3.2 * using :meth:`_traitname_default()` without the ``@default`` decorator is no longer deprecated. * Passing ``config=True`` in traitlets constructors is no longer deprecated. - Update to 4.3.1 * Compatibility fix for Python 3.6a1 * Fix bug in Application.classes getting extra entries when multiple Applications are instantiated in the same process. - Update to 4.3.0 * Improve the generated config file output. * Allow TRAITLETS_APPLICATION_RAISE_CONFIG_FILE_ERROR env to override :attr:`Application.raise_config_file_errors`, so that config file errors can result in exiting immediately. * Avoid using root logger. If no application logger is registered, the ``'traitlets'`` logger will be used instead of the root logger. * Change/Validation arguments are now Bunch objects, allowing attribute-access, in addition to dictionary access. * Reduce number of common deprecation messages in certain cases. * Ensure command-line options always have higher priority than config files. * Add bounds on numeric traits. * Improves various error messages. - Update to 4.2.2 * Partially revert a change in 4.1 that prevented IPython's command-line options from taking priority over config files. - Update to 4.2.1 * Demotes warning about unused arguments in ``HasTraits.__init__`` introduced in 4.2.0 to DeprecationWarning. - Update to 4.2.0 * :class:`JSONFileConfigLoader` can be used as a context manager for updating configuration. * If a value in config does not map onto a configurable trait, a message is displayed that the value will have no effect. * Unused arguments are passed to ``super()`` in ``HasTraits.__init__``, improving support for multiple inheritance. * Various bugfixes and improvements in the new API introduced in 4.1. * Application subclasses may specify ``raise_config_file_errors = True`` to exit on failure to load config files, instead of the default of logging the failures. - Update to 4.1 * Decorators are used, rather than magic method names, for registering trait-related methods. See :doc:`using_traitlets` and :doc:`migration` for more info. * Deprecate ``Trait(config=True)`` in favor of ``Trait().tag(config=True)``. In general, metadata is added via ``tag`` instead of the constructor. * Trait attributes initialized with ``read_only=True`` can only be set with the ``set_trait`` method. Attempts to directly modify a read-only trait attribute raises a ``TraitError``. * The directional link now takes an optional `transform` attribute allowing the modification of the value. * Various fixes and improvements to config-file generation (fixed ordering, Undefined showing up, etc.) * Warn on unrecognized traits that aren't configurable, to avoid silently ignoring mistyped config. - Update to version - Fix package naming consistency - Update dependency names - Initial version OBS-URL: https://build.opensuse.org/request/show/944201 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-traitlets?expand=0&rev=8 --- python-traitlets.changes | 64 ++++++++++++++++++++++++++++++++++++++++ python-traitlets.spec | 29 +++++------------- traitlets-4.3.3.tar.gz | 3 -- traitlets-5.1.1.tar.gz | 3 ++ 4 files changed, 75 insertions(+), 24 deletions(-) delete mode 100644 traitlets-4.3.3.tar.gz create mode 100644 traitlets-5.1.1.tar.gz diff --git a/python-traitlets.changes b/python-traitlets.changes index 131be75..3b68a30 100644 --- a/python-traitlets.changes +++ b/python-traitlets.changes @@ -1,3 +1,67 @@ +------------------------------------------------------------------- +Sat Oct 30 15:30:37 UTC 2021 - Ben Greiner + +- Update to version 5.1.1 + * 5.1.1 fixes compatibility issues with Python 3.10 (rc2). +- Release 5.1.0 + * Traitlets 5.1 brings a couple of updates and changes to + traitlets, and is recommended for all users. What follow is a + non-exhaustive list of changes: + * Removal of the ``ipython_genutils`` dependency, this should + remove any direct and indirect reliance on ``nose`` and prepare + traitlets 5.1 for Python 3.10 and above compatibility, some + test suite changes also accommodate Python 3.10 changes. If you + package traitlets downstream, make sure to remove this + dependency. + * Removal of ``ipython_genutils`` may have change the default + encoding detected for the command line argument parsing when + not utf-8. We expect this to affect a small portion of older + windows version. If you encounter issue let us know. + * Stop recommendation of ``CUnicode`` in some circumstances as + it's deprecated. + * Our test suite is now using GitHub action instead of travis CI. + If you are packaging downstream using the git repository, you + may have to exclude the ``.github`` folder now, and can remove + exclusion of + * It fixes a parsing issue for list of one single element on the + CLI. + * We reserve the right to remove official support for Python 3.7 + in subsequent minor revisions. +- Releases 5.0.2 to 5.0.5 + * Support deprecated literals for sets, tuples on the + command-line: ``nbconvert + --TagRemovePreprocessor.remove_cell_tags=' *"tag"}'`` + * Fix ``from_string_list`` for Tuples in general + * Fix support for ``List(default_value=None, allow_none=True)`` + and other Container traits + * Fix help output for nested aliases and tuple traits + * Support deprecated use of byte-literals for bytes on the + command-line: ``ipython kernel --Session.key="b'abc'"``. The + `b` prefix is no longer needed in traitlets 5.0, but is + supported for backward-compatibility + * Improve output of configuration errors, especially when help + output would make it hard to find the helpful error message + * Fix regression in handling `--opt=None` on the CLI for configurable traits + with `allow_none=True` + * Fix casting bytes to unicode +- Traitlets 5.0 + * Traitlets 5.0 is a new version of traitlets that accumulate + changes over a period of more close to four years; A number of + internal refactoring made the internal code structure cleaner + and simpler, and greatly improved the diagnostic error messages + as well has help and documentation generation. + * We expect no code change needed for any consumer of the Python + API (ipywidgets, and alike), though CLI argument parsing have + seen a complete rewrite, so if you have an application that + does use the parsing logic of traitlets you may see changes in + behavior, and now have access to more features. + * Major changes are: + - Removal of Python 2 support, + - Removal of Python 3.0-3.6 support + - we now follow NEP 29, and are thus Python 3.7+ only. + - remove ``six`` as a dependency + - remove ``funcsig`` as a dependency. + ------------------------------------------------------------------- Thu Mar 12 07:59:14 UTC 2020 - Tomáš Chvátal diff --git a/python-traitlets.spec b/python-traitlets.spec index 18488be..e5eece8 100644 --- a/python-traitlets.spec +++ b/python-traitlets.spec @@ -1,7 +1,7 @@ # # spec file for package python-traitlets # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,33 +16,21 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%bcond_without python2 +%{?!python_module:%define python_module() python3-%{**}} +%define skip_python2 1 Name: python-traitlets -Version: 4.3.3 +Version: 5.1.1 Release: 0 -Summary: Traitlets Python config system +Summary: Traitlets Python configuration system License: BSD-3-Clause URL: https://github.com/ipython/traitlets Source: https://files.pythonhosted.org/packages/source/t/traitlets/traitlets-%{version}.tar.gz -BuildRequires: %{python_module decorator} -BuildRequires: %{python_module ipython_genutils} +BuildRequires: %{python_module base >= 3.7} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module six} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-decorator -Requires: python-ipython_genutils -Requires: python-six BuildArch: noarch -%if %{with python2} -BuildRequires: python-enum34 -BuildRequires: python-mock -%endif -%ifpython2 -Requires: python-enum34 -%endif %python_subpackages %description @@ -59,14 +47,13 @@ A configuration system for Python applications. %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -pushd docs -%pytest ../traitlets/tests +%pytest %files %{python_files} %doc README.md %doc examples/ %license COPYING.md %{python_sitelib}/traitlets/ -%{python_sitelib}/traitlets-%{version}-py*.egg-info +%{python_sitelib}/traitlets-%{version}*-info %changelog diff --git a/traitlets-4.3.3.tar.gz b/traitlets-4.3.3.tar.gz deleted file mode 100644 index 44a13d7..0000000 --- a/traitlets-4.3.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d023ee369ddd2763310e4c3eae1ff649689440d4ae59d7485eb4cfbbe3e359f7 -size 89838 diff --git a/traitlets-5.1.1.tar.gz b/traitlets-5.1.1.tar.gz new file mode 100644 index 0000000..83ababe --- /dev/null +++ b/traitlets-5.1.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:059f456c5a7c1c82b98c2e8c799f39c9b8128f6d0d46941ee118daace9eb70c7 +size 130629 From 468393d73072ac54131d3647d375f9a75fcbc6a4604e7dba0c329991ec3e3abe Mon Sep 17 00:00:00 2001 From: Benjamin Greiner Date: Thu, 6 Jan 2022 10:53:18 +0000 Subject: [PATCH 3/3] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-traitlets?expand=0&rev=9 --- python-traitlets.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/python-traitlets.spec b/python-traitlets.spec index e5eece8..f207420 100644 --- a/python-traitlets.spec +++ b/python-traitlets.spec @@ -18,6 +18,7 @@ %{?!python_module:%define python_module() python3-%{**}} %define skip_python2 1 +%define skip_python36 1 Name: python-traitlets Version: 5.1.1 Release: 0