## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %bcond_without tests Name: python-imbalanced-learn Version: 0.13.0 Release: %autorelease Summary: A Python Package to Tackle the Imbalanced Datasets in Machine Learning %global forgeurl https://github.com/scikit-learn-contrib/imbalanced-learn %global tag %{version} %forgemeta # The entire source is (SPDX) MIT; some other licenses are mentioned in # doc/sphinxext/LICENSE.txt, but the code to which they apply does not seem to # be present, and the directory is removed in %%prep anyway. License: MIT URL: %forgeurl Source: %forgesource BuildArch: noarch BuildRequires: python3-devel # tests BuildRequires: python3dist(pytest) BuildRequires: python3dist(pytest-xdist) # Dependencies such as pytest-cov, flake8, black, and mypy are omitted: # https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters %global _description %{expand: imbalanced-learn is a python package offering a number of re-sampling techniques commonly used in datasets showing strong between-class imbalance. It is compatible with scikit-learn and is part of scikit-learn-contrib projects.} %description %_description %package -n python3-imbalanced-learn Summary: %{summary} %description -n python3-imbalanced-learn %_description %pyproject_extras_subpkg -n python3-imbalanced-learn optional %prep %forgeautosetup -p1 # Remove the bundled Sphinx extensions. We don’t build the documentation, so we # don’t need to make an effort to unbundle them. rm -vrf doc/sphinxext/ # Remove obsolete sklearn-compat dependency. Upstream dropped it post # release and it's not packaged for Fedora. # https://github.com/scikit-learn-contrib/imbalanced-learn/commit/e511ddbf44f819f3777a2689eb7a87e77bf2a0e5 sed -i '/sklearn-compat/d' pyproject.toml %generate_buildrequires %pyproject_buildrequires -x optional %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l imblearn %if %{with tests} %check # some tests are skipped, because of keras and tensorflow deps k="${k-}${k+ and }not test_all_estimators" k="${k-}${k+ and }not test_classification_report_imbalanced_multiclass_with_unicode_label" k="${k-}${k+ and }not test_rusboost" k="${k-}${k+ and }not test_cluster_centroids_n_jobs" k="${k-}${k+ and }not test_fit_docstring" k="${k-}${k+ and }not keras" k="${k-}${k+ and }not test_function_sampler_validate" %pytest -v "${k+-k $k}" imblearn %endif %files -n python3-imbalanced-learn -f %{pyproject_files} %doc README.rst examples/ %changelog ## START: Generated by rpmautospec * Wed Dec 25 2024 Sandro - 0.13.0-1 - Update to 0.13.0 (RHBZ#2333533) - Fix build with NumPy 2.x * Fri Oct 04 2024 Packit - 0.12.4-1 - Update to 0.12.4 upstream release - Resolves: rhbz#2316538 * Fri Jul 19 2024 Fedora Release Engineering - 0.12.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sat Jun 08 2024 Python Maint - 0.12.3-2 - Rebuilt for Python 3.13 * Tue May 28 2024 Packit - 0.12.3-1 - Update to 0.12.3 upstream release - Resolves: rhbz#2283670 * Sun Mar 31 2024 Sandro - 0.12.2-2 - Add Packit config * Sun Mar 31 2024 Sandro - 0.12.2-1 - Update to 0.12.2 (RHBZ#2272403) - Drop patch (implemented upstream) - Update also fixes RHBZ#2264229 * Wed Mar 27 2024 Sandro - 0.12.0-2 - Fix failing tests due to updated sklearn (>=1.4) * Thu Jan 25 2024 Iztok Fister Jr. - 0.12.0-1 - Update to 0.12.0 * Mon Jan 22 2024 Fedora Release Engineering - 0.11.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Wed Jan 03 2024 Benjamin A. Beasley - 0.11.0-2 - Assert that the .dist-info directory contains a license file * Thu Sep 07 2023 Sandro - 0.11.0-1 - Update to 0.11.0 (RHBZ#2221414) - Also fixes RHBZ#2226214 * Fri Jul 21 2023 Fedora Release Engineering - 0.10.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jul 04 2023 Python Maint - 0.10.1-3 - Rebuilt for Python 3.12 * Thu Apr 27 2023 Sandro - 0.10.1-1 - Update to 0.10.1 * Fri Jan 20 2023 Fedora Release Engineering - 0.10.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Wed Dec 14 2022 Benjamin A. Beasley - 0.10.0-1 - Update to 0.10.0 (close RHBZ#2152162) * Wed Dec 14 2022 Benjamin A. Beasley - 0.9.1-2 - Remove bundled Sphinx extensions in %%prep - Confirm License is SPDX MIT - Drop unnecessary pytest-cov BR - Port to pyproject-rpm-macros * Sun Sep 11 2022 Iztok Fister Jr. - 0.9.1-1 - New version - 0.9.1 * Fri Jul 22 2022 Fedora Release Engineering - 0.9.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jul 04 2022 Python Maint - 0.9.0-4 - Rebuilt for Python 3.11 * Thu Jan 27 2022 Iztok Fister Jr. - 0.9.0-3 - Disable one additional test * Fri Jan 21 2022 Fedora Release Engineering - 0.9.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Tue Jan 11 2022 Iztok Fister Jr. - 0.9.0-1 - New version - 0.9.0 * Wed Sep 29 2021 Iztok Fister Jr. - 0.8.1-1 - New version - 0.8.1 * Wed Jul 21 2021 Iztok Fister Jr. - 0.8.0-5 - Install additional docs * Fri Jun 04 2021 Python Maint - 0.8.0-4 - Rebuilt for Python 3.10 * Tue Apr 20 22:59:49 CEST 2021 Robert-André Mauchin - 0.8.0-3 - Remove unneeded patch - Reenable tests * Tue Mar 23 2021 Iztok Fister Jr. - 0.8.0-2 - New patch: use Fedora dependencies - Remove provides macro * Sat Mar 13 2021 Iztok Fister Jr. - 0.8.0-1 - New version - 0.8.0 * Sun Feb 14 2021 Iztok Fister Jr. - 0.7.0-5 - Removing dependency generator - Fresh rebuilt * Wed Jan 27 2021 Fedora Release Engineering - 0.7.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jan 19 2021 Iztok Fister Jr. - 0.7.0-3 - disabling tests - too many problems with missing keras/tensorflow dependencies * Fri Jan 8 2021 Iztok Fister Jr. - 0.7.0-2 - disabling one test - test_cluster_centroids_n_jobs * Sun Nov 29 2020 Iztok Fister Jr. - 0.7.0-1 - Initial package ## END: Generated by rpmautospec