## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## 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 Name: python-utils Version: 3.9.0 Release: %autorelease Summary: Python Utils is a module with some convenient utilities # Automatically converted from old format: BSD - review is highly recommended. License: LicenseRef-Callaway-BSD URL: https://github.com/WoLpH/python-utils Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel # tox.ini uses _python_utils_tests/requirements.txt and that uses coverage and linting # so we cherry-pick what we need instead BuildRequires: python3-pytest BuildRequires: python3-pytest-asyncio BuildRequires: python3-sphinx %description Python Utils is a collection of small Python functions and classes which make common patterns shorter and easier. This module makes it easy to execute common tasks in Python scripts such as converting text to numbers and making sure a string is in unicode or bytes format. %package -n python3-utils Summary: %{summary} %description -n python3-utils Python Utils is a collection of small Python functions and classes which make common patterns shorter and easier. This module makes it easy to execute common tasks in Python scripts such as converting text to numbers and making sure a string is in unicode or bytes format. %package docs Summary: Documentation for python-utils %description docs Documentation for python-utils. %prep %autosetup -p1 -n %{name}-%{version} # Stop linting code in %%check and measuring coverage, this is upstream's business sed -Ei '/--(cov|mypy)/d' pytest.ini %generate_buildrequires %pyproject_buildrequires -r %build %pyproject_wheel # generate html docs sphinx-build docs html # remove the sphinx-build leftovers rm -rf html/{.doctrees,.buildinfo,*.inv} %install %pyproject_install %pyproject_save_files python_utils %check # Ignoring test_logger.py and python_utils/loguru.py - we don't have loguru # in Fedora yet, hence we don't package the loguru extra for python-utils. %pytest --ignore _python_utils_tests/test_logger.py --ignore python_utils/loguru.py %files -n python3-utils -f %{pyproject_files} %doc README.rst %files docs %doc html %changelog ## START: Generated by rpmautospec * Tue Oct 08 2024 Charalampos Stratakis - 3.9.0-1 - Update to 3.9.0 - Fixes: rhbz#2240723 * Wed Sep 04 2024 Miroslav Suchý - 3.7.0-7 - convert license to SPDX * Fri Jul 19 2024 Fedora Release Engineering - 3.7.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 07 2024 Python Maint - 3.7.0-5 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 3.7.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 3.7.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Tue Aug 29 2023 Charalampos Stratakis - 3.7.0-1 - Update to 3.7.0 Resolves: rhbz#2138645 * Fri Jul 21 2023 Fedora Release Engineering - 3.3.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Wed Jun 14 2023 Python Maint - 3.3.3-3 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 3.3.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Oct 14 2022 Karolina Surma - 3.3.3-1 - Update to 3.3.3 - Fixes: rhbz#2085998 * Fri Jul 22 2022 Fedora Release Engineering - 3.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 3.1.0-2 - Rebuilt for Python 3.11 * Tue Mar 08 2022 Charalampos Stratakis - 3.1.0-1 - Update to 3.1.0 - Fixes: rhbz#2033433 * Fri Jan 21 2022 Fedora Release Engineering - 2.5.6-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Tue Dec 21 2021 Miro Hrončok - 2.5.6-4 - Modernize packaging - Remove redundant BuildRequires: make and python3-pytest-runner - Split huge documentation (90% package size) to a separate subpackage * Fri Jul 23 2021 Fedora Release Engineering - 2.5.6-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 2.5.6-2 - Rebuilt for Python 3.10 * Fri Feb 19 2021 Lumír Balhar - 2.5.6-1 - Update to 2.5.6 Resolves: rhbz#1916537 * Wed Jan 27 2021 Fedora Release Engineering - 2.4.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 2.4.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Jun 01 2020 Charalampos Stratakis - 2.4.0-1 - Update to 2.4.0 (#1809705) * Tue May 26 2020 Miro Hrončok - 2.3.0-10 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 2.3.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 2.3.0-8 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 2.3.0-7 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 2.3.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Mon May 13 2019 Orion Poplawski - 2.3.0-5 - Add patch to build docs with python 3 (bugz#1709063) - Drop unneeded BR on pytest-cache * Sat Feb 02 2019 Fedora Release Engineering - 2.3.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 2.3.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 2.3.0-2 - Rebuilt for Python 3.7 * Sat May 05 2018 Miro Hrončok - 2.3.0-1 - New version 2.3.0 (#1474328) - Use automatic dependency generator * Fri Feb 09 2018 Fedora Release Engineering - 2.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 2.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Thu Jun 15 2017 Miro Hrončok - 2.1.0-1 - New version 2.1.0 (#1438625) * Sat Feb 11 2017 Fedora Release Engineering - 2.0.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Dec 22 2016 Miro Hrončok - 2.0.1-2 - Rebuild for Python 3.6 * Mon Dec 19 2016 Miro Hrončok - 2.0.1-1 - Updated, added LICENSE file * Sun Dec 04 2016 Miro Hrončok - 2.0.0-1 - Initial package ## END: Generated by rpmautospec