2020-08-21 08:31:50 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-pydash
|
|
|
|
#
|
2024-03-05 09:53:14 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2020-08-21 08:31:50 +00:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2024-03-05 09:53:14 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2020-08-21 08:31:50 +00:00
|
|
|
Name: python-pydash
|
2024-05-02 08:56:27 +00:00
|
|
|
Version: 8.0.1
|
2020-08-21 08:31:50 +00:00
|
|
|
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
|
- 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
|
|
|
BuildRequires: %{python_module base >= 3.8}
|
|
|
|
BuildRequires: %{python_module invoke}
|
2023-10-16 10:40:39 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
- 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
|
|
|
BuildRequires: %{python_module pytest-cov}
|
|
|
|
BuildRequires: %{python_module pytest-mypy-testing}
|
2020-08-21 08:31:50 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
- 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
|
|
|
BuildRequires: %{python_module typing_extensions >= 3.10}
|
2023-10-16 10:40:39 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2020-08-21 08:31:50 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
- 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
|
|
|
Requires: python-typing_extensions >= 3.10
|
2020-08-21 08:31:50 +00:00
|
|
|
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
|
- 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
|
|
|
%autosetup -p1 -n pydash-%{version}
|
2020-08-21 08:31:50 +00:00
|
|
|
|
|
|
|
%build
|
2023-10-16 10:40:39 +00:00
|
|
|
%pyproject_wheel
|
2020-08-21 08:31:50 +00:00
|
|
|
|
|
|
|
%install
|
2023-10-16 10:40:39 +00:00
|
|
|
%pyproject_install
|
2020-08-21 08:31:50 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
- 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
|
|
|
# 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)"
|
2020-08-21 08:31:50 +00:00
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%doc AUTHORS.rst CHANGELOG.rst README.rst
|
|
|
|
%license LICENSE.rst
|
- 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
|
|
|
%{python_sitelib}/pydash
|
|
|
|
%{python_sitelib}/pydash-%{version}.dist-info
|
2020-08-21 08:31:50 +00:00
|
|
|
|
|
|
|
%changelog
|