Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-swifter for openSUSE:Factory checked in at 2023-03-27 18:15:41 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-swifter (Old) and /work/SRC/openSUSE:Factory/.python-swifter.new.31432 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-swifter" Mon Mar 27 18:15:41 2023 rev:9 rq:1074475 version:1.3.4 Changes: -------- --- /work/SRC/openSUSE:Factory/python-swifter/python-swifter.changes 2022-03-31 17:19:06.116992395 +0200 +++ /work/SRC/openSUSE:Factory/.python-swifter.new.31432/python-swifter.changes 2023-03-27 18:15:41.870922208 +0200 @@ -1,0 +2,39 @@ +Sat Mar 25 12:14:06 UTC 2023 - Ben Greiner <[email protected]> + +- Update to 1.3.4 + * Enable indexing after a groupby, e.g. + df.swifter.groupby(by)[key].apply(func) + * Improve groupby apply progress bar + * Previously, the groupby apply progress bar only appeared after + the data was distributed across the cores. + * Now, the groupby apply progress bar appears before the data is + distributed for a more realistic reflection of how long it took + * Additional groupby apply code refactoring and optimizations, + including removing the mutability of the data within ray +- Version 1.3.3 + * Enable users to pass in df.index as the by parameter for the + df.swifter.groupby(by).apply(func) command +- Version 1.3.2 + * Enable users to df.swifter.groupby.apply, which requires a new + package (ray) that now available as an extra_requires. + * To use groupby apply, install swifter as pip install -U + swifter[groupby] + * All credit goes to user @diditforlulz273 for writing the + performant groupby apply code, that is now part of swifter! +- Version 1.2.0 + * Enable users to force_parallel which immediately forces swifter + to jump to using dask apply. This enables a simple interface + for parallel processing, but disables swifter's algorithm to + determine the fastest apply solution possible. +- Version 1.1.4 + * Enable users to leverage set_defaults functionality so they + don't have to keep invoking individual settings on a per + swifter invocation basis +- Version 1.1.3 + * Enhance the robustness of swifter by randomizing the sample + index to avoid sparse data impacting the validity of apply + validation + * Resolve issue where functions that return a non array-like + cause swifter to fail on vectorization + +------------------------------------------------------------------- Old: ---- swifter-1.1.2.tar.gz New: ---- swifter-1.3.4.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-swifter.spec ++++++ --- /var/tmp/diff_new_pack.DjR8US/_old 2023-03-27 18:15:42.342924700 +0200 +++ /var/tmp/diff_new_pack.DjR8US/_new 2023-03-27 18:15:42.346924721 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-swifter # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,16 +16,18 @@ # -%{?!python_module:%define python_module() python3-%{**}} -%define skip_python2 1 +# no python311-dask because no python311-numba +%define skip_python311 1 Name: python-swifter -Version: 1.1.2 +Version: 1.3.4 Release: 0 Summary: Tool to speed up pandas calculations License: MIT URL: https://github.com/jmcarpenter2/swifter Source: https://github.com/jmcarpenter2/swifter/archive/%{version}.tar.gz#/swifter-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-bleach >= 3.1.1 @@ -36,6 +38,7 @@ Requires: python-parso > 0.4 Requires: python-psutil >= 5.6.6 Requires: python-tqdm >= 4.33.0 +Suggests: python-ray >= 1.0 BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module bleach >= 3.1.1} @@ -47,6 +50,8 @@ BuildRequires: %{python_module psutil >= 5.6.6} BuildRequires: %{python_module pytest-xdist} BuildRequires: %{python_module pytest} +# Not available +#BuildRequires: %%{python_module ray >= 1.0} BuildRequires: %{python_module tqdm >= 4.33.0} # /SECTION %python_subpackages @@ -57,20 +62,22 @@ %prep %setup -q -n swifter-%{version} -# https://github.com/jmcarpenter2/swifter/commit/bc754088feb97f883794585a7eeb8cb5914e1d4b -sed -i 's/{VERSION}/%{version}/' setup.py %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check # we fail the speedtests on the build service machines. Disable that portion of the tests sed -i 's/if self.ncores > 1: # speed test/if False: # no speed test/' swifter/swifter_tests.py -%pytest -n auto swifter/swifter_tests.py +# groupy requires the extra dep python-ray, which is not available +donttest="(TestPandasDataFrame and groupby)" +# wrong axis parameter +donttest="$donttest or test_nonvectorized_math_apply_on_small_dataframe" +%pytest -n auto swifter/swifter_tests.py -k "not ($donttest)" %files %{python_files} %doc README.md ++++++ swifter-1.1.2.tar.gz -> swifter-1.3.4.tar.gz ++++++ ++++ 3015 lines of diff (skipped)
