From 6eae1f4da1616e8c37fe6874390976dd8ea87abafd729596fdea7cc08f7e277a Mon Sep 17 00:00:00 2001 From: Benjamin Greiner Date: Sun, 5 Jun 2022 17:06:21 +0000 Subject: [PATCH] Accepting request 980912 from home:bnavigator:branches:devel:languages:python:jupyter - Update to 5.2.2 * Make all explicit and validate in test by @blink1073 in #737 * Fix KeyError in Application.get_default_logging_config by @tonyroberts in #724 - Release 5.2.1 * Switch to hatch backend by @blink1073 in #728 * logging: don't attempt to close handlers unless they have been opened by @oliver-sanders in #727 - Release 5.2.0 * Add mypy support by @blink1073 in #705 * Disambiguate the use of the term value in the example. by @metaperl in #694 * Correct spelling and grammar errors. by @metaperl in #695 * DOC: Add log example by @Carreau in #693 * Put description of signature_has_traits after the header for it. by @metaperl in #711 * Application: add logging_config trait by @oliver-sanders in #698 * [DOC] Give explicit list of private symbols for 5.0 by @vidartf in #692 * Add pre-commit and run auto-formatters by @blink1073 in #699 * Fix downstream test by @blink1073 in #701 * Add docs on pre-commit and use manual hooks where appropriate by @blink1073 in #700 * Set up flake8 by @blink1073 in #703 * Typing: tell mypy we have type, update all. by @Carreau in #713 * Improve CI by @blink1073 in #706 * Fix typing errors by @blink1073 in #718 * Use flit build backend by @blink1073 in #720 * Add Changelog Entry for 5.2.0 by @blink1073 in #717 OBS-URL: https://build.opensuse.org/request/show/980912 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-traitlets?expand=0&rev=10 --- python-traitlets.changes | 35 ++++++++++++++++++++++++++ python-traitlets.spec | 20 ++++++++------- traitlets-5.1.1.tar.gz | 3 --- traitlets-5.2.2.tar.gz | 3 +++ traitlets-pr739-fixversion.patch | 42 ++++++++++++++++++++++++++++++++ 5 files changed, 91 insertions(+), 12 deletions(-) delete mode 100644 traitlets-5.1.1.tar.gz create mode 100644 traitlets-5.2.2.tar.gz create mode 100644 traitlets-pr739-fixversion.patch diff --git a/python-traitlets.changes b/python-traitlets.changes index 3b68a30..bbe0f47 100644 --- a/python-traitlets.changes +++ b/python-traitlets.changes @@ -1,3 +1,38 @@ +------------------------------------------------------------------- +Sun Jun 5 16:53:54 UTC 2022 - Ben Greiner + +- Update to 5.2.2 + * Make all explicit and validate in test by @blink1073 in #737 + * Fix KeyError in Application.get_default_logging_config by + @tonyroberts in #724 +- Release 5.2.1 + * Switch to hatch backend by @blink1073 in #728 + * logging: don't attempt to close handlers unless they have been + opened by @oliver-sanders in #727 +- Release 5.2.0 + * Add mypy support by @blink1073 in #705 + * Disambiguate the use of the term value in the example. by + @metaperl in #694 + * Correct spelling and grammar errors. by @metaperl in #695 + * DOC: Add log example by @Carreau in #693 + * Put description of signature_has_traits after the header for + it. by @metaperl in #711 + * Application: add logging_config trait by @oliver-sanders in + #698 + * [DOC] Give explicit list of private symbols for 5.0 by @vidartf + in #692 + * Add pre-commit and run auto-formatters by @blink1073 in #699 + * Fix downstream test by @blink1073 in #701 + * Add docs on pre-commit and use manual hooks where appropriate + by @blink1073 in #700 + * Set up flake8 by @blink1073 in #703 + * Typing: tell mypy we have type, update all. by @Carreau in #713 + * Improve CI by @blink1073 in #706 + * Fix typing errors by @blink1073 in #718 + * Use flit build backend by @blink1073 in #720 + * Add Changelog Entry for 5.2.0 by @blink1073 in #717 +- Add traitlets-pr739-fixversion.patch -- gh#ipython/traitlets#739 + ------------------------------------------------------------------- Sat Oct 30 15:30:37 UTC 2021 - Ben Greiner diff --git a/python-traitlets.spec b/python-traitlets.spec index f207420..cbf4b06 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) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,21 +16,22 @@ # -%{?!python_module:%define python_module() python3-%{**}} -%define skip_python2 1 -%define skip_python36 1 Name: python-traitlets -Version: 5.1.1 +Version: 5.2.2 Release: 0 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 +# PATCH-FIX-UPSTREAM traitlets-pr739-fixversion.patch -- gh#ipython/traitlets#739 +Patch1: https://github.com/ipython/traitlets/pull/739.patch#/traitlets-pr739-fixversion.patch BuildRequires: %{python_module base >= 3.7} +BuildRequires: %{python_module hatchling >= 0.25} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} -BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: python-hatchling >= 0.25 BuildArch: noarch %python_subpackages @@ -38,13 +39,14 @@ BuildArch: noarch A configuration system for Python applications. %prep -%setup -q -n traitlets-%{version} +%autosetup -p1 -n traitlets-%{version} +sed -i 's/--color yes//' pyproject.toml %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check diff --git a/traitlets-5.1.1.tar.gz b/traitlets-5.1.1.tar.gz deleted file mode 100644 index 83ababe..0000000 --- a/traitlets-5.1.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:059f456c5a7c1c82b98c2e8c799f39c9b8128f6d0d46941ee118daace9eb70c7 -size 130629 diff --git a/traitlets-5.2.2.tar.gz b/traitlets-5.2.2.tar.gz new file mode 100644 index 0000000..afc0856 --- /dev/null +++ b/traitlets-5.2.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f72ba7d3b31e7938c122860d70d75a5f0ca34e6f2c7db2c7d2f06d47ae099f27 +size 136801 diff --git a/traitlets-pr739-fixversion.patch b/traitlets-pr739-fixversion.patch new file mode 100644 index 0000000..74ad740 --- /dev/null +++ b/traitlets-pr739-fixversion.patch @@ -0,0 +1,42 @@ +From 69de82b56bed9675c1acda293b5cdb4b1c1dcc7a Mon Sep 17 00:00:00 2001 +From: Joffrey Bienvenu +Date: Tue, 31 May 2022 22:22:32 +0200 +Subject: [PATCH 1/2] Fix package version + +--- + traitlets/_version.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/traitlets/_version.py b/traitlets/_version.py +index ecff6d1d..a1b6b2c6 100644 +--- a/traitlets/_version.py ++++ b/traitlets/_version.py +@@ -1,5 +1,5 @@ + version_info = (5, 2, 2, "final") +-__version__ = "5.2.2" ++__version__ = "5.2.2.final" + + # unlike `.dev`, alpha, beta and rc _must not_ have dots, + # or the wheel and tgz won't look to pip like the same version. + +From ad10c659385a59c5d015ecae123b9b7a31a108cf Mon Sep 17 00:00:00 2001 +From: Joffrey Bienvenu +Date: Tue, 31 May 2022 22:57:03 +0200 +Subject: [PATCH 2/2] Remove the 'final' keyword in version + +--- + traitlets/_version.py | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/traitlets/_version.py b/traitlets/_version.py +index a1b6b2c6..f75993c7 100644 +--- a/traitlets/_version.py ++++ b/traitlets/_version.py +@@ -1,5 +1,5 @@ +-version_info = (5, 2, 2, "final") +-__version__ = "5.2.2.final" ++version_info = (5, 2, 2) ++__version__ = "5.2.2" + + # unlike `.dev`, alpha, beta and rc _must not_ have dots, + # or the wheel and tgz won't look to pip like the same version.