14
0
forked from pool/python-pydash
Commit Graph

9 Commits

Author SHA256 Message Date
fb461ca4df Accepting request 1243362 from home:glaubitz:branches:devel:languages:python
- 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/request/show/1243362
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydash?expand=0&rev=15
2025-02-05 15:48:31 +00:00
09dc9d700d - 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.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydash?expand=0&rev=13
2024-08-18 17:19:55 +00:00
232f01acc8 - 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.
  * Add functions:
    and xor_by by allowing iteratee argument to be `Any`.
  - Fix compatibility issue between ``pydash.py_`` / ``pydash._`` and ``typing.Protocol`` + ``typing.runtime_checkable``
  - Fix regression introduced in ``v4.8.0`` that caused ``merge`` and ``merge_with`` to raise an exception when passing ``None``

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydash?expand=0&rev=11
2024-05-02 08:56:27 +00:00
bc85e43b3f - 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.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydash?expand=0&rev=9
2024-04-03 01:32:04 +00:00
88e67202da Accepting request 1155033 from home:glaubitz:branches:devel:languages:python
- Switch package to modern Python Stack on SLE-15
  + Add %{?sle15_python_module_pythons}
  + Drop %{?!python_module:%define python_module() python-%{**} python3-%{**}}

OBS-URL: https://build.opensuse.org/request/show/1155033
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydash?expand=0&rev=7
2024-03-05 09:53:14 +00:00
c2a2fb19bb Accepting request 1117982 from home:glaubitz:branches:devel:languages:python
- 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

OBS-URL: https://build.opensuse.org/request/show/1117982
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydash?expand=0&rev=5
2023-10-16 10:40:39 +00:00
c72ac4e521 Accepting request 967475 from home:pgajdos:python
- 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.

OBS-URL: https://build.opensuse.org/request/show/967475
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydash?expand=0&rev=3
2022-04-07 15:34:33 +00:00
30ebd8af43 Accepting request 828409 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/828409
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pydash?expand=0&rev=1
2020-08-21 17:10:10 +00:00
Tomáš Chvátal
a05dc6a94b Accepting request 828338 from home:jayvdb:py-submit
common helper lib

OBS-URL: https://build.opensuse.org/request/show/828338
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydash?expand=0&rev=1
2020-08-21 08:31:50 +00:00