From ee3d42d2c534e5cb7780ca793287fbac28b00b1ac35c70fce4a56f39ed006a99 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Sat, 5 Oct 2024 21:35:16 +0000 Subject: [PATCH] - Skip test_complete_custom_completers test because it is failing with 3.12.7 (gh#ipython/traitlets#911). OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-traitlets?expand=0&rev=42 --- .gitattributes | 23 +++ .gitignore | 1 + python-traitlets.changes | 330 +++++++++++++++++++++++++++++++++++++ python-traitlets.rpmlintrc | 2 + python-traitlets.spec | 65 ++++++++ traitlets-5.14.3.tar.gz | 3 + 6 files changed, 424 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-traitlets.changes create mode 100644 python-traitlets.rpmlintrc create mode 100644 python-traitlets.spec create mode 100644 traitlets-5.14.3.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-traitlets.changes b/python-traitlets.changes new file mode 100644 index 0000000..f0e4a8f --- /dev/null +++ b/python-traitlets.changes @@ -0,0 +1,330 @@ +------------------------------------------------------------------- +Sat Oct 5 21:34:51 UTC 2024 - Matej Cepl + +- Skip test_complete_custom_completers test because it is failing + with 3.12.7 (gh#ipython/traitlets#911). + +------------------------------------------------------------------- +Mon May 20 05:50:43 UTC 2024 - Steve Kowalik + +- Update 5.14.3: + * Fix assigning string value to Set #903 +- Remove upper bound from pytest, it works. + +------------------------------------------------------------------- +Fri Mar 29 19:09:27 UTC 2024 - Ben Greiner + +- Update to 5.14.2 + * Maintenance and upkeep improvements + +------------------------------------------------------------------- +Sun Jan 21 11:33:29 UTC 2024 - Ben Greiner + +- Update to 5.14.1 + * FIX: map - to _ for environement variable prefix. #895 + (@Carreau) + +------------------------------------------------------------------- +Thu Dec 28 16:09:18 UTC 2023 - Ben Greiner + +- Update to 5.14.0 + * Add option to load traitlets values from environment. #856 + (@Carreau) +- Release 5.13.0 + * Use passed-in info argument for TraitType.error() #884 + (@kylebarron) +- Release 5.12.0 + * Pass **kwds in MetaHasDescriptors new and init #881 + (@fleming79) + +------------------------------------------------------------------- +Sat Oct 7 13:37:09 UTC 2023 - Ben Greiner + +- Update to 5.11.2 +- Multiple typing upgrades and fix releases since 5.10.0 + +------------------------------------------------------------------- +Sun Sep 24 18:19:30 UTC 2023 - Ben Greiner + +- Update to 5.10.0 + * Added type hints to HasTraits.observe() and friends. #834 + (@scholer) + * feat: trait typing #818 (@maartenbreddels) + +------------------------------------------------------------------- +Fri Apr 21 12:37:53 UTC 2023 - Dirk Müller + +- add sle15_python_module_pythons (jsc#PED-68) + +------------------------------------------------------------------- +Thu Feb 2 16:51:20 UTC 2023 - Ben Greiner + +- Update to 5.9.0 + * Polishing argcomplete support #829 (@azjps) + +------------------------------------------------------------------- +Sun Jan 15 20:22:13 UTC 2023 - Ben Greiner + +- Update to 5.8.1 + * fix: mro_trait can be unbound when the class is not in mro #824 + (@maartenbreddels) + +------------------------------------------------------------------- +Sun Dec 25 21:51:35 UTC 2022 - Ben Greiner + +- Update to 5.8.0 + * Shell command-line tab-completion via argcomplete #811 (@azjps) + * Define trait.__doc__ = trait.help for better API Docs #816 + (@minrk) + * Expose more attributes for typing #817 (@blink1073) + * Fix lint #814 (@blink1073) + * Additional Application examples and docs #811 (@azjps) +- Release 5.7.1 + * fix: some descriptors raise AttributeError #812 + (@maartenbreddels) +- Release 5.7.0 + * Performance: decrease runtime overhead for constructing + HasTraits (up to 20x faster) #777 (@maartenbreddels) + * Minor fixes for Application.aliases #810 (@azjps) + * Adopt ruff and address lint #809 (@blink1073) + +------------------------------------------------------------------- +Sat Oct 22 03:47:08 UTC 2022 - Arun Persaud + +- update to version 5.5.0: + * Clean up application typing + * Update tests and docs to use non-deprecated functions + * Clean up version handling + * Prep for jupyter releaser + * Format the changelog + +------------------------------------------------------------------- +Mon Sep 12 14:34:49 UTC 2022 - Arun Persaud + +- update to version 5.4.0: + * Fix version_info + * Make generated config files more lintable + * Fix union trait from string + * Add security.md, and tidelift bage + +------------------------------------------------------------------- +Wed Jun 22 14:01:30 UTC 2022 - Ben Greiner + +- Update to 5.3.0 + * Fix traitlet name in docstring by @fcollonval in #745 + * Re-support multiple-alias key for ArgParseConfigLoader by + @azjps in #687 +- Drop traitlets-pr739-fixversion.patch + +------------------------------------------------------------------- +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 + +- 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 + +- Fix build without python2 + +------------------------------------------------------------------- +Tue Nov 12 16:31:49 UTC 2019 - Todd R + +- 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. + +------------------------------------------------------------------- +Wed Jul 5 14:59:37 UTC 2017 - tbechtold@suse.com + +- Add missing python-six BuildRequires + +------------------------------------------------------------------- +Wed Jul 5 13:35:11 UTC 2017 - tbechtold@suse.com + +- Add missing python-six Requires + +------------------------------------------------------------------- +Fri Apr 14 17:05:33 UTC 2017 - toddrme2178@gmail.com + +- Implement single-spec version. + +------------------------------------------------------------------- +Thu Mar 30 18:54:06 UTC 2017 - toddrme2178@gmail.com + +- 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. + +------------------------------------------------------------------- +Thu Mar 30 18:53:09 UTC 2017 - toddrme2178@gmail.com + +- Update to version + +------------------------------------------------------------------- +Fri Aug 14 07:48:27 UTC 2015 - toddrme2178@gmail.com + +- Fix package naming consistency + +------------------------------------------------------------------- +Thu Aug 13 13:57:00 UTC 2015 - toddrme2178@gmail.com + +- Update dependency names + +------------------------------------------------------------------- +Tue Jul 21 13:34:20 UTC 2015 - toddrme2178@gmail.com + +- Initial version + diff --git a/python-traitlets.rpmlintrc b/python-traitlets.rpmlintrc new file mode 100644 index 0000000..550cfe2 --- /dev/null +++ b/python-traitlets.rpmlintrc @@ -0,0 +1,2 @@ +# Leave examples as is +addFilter("env-script-interpreter .*examples") \ No newline at end of file diff --git a/python-traitlets.spec b/python-traitlets.spec new file mode 100644 index 0000000..69bd34d --- /dev/null +++ b/python-traitlets.spec @@ -0,0 +1,65 @@ +# +# spec file for package python-traitlets +# +# Copyright (c) 2024 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?sle15_python_module_pythons} +Name: python-traitlets +Version: 5.14.3 +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 +Source99: python-traitlets.rpmlintrc +BuildRequires: %{python_module argcomplete >= 3.0.3} +BuildRequires: %{python_module base >= 3.8} +BuildRequires: %{python_module hatchling >= 1.5} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest >= 7} +BuildRequires: %{python_module pytest-mock} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch +%python_subpackages + +%description +A configuration system for Python applications. + +%prep +%autosetup -p1 -n traitlets-%{version} +sed -i 's/"--color=yes",//' pyproject.toml + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +# no mypy testing in Ring1 +# skip test_complete_custom_completers because of gh#ipython/traitlets#911 +%pytest --ignore tests/test_typing.py -k 'not test_complete_custom_completers' + +%files %{python_files} +%doc README.md +%doc examples/ +%license LICENSE +%{python_sitelib}/traitlets/ +%{python_sitelib}/traitlets-%{version}.dist-info + +%changelog diff --git a/traitlets-5.14.3.tar.gz b/traitlets-5.14.3.tar.gz new file mode 100644 index 0000000..7ecbb91 --- /dev/null +++ b/traitlets-5.14.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9ed0579d3502c94b4b3732ac120375cda96f923114522847de4b3bb98b96b6b7 +size 161621