From e74b7fa68a6c773f2b8621962e77da5904d6376c26efc3afd1e67427ad4196c7 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Wed, 5 Feb 2025 15:48:31 +0000 Subject: [PATCH] - Update to 8.0.5 * Fix bug that could result in passing too many arguments to callback functions when the callback contained a var-keyword or keyword-only arguments. - from version 8.0.4 * Fix bug in ``zip_object`` and ``zip_object_deep`` where an empty list for keys/values would cause an exception instead of returning an empty dict. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydash?expand=0&rev=15 --- .gitattributes | 23 ++++++ .gitignore | 1 + pydash-8.0.1.tar.gz | 3 + pydash-8.0.3.tar.gz | 3 + pydash-8.0.5.tar.gz | 3 + python-pydash.changes | 165 ++++++++++++++++++++++++++++++++++++++++++ python-pydash.spec | 77 ++++++++++++++++++++ 7 files changed, 275 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 pydash-8.0.1.tar.gz create mode 100644 pydash-8.0.3.tar.gz create mode 100644 pydash-8.0.5.tar.gz create mode 100644 python-pydash.changes create mode 100644 python-pydash.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/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/pydash-8.0.1.tar.gz b/pydash-8.0.1.tar.gz new file mode 100644 index 0000000..69b327e --- /dev/null +++ b/pydash-8.0.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a24619643d3c054bfd56a9ae1cb7bd00e9774eaf369d7bb8d62b3daa2462bdbd +size 186446 diff --git a/pydash-8.0.3.tar.gz b/pydash-8.0.3.tar.gz new file mode 100644 index 0000000..82a144a --- /dev/null +++ b/pydash-8.0.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1b27cd3da05b72f0e5ff786c523afd82af796936462e631ffd1b228d91f8b9aa +size 188737 diff --git a/pydash-8.0.5.tar.gz b/pydash-8.0.5.tar.gz new file mode 100644 index 0000000..ddc9482 --- /dev/null +++ b/pydash-8.0.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7cc44ebfe5d362f4f5f06c74c8684143c5ac481376b059ff02570705523f9e2e +size 164861 diff --git a/python-pydash.changes b/python-pydash.changes new file mode 100644 index 0000000..bc95123 --- /dev/null +++ b/python-pydash.changes @@ -0,0 +1,165 @@ +------------------------------------------------------------------- +Wed Feb 5 13:06:20 UTC 2025 - John Paul Adrian Glaubitz + +- Update to 8.0.5 + * Fix bug that could result in passing too many arguments to + callback functions when the callback contained a var-keyword + or keyword-only arguments. +- from version 8.0.4 + * Fix bug in ``zip_object`` and ``zip_object_deep`` where an + empty list for keys/values would cause an exception instead + of returning an empty dict. + +------------------------------------------------------------------- +Sun Aug 18 17:19:27 UTC 2024 - Dirk Müller + +- update to 8.0.3: + * Specify explicit type parameters for all type annotations. + Thanks DeviousStoat! + * Fix typing issue in map_ for compatability with chain. Thanks + DeviousStoat! + * Fix issue where too many arguments were passed to stdlib's + operator.attrgetter, operator.itemgetter, and + operator.methodcaller when instances of those classes were + used as callbacks to functions like map_, filter_, etc. due + to a bug introduced in Python 3.12.3 and 3.11.9 that reported + an incorrect signature for those operator class instances. + +------------------------------------------------------------------- +Thu May 2 08:56:18 UTC 2024 - Dirk Müller + +- update to 8.0.1: + * Fix issue where too many arguments were passed to stdlib's + operator.attrgetter, operator.itemgetter, and + operator.methodcaller when instances of those classes were + used as callbacks to functions like map_, filter_, etc. due + to a bug introduced in Python 3.12.3 and 3.11.9 that reported + an incorrect signature for those operator class instances. + +------------------------------------------------------------------- +Wed Apr 3 01:30:20 UTC 2024 - Steve Kowalik + +- Update to 8.0.0: + * Add functions: + + apply_catch, apply_if, apply_if_not_none, eq_cmp, gt_cmp + + gte_cmp, in_range_cmp, is_equal_cmp, is_equal_with_cmp + + is_instance_of_cmp, is_match_cmp, is_match_with_cmp + + is_monotone_cmp, lt_cmp, lte_cmp + * Rename function thru to apply. + * Changed zip_, unzip, zip_with, unzip_with and to_pairs to accept + iterables of tuples instead of lists and return lists of tuples + instead of lists of lists. + * Fixed bug in divide, multiply, and subtract that returned the wrong + result when 0 was used as one of the operation values. + * Fix bug in function wrappers that incorrectly computed the number of + arguments the wrapped function could handle. + * Fix bug in set_ where the incorrect object type, list instead of dict, + was initialized on class attributes. + * Drop support for Python 3.7. + * Fix typing for chaining interface for methods that use varargs. + * Fix typing for find_index and find_last_index by allowing predicate + argument to be callback shorthand values. + * Fix typing for difference_by, intersection_by, union_by, uniq_by, + and xor_by by allowing iteratee argument to be `Any`. + * Fix missing install dependency, typing-extensions, for package. + * Add type annotations to package. + * Change behavior of to_dict to not using dict() internally. + * Change behavior of slugify to remove single-quotes from output. + * Add support for negative indexes in get path keys. +- Switch to autosetup macro. +- No more greedy globs in %files. + +------------------------------------------------------------------- +Tue Mar 5 09:17:48 UTC 2024 - John Paul Adrian Glaubitz + +- Switch package to modern Python Stack on SLE-15 + + Add %{?sle15_python_module_pythons} + + Drop %{?!python_module:%define python_module() python-%{**} python3-%{**}} + +------------------------------------------------------------------- +Mon Oct 16 10:07:57 UTC 2023 - John Paul Adrian Glaubitz + +- Update to version 6.0.2 + * Only prevent access to object paths containing ``__globals__`` or + ``__builtins__`` instead of all dunder-methods for non-dict/list + objects. +- from version 6.0.1 + * Fix exception raised due to mishandling of non-string keys in functions + like ``get()`` for non-dict/list objects that used integer index references + like ``"[0]"``. +- from version 6.0.0 + * Prevent access to object paths containing dunder-methods in functions like + ``get()`` for non-dict/list objects. Attempting to access dunder-methods + using get-path keys will raise a ``KeyError`` (e.g. ``get(SomeClass(), + '__init__'`` will raise). Access to dict keys are unaffected (e.g. + ``get({"__init__": True}, "__init__")`` will return ``True``). + (**breaking change**) + * Add support for Python 3.11. + * Drop support for Python 3.6 (**breaking change**) +- from version 5.1.2 + * Remove unnecessary type check and conversion for ``exceptions`` + argument in ``pydash.retry``. +- from version 5.1.1 + * Add support for Python 3.10. + * Fix timing assertion issue in test for ``pydash.delay`` where it could + fail on certain environments. +- Switch build system from setuptools to pyproject.toml +- Update BuildRequires from pyproject.toml + +------------------------------------------------------------------- +Thu Apr 7 10:59:23 UTC 2022 - pgajdos@suse.com + +- version update to 5.1.0 + v5.1.0 (2021-10-02) + ------------------- + - Support matches-style callbacks on non-dictionary objects that are compatible with ``pydash.get`` in functions like ``pydash.find``. + v5.0.2 (2021-07-15) + ------------------- + - Fix compatibility issue between ``pydash.py_`` / ``pydash._`` and ``typing.Protocol`` + ``typing.runtime_checkable`` + that caused an exception to be raised for ``isinstance(py_, SomeRuntimeCheckableProtocol)``. + v5.0.1 (2021-06-27) + ------------------- + - Fix bug in ``merge_with`` that prevented custom iteratee from being used when recursively merging. Thanks weineel_! + v5.0.0 (2021-03-29) + ------------------- + - Drop support for Python 2.7. (**breaking change**) + - Improve Unicode word splitting in string functions to be inline with Lodash. Thanks mervynlee94_! (**breaking change**) + - ``camel_case`` + - ``human_case`` + - ``kebab_case`` + - ``lower_case`` + - ``pascal_case`` + - ``separator_case`` + - ``slugify`` + - ``snake_case`` + - ``start_case`` + - ``upper_case`` + - Optimize regular expression constants used in ``pydash.strings`` by pre-compiling them to regular expression pattern objects. + v4.9.3 (2021-03-03) + ------------------- + - Fix regression introduced in ``v4.8.0`` that caused ``merge`` and ``merge_with`` to raise an exception when passing ``None`` + as the first argument. + v4.9.2 (2020-12-24) + ------------------- + - Fix regression introduced in ``v4.9.1`` that broke ``pydash.get`` for dictionaries and dot-delimited keys that reference + integer dict-keys. + v4.9.1 (2020-12-14) + ------------------- + - Fix bug in ``get/has`` that caused ``defaultdict`` objects to get populated on key access. + v4.9.0 (2020-10-27) + ------------------- + - Add ``default_to_any``. Thanks gonzalonaveira_! + - Fix mishandling of key names containing ``\.`` in ``set_``, ``set_with``, and ``update_with`` where the ``.`` was not + treated as a literal value within the key name. Thanks zhaowb_! +- python-mock is not required for build + +------------------------------------------------------------------- +Fri Jul 24 10:59:08 UTC 2020 - John Vandenberg + +- Activate test suite +- Update to v4.8.0 + +------------------------------------------------------------------- +Thu Jan 9 11:06:30 AM UTC 2020 - John Vandenberg + +- Initial spec for v4.7.6 diff --git a/python-pydash.spec b/python-pydash.spec new file mode 100644 index 0000000..71a788f --- /dev/null +++ b/python-pydash.spec @@ -0,0 +1,77 @@ +# +# spec file for package python-pydash +# +# Copyright (c) 2025 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-pydash +Version: 8.0.5 +Release: 0 +Summary: The kitchen sink of Python functional utility libraries +License: MIT +URL: https://github.com/dgilland/pydash +Source: https://files.pythonhosted.org/packages/source/p/pydash/pydash-%{version}.tar.gz +BuildRequires: %{python_module base >= 3.8} +BuildRequires: %{python_module invoke} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest-cov} +BuildRequires: %{python_module pytest-mypy-testing} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module typing_extensions >= 3.10} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-typing_extensions >= 3.10 +BuildArch: noarch +%python_subpackages + +%description +The kitchen sink of Python utility libraries for doing "stuff" in a functional way. +Based on the Lo-Dash Javascript library. + +%prep +%autosetup -p1 -n pydash-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +# Avoid weird type reveal issue with pytest-mypy-testing +donttest="test_mypy_tap or test_mypy_assign or test_mypy_assign_with or " +donttest+="test_mypy_callables or test_mypy_clone_with or " +donttest+="test_mypy_clone_deep or test_mypy_clone_deep_with or " +donttest+="test_mypy_defaults or test_mypy_defaults_deep or " +donttest+="test_mypy_for_in or test_mypy_invert_by or " +donttest+="test_mypy_map_keys or test_mypy_map_values or " +donttest+="test_mypy_merge or test_mypy_omit or test_mypy_omit_by or " +donttest+="test_mypy_pick or test_mypy_pick_by or " +donttest+="test_mypy_rename_keys or test_mypy_set_with or " +donttest+="test_mypy_to_dict or test_mypy_transform or " +donttest+="test_mypy_update or test_mypy_update_with or " +donttest+="test_mypy_apply_if or test_mypy_apply_catch" +%pytest -k "not ($donttest)" + +%files %{python_files} +%doc AUTHORS.rst CHANGELOG.rst README.rst +%license LICENSE.rst +%{python_sitelib}/pydash +%{python_sitelib}/pydash-%{version}.dist-info + +%changelog