File python-pydash.changes of Package python-pydash
-------------------------------------------------------------------
Sun Aug 18 17:19:27 UTC 2024 - Dirk Müller <dmueller@suse.com>
- 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 <dmueller@suse.com>
- 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 <steven.kowalik@suse.com>
- 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 <adrian.glaubitz@suse.com>
- 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 <adrian.glaubitz@suse.com>
- 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 <jayvdb@gmail.com>
- Activate test suite
- Update to v4.8.0
-------------------------------------------------------------------
Thu Jan 9 11:06:30 AM UTC 2020 - John Vandenberg <jayvdb@gmail.com>
- Initial spec for v4.7.6