Accepting request 944210 from devel:languages:python:jupyter

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/944210
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-traitlets?expand=0&rev=9
This commit is contained in:
Dominique Leuenberger 2022-01-07 11:45:15 +00:00 committed by Git OBS Bridge
commit bb9e14c745
4 changed files with 76 additions and 24 deletions

View File

@ -1,3 +1,67 @@
-------------------------------------------------------------------
Sat Oct 30 15:30:37 UTC 2021 - Ben Greiner <code@bnavigator.de>
- 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 <tchvatal@suse.com>

View File

@ -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,22 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without python2
%{?!python_module:%define python_module() python3-%{**}}
%define skip_python2 1
%define skip_python36 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 +48,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

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d023ee369ddd2763310e4c3eae1ff649689440d4ae59d7485eb4cfbbe3e359f7
size 89838

3
traitlets-5.1.1.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:059f456c5a7c1c82b98c2e8c799f39c9b8128f6d0d46941ee118daace9eb70c7
size 130629