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:
@@ -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
|
||||
|
Reference in New Issue
Block a user