From f403bf05125f25defe0dd706ad8c90252a17def2d05e1a0d9b0dd521e038d762 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 13 Dec 2024 11:28:10 +0100 Subject: [PATCH] Sync from SUSE:SLFO:Main python-funcy revision 15edf41e9f42d9b4b0101012904119b1 --- .gitattributes | 23 ++++++++ funcy-2.0.tar.gz | 3 + python-funcy.changes | 127 +++++++++++++++++++++++++++++++++++++++++++ python-funcy.spec | 60 ++++++++++++++++++++ 4 files changed, 213 insertions(+) create mode 100644 .gitattributes create mode 100644 funcy-2.0.tar.gz create mode 100644 python-funcy.changes create mode 100644 python-funcy.spec 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/funcy-2.0.tar.gz b/funcy-2.0.tar.gz new file mode 100644 index 0000000..699f950 --- /dev/null +++ b/funcy-2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3963315d59d41c6f30c04bc910e10ab50a3ac4a225868bfa96feed133df075cb +size 537931 diff --git a/python-funcy.changes b/python-funcy.changes new file mode 100644 index 0000000..594103c --- /dev/null +++ b/python-funcy.changes @@ -0,0 +1,127 @@ +------------------------------------------------------------------- +Mon Dec 11 22:14:44 UTC 2023 - Dirk Müller + +- update to 2.0: + * added get_lax() + * added lzip(strict) param + * made autocurry() and friends support kw-only and pos-only + arguments + * improved call._whatever_ arg introspection: pos-only, kw- + only, kwargs and varargs are supported + * test against Python 3.11 + +------------------------------------------------------------------- +Sun Mar 26 19:19:36 UTC 2023 - Dirk Müller + +- update to 1.18: + * added join_with(strict=) + * use more precise timer `timeit.default_timer` for + log*durations (Saugat Pachhai) + * preserve metadata when using autocurry as a decorator + * doc improvements (thx to Tim Gates) + +------------------------------------------------------------------- +Wed Sep 28 19:41:40 UTC 2022 - Yogalakshmi Arunachalam + +- Update to 1.17 + - added del_in() + - made throttle() and limit_error_rate() work on methods + - added str and repr to Call objects + - migrated CI to Github actions (thx to Bruno Alla) + - fixed doc[string] for zip_dicts (Tal Einat) + - fixed some inspect issues + - minor doc fixes + +------------------------------------------------------------------- +Tue Aug 31 10:08:03 UTC 2021 - John Paul Adrian Glaubitz + +- Update to 1.16 + * support Python 3.9 officially + * unify @memoize() and @cache(): both have .skip/.memory/.invalidate/.invalidate_all now + * support dynamic resulting exception in @reraise() (Laurens Duijvesteijn) + * made () optional for @decorator-made decorators with kw-only args + * added @throttle() + * added has_path() (Denys Zorinets) + * fixed autocurry kwargs handling +- from version 1.15 + * made rpartial accept keyworded arguments (Ruan Comelli) + * made `@cache.invalidate()` idempotent (Dmitry Vasilyanov) + * made raiser() accept a string as a shortcut + * fixed cheatsheat description for 'distinct' helper (tsouvarev) + * fixed some seqs docstrings + * fixed some typos (Tim Gates) + +------------------------------------------------------------------- +Sun Aug 9 10:12:11 UTC 2020 - John Vandenberg + +- Update to v1.14 + * stated Python 3.7 and 3.8 support + * dropped Python 2.6 + * added @wrap_prop() + * added filter_errors param to @retry() + * published nullcontext properly + +------------------------------------------------------------------- +Mon Aug 12 13:40:21 UTC 2019 - Marketa Calabkova + +- Update to 1.13 + * added @wrap_with() + * added nullcontext + +------------------------------------------------------------------- +Fri May 10 09:23:27 UTC 2019 - pgajdos@suse.com + +- version update to 1.12 + - added @cached_readonly + - more introspection in @decorator decorators + - documented @cached_property inheritance limitations + - included tests in pypi sdist tarball (Tomáš Chvátal) +- back to PyPI tarball + +------------------------------------------------------------------- +Tue Mar 12 15:44:40 UTC 2019 - Tomáš Chvátal + +- Update to 1.11: + - switched docs and internals to Python 3 + - improved docs: better texts and examples here and there + - support Python 3.7 officially + - added popups over functions everywhere in docs + - accept any iterables of errors in flow utils + - fixed walk_values() for defaultdicts with empty factory + - fixed xmap() signature introspection + - documented lzip() + +------------------------------------------------------------------- +Tue Dec 4 12:48:19 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + +------------------------------------------------------------------- +Fri May 18 19:50:30 UTC 2018 - jengelh@inai.de + +- Avoid first person in description. + +------------------------------------------------------------------- +Wed May 9 02:16:15 UTC 2018 - toddrme2178@gmail.com + +- Update to 1.10.1 + * use raise from in reraise() + * fix @cache with mixed positional and keywords args (thx to adrian-dankiv) +- Update to 1.10 + * added @reraise() + * added unit and threshold params to *_durations() utils + * published and documented LazyObject + * fixed iffy() default argument when action is not present (Dmytro Kabakchei) + +------------------------------------------------------------------- +Wed Oct 18 16:43:43 UTC 2017 - toddrme2178@gmail.com + +- Implement single-spec version +- Update to 1.9.1 + * See changelog at https://github.com/Suor/funcy/blob/1.9.1/CHANGELOG + +------------------------------------------------------------------- +Mon Jul 14 11:33:03 UTC 2014 - toddrme2178@gmail.com + +- - Initial version + diff --git a/python-funcy.spec b/python-funcy.spec new file mode 100644 index 0000000..4fc9a55 --- /dev/null +++ b/python-funcy.spec @@ -0,0 +1,60 @@ +# +# spec file for package python-funcy +# +# Copyright (c) 2023 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/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-funcy +Version: 2.0 +Release: 0 +Summary: Functional tools for Python +License: BSD-3-Clause +Group: Development/Languages/Python +URL: https://github.com/Suor/funcy +Source: https://files.pythonhosted.org/packages/source/f/funcy/funcy-%{version}.tar.gz +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module whatever} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch +%python_subpackages + +%description +A collection of functional tools focused on practicality. + +Inspired by clojure, underscore and the author's own abstractions. + +%prep +%setup -q -n funcy-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +rm -r tests/__pycache__ +%pytest + +%files %{python_files} +%doc CHANGELOG README.rst +%license LICENSE +%{python_sitelib}/* + +%changelog