Hello community,
here is the log from the commit of package python-scikit-learn for
openSUSE:Factory checked in at 2020-12-21 12:35:20
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-scikit-learn (Old)
and /work/SRC/openSUSE:Factory/.python-scikit-learn.new.5145 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-scikit-learn"
Mon Dec 21 12:35:20 2020 rev:12 rq:856853 version:0.23.2
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-scikit-learn/python-scikit-learn.changes
2020-10-25 18:10:20.811556909 +0100
+++
/work/SRC/openSUSE:Factory/.python-scikit-learn.new.5145/python-scikit-learn.changes
2020-12-21 12:35:22.854961260 +0100
@@ -1,0 +2,7 @@
+Sun Dec 13 01:16:34 UTC 2020 - Benjamin Greiner <[email protected]>
+
+- provide "sklearn" only for primary python3 flavor
+ gh#openSUSE/python-rpm-macros#66
+- clean test setup
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-scikit-learn.spec ++++++
--- /var/tmp/diff_new_pack.KSy5ci/_old 2020-12-21 12:35:23.694963268 +0100
+++ /var/tmp/diff_new_pack.KSy5ci/_new 2020-12-21 12:35:23.698963277 +0100
@@ -46,7 +46,9 @@
Requires: python-threadpoolctl >= 2.0.0
Requires: python-xml
Provides: python-sklearn
+%if "%{python_flavor}" == "python3" || "%{?python_provides}" == "python3"
Provides: sklearn
+%endif
# SECTION test requirements
BuildRequires: %{python_module joblib}
BuildRequires: %{python_module matplotlib}
@@ -83,25 +85,20 @@
%ifarch %{ix86} x86_64
%check
export SKLEARN_SKIP_NETWORK_TESTS=1
-# export PYTHONDONTWRITEBYTECODE=1
NO_TESTS="test_feature_importance_regression or
test_minibatch_with_many_reassignments"
-NO_TESTS="$NO_TESTS or test_sparse_coder_parallel_mmap or
test_explained_variances"
+NO_TESTS+=" or test_sparse_coder_parallel_mmap or test_explained_variances"
# test_negative_sample_weights_mask_all_samples[weights-are-zero-NuSVC] Fatal
Python error: Aborted
-NO_TESTS="$NO_TESTS or test_negative_sample_weights_mask_all_samples"
-export NO_TESTS
-mv sklearn sklearn_temp
-rm -rf build _build.*
-%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch}
-rm -rf build _build.*
-py.test-%{$python_bin_suffix} -p no:cacheprovider -v -k "not ($NO_TESTS)"
%{buildroot}%{$python_sitearch}/sklearn
-}
-mv sklearn_temp sklearn
+NO_TESTS+=" or test_negative_sample_weights_mask_all_samples"
+mkdir test_dir
+pushd test_dir
+%pytest_arch -p no:cacheprovider -v -k "not ($NO_TESTS)"
%{buildroot}%{$python_sitearch}/sklearn
+popd
%endif
%files %{python_files}
%license COPYING
%doc README.rst
%{python_sitearch}/sklearn/
-%{python_sitearch}/scikit_learn-%{version}-py*.egg-info
+%{python_sitearch}/scikit_learn-%{version}*-info
%changelog
_______________________________________________
openSUSE Commits mailing list -- [email protected]
To unsubscribe, email [email protected]
List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette
List Archives:
https://lists.opensuse.org/archives/list/[email protected]