Blame python-imbalanced-learn.spec

cb428d5
%bcond_with tests
442543c
442543c
%global pretty_name imbalanced-learn
442543c
%global lib_name imblearn
442543c
%global extract_name imbalanced_learn
442543c
7b5bcd8
%global fullversion 0.8.0
442543c
442543c
%global _description %{expand:
442543c
imbalanced-learn is a python package offering a number of re-sampling techniques 
442543c
commonly used in datasets showing strong between-class imbalance. It is 
442543c
compatible with scikit-learn and is part of scikit-learn-contrib projects.}
442543c
442543c
442543c
Name:           python-%{pretty_name}
442543c
Version:        %{?fullversion}
b432823
Release:        2%{?dist}
442543c
Summary:        A Python Package to Tackle the Imbalanced Datasets in Machine Learning 
442543c
442543c
License:        MIT
442543c
URL:            https://github.com/scikit-learn-contrib/%{pretty_name}
442543c
Source0:        %{url}/archive/%{fullversion}/%{pretty_name}-%{fullversion}.tar.gz
b432823
Patch0:         0001-Allow-Fedora-Package-Versions.patch
442543c
442543c
BuildArch:      noarch
442543c
442543c
%description %_description
442543c
442543c
%package -n python3-%{pretty_name}
442543c
Summary:        %{summary}
442543c
BuildRequires:  python3-devel
442543c
BuildRequires:  %{py3_dist setuptools}
442543c
442543c
#main deps
442543c
BuildRequires:  %{py3_dist numpy}
442543c
BuildRequires:  %{py3_dist scipy}
442543c
BuildRequires:  %{py3_dist scikit-learn}
442543c
BuildRequires:  %{py3_dist joblib}
442543c
BuildRequires:  %{py3_dist matplotlib}
442543c
442543c
#for tests
442543c
BuildRequires:  %{py3_dist pytest}
442543c
BuildRequires:  %{py3_dist pytest-cov}
442543c
b432823
#for the patch
b432823
BuildRequires:  git-core
442543c
442543c
%description -n python3-%{pretty_name} %_description
442543c
442543c
%prep
442543c
%autosetup -n %{pretty_name}-%{fullversion}
442543c
rm -rf %{pretty_name}.egg-info
442543c
442543c
%build
442543c
%py3_build
442543c
442543c
%install
442543c
%py3_install
442543c
# Remove extra install files
442543c
rm -rf %{buildroot}/%{python3_sitelib}/tests
442543c
442543c
# some tests are skipped, because of keras and tensorflow deps
442543c
%check
cb428d5
%if %{with tests}
8e7e2c4
%{python3} -m pytest -k 'not test_all_estimators and not test_classification_report_imbalanced_multiclass_with_unicode_label and not test_rusboost and not test_cluster_centroids_n_jobs'
cb428d5
%endif
442543c
442543c
%files -n python3-%{pretty_name}
442543c
%license LICENSE
442543c
%doc README.rst
442543c
%{python3_sitelib}/%{extract_name}-%{fullversion}-py%{python3_version}.egg-info
442543c
%{python3_sitelib}/%{lib_name}
442543c
442543c
%changelog
b432823
* Tue Mar 23 2021 Iztok Fister Jr. <iztokf AT fedoraproject DOT org> - 0.8.0-2
b432823
- New patch: use Fedora dependencies
b432823
- Remove provides macro
b432823
7b5bcd8
* Sat Mar 13 2021 Iztok Fister Jr. <iztokf AT fedoraproject DOT org> - 0.8.0-1
7b5bcd8
- New version - 0.8.0
7b5bcd8
c6912f0
* Sun Feb 14 2021 Iztok Fister Jr. <iztokf AT fedoraproject DOT org> - 0.7.0-5
c6912f0
- Removing dependency generator
c6912f0
- Fresh rebuilt
c6912f0
a03b08e
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-4
a03b08e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
a03b08e
6b77163
* Tue Jan 19 2021 Iztok Fister Jr. <iztokf AT fedoraproject DOT org> - 0.7.0-3
cb428d5
- disabling tests - too many problems with missing keras/tensorflow dependencies
cb428d5
6b77163
* Fri Jan 8 2021 Iztok Fister Jr. <iztokf AT fedoraproject DOT org> - 0.7.0-2
8e7e2c4
- disabling one test - test_cluster_centroids_n_jobs
8e7e2c4
442543c
* Sun Nov 29 2020 Iztok Fister Jr. <iztokf AT fedoraproject DOT org> - 0.7.0-1
442543c
- Initial package
cb428d5