From bc85e43b3fec5302d3f6253763ccdb593dd5e02a74dd7b2327ba82988336ab7e Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 3 Apr 2024 01:32:04 +0000 Subject: [PATCH] - 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 --- pydash-6.0.2.tar.gz | 3 --- pydash-8.0.0.tar.gz | 3 +++ python-pydash.changes | 33 +++++++++++++++++++++++++++++++++ python-pydash.spec | 31 ++++++++++++++++++++++++------- 4 files changed, 60 insertions(+), 10 deletions(-) delete mode 100644 pydash-6.0.2.tar.gz create mode 100644 pydash-8.0.0.tar.gz diff --git a/pydash-6.0.2.tar.gz b/pydash-6.0.2.tar.gz deleted file mode 100644 index 7a6beb6..0000000 --- a/pydash-6.0.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:35caa588e01d293713655e0870544d25128cd414c5e19477a0d63adc2b2ca03e -size 146289 diff --git a/pydash-8.0.0.tar.gz b/pydash-8.0.0.tar.gz new file mode 100644 index 0000000..f9514bb --- /dev/null +++ b/pydash-8.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5a90d98b5f370bb9620f786221579df8f83d54f1f58de6a66f52b1bdba7175d1 +size 163870 diff --git a/python-pydash.changes b/python-pydash.changes index e6c1c31..88b1b0c 100644 --- a/python-pydash.changes +++ b/python-pydash.changes @@ -1,3 +1,36 @@ +------------------------------------------------------------------- +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 diff --git a/python-pydash.spec b/python-pydash.spec index 4e5bb56..a449e98 100644 --- a/python-pydash.spec +++ b/python-pydash.spec @@ -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