14
0
forked from pool/python-pydash

- 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
This commit is contained in:
2024-04-03 01:32:04 +00:00
committed by Git OBS Bridge
parent 88e67202da
commit bc85e43b3f
4 changed files with 60 additions and 10 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:35caa588e01d293713655e0870544d25128cd414c5e19477a0d63adc2b2ca03e
size 146289

3
pydash-8.0.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5a90d98b5f370bb9620f786221579df8f83d54f1f58de6a66f52b1bdba7175d1
size 163870

View File

@@ -1,3 +1,36 @@
-------------------------------------------------------------------
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>

View File

@@ -18,18 +18,23 @@
%{?sle15_python_module_pythons}
Name: python-pydash
Version: 6.0.2
Version: 8.0.0
Release: 0
Summary: The kitchen sink of Python functional utility libraries
License: MIT
Group: Development/Languages/Python
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
@@ -38,8 +43,7 @@ The kitchen sink of Python utility libraries for doing "stuff" in a functional w
Based on the Lo-Dash Javascript library.
%prep
%setup -q -n pydash-%{version}
rm tox.ini
%autosetup -p1 -n pydash-%{version}
%build
%pyproject_wheel
@@ -49,12 +53,25 @@ rm tox.ini
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
sed -i '/--.*cov/d' setup.cfg
%pytest tests/
# 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}/*
%{python_sitelib}/pydash
%{python_sitelib}/pydash-%{version}.dist-info
%changelog