## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 10; 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-parameterized Version: 0.9.0 Release: %autorelease Summary: Parameterized testing with any Python test framework License: BSD-2-Clause-Views URL: https://github.com/wolever/parameterized # CHANGELOG.txt is no longer included in the PyPI sdist # https://github.com/wolever/parameterized/issues/168 # Source: %%{pypi_source parameterized} Source: %{url}/archive/v%{version}/parameterized-%{version}.tar.gz # Remove the usage of assertRaisesRegexp unit test alias removed in Python 3.12 Patch: https://github.com/wolever/parameterized/pull/169.patch # Fix tests to handle Python 3.13 stripping indents from docstrings Patch: https://github.com/wolever/parameterized/pull/176.patch BuildArch: noarch BuildRequires: python3-devel # Upstream supports tox, and in theory we could generate these by something like: # %%pyproject_buildrequires -t -e %%{toxenv}-nose2,%%{toxenv}-pytest4,%%{toxenv}-unit # but upstream is not keeping up, and we would also have to patch in support # for environments after py311. It’s not worth it; we can more easily run the # tests manually and specify the BR’s manually. See %%check. BuildRequires: python3dist(nose2) BuildRequires: python3dist(pytest) %description %{summary}. %package -n python3-parameterized Summary: %{summary} %description -n python3-parameterized %{summary}. %prep %autosetup -p1 -n parameterized-%{version} sed -r -i 's/^import mock/from unittest import mock/' parameterized/test.py # Workaround for: # Support pytest7 # https://github.com/wolever/parameterized/issues/167 sed -r -i 's/assert_equal\(missing/# &/' parameterized/test.py %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files parameterized %check %{py3_test_envvars} %{python3} -m nose2 -v %pytest parameterized/test.py %{py3_test_envvars} %{python3} -m unittest -v parameterized.test %files -n python3-parameterized -f %{pyproject_files} # pyproject_files handles LICENSE.txt; verify with “rpm -qL -p …” %doc CHANGELOG.txt README.rst %changelog ## START: Generated by rpmautospec * Fri Jul 19 2024 Fedora Release Engineering - 0.9.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sat Jun 08 2024 Python Maint - 0.9.0-9 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 0.9.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 0.9.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Oct 30 2023 Benjamin A. Beasley - 0.9.0-6 - Fix tests to handle Python 3.13 stripping indents from docstrings - Fixes RHBZ#2247031 * Thu Oct 12 2023 Benjamin A. Beasley - 0.9.0-5 - F38+: Use %%{py3_test_envvars} to run tests - Set the same environment variables for nose2 and unittest as for pytest when testing with different runners * Fri Jul 21 2023 Fedora Release Engineering - 0.9.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Mon Jun 19 2023 Python Maint - 0.9.0-3 - Rebuilt for Python 3.12 * Tue May 02 2023 Tomáš Hrnčiar - 0.9.0-2 - Remove the usage of assertRaisesRegexp unit test alias removed in Python 3.12 * Sat Apr 15 2023 Benjamin A. Beasley - 0.9.0-1 - Update to 0.9.0 (close RHBZ#2181939) * Fri Jan 20 2023 Fedora Release Engineering - 0.8.1-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Mon Aug 29 2022 Benjamin A. Beasley - 0.8.1-5 - Update License field to SPDX - Drop dependency on deprecated python-nose - Port to pyproject-rpm-macros * Sun Jul 24 2022 Benjamin A. Beasley - 0.8.1-4 - Fix nose2-0.12.0 compatibility: do not use the python-versioned entry point for nose2, e.g. nose2-3.11 * Fri Jul 22 2022 Fedora Release Engineering - 0.8.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 0.8.1-2 - Rebuilt for Python 3.11 * Wed Jun 08 2022 Miro Hrončok - 0.8.1-1 - Update to 0.8.1 - Fixes: rhbz#1697443 - Fix test failures with pytest 7+ - Fixes: rhbz#2059963 * Fri Jan 21 2022 Fedora Release Engineering - 0.7.4-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 0.7.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jun 02 2021 Python Maint - 0.7.4-3 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 0.7.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Thu Jan 21 2021 Jiri Popelka - 0.7.4-1 - 0.7.4 * Wed Jul 29 2020 Fedora Release Engineering - 0.7.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Fri May 22 2020 Miro Hrončok - 0.7.0-3 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 0.7.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Nov 08 2019 Jiri Popelka - 0.7.0-1 - 0.7.0 - Don't use now orphaned python-unittest2 * Thu Oct 03 2019 Miro Hrončok - 0.6.1-9 - Rebuilt for Python 3.8.0rc1 (#1748018) * Sat Aug 17 2019 Miro Hrončok - 0.6.1-8 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 0.6.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 0.6.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sun Aug 12 2018 Igor Gnatenko - 0.6.1-5 - Drop python2 subpackage * Sat Jul 14 2018 Fedora Release Engineering - 0.6.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 0.6.1-3 - Rebuilt for Python 3.7 * Fri Feb 09 2018 Fedora Release Engineering - 0.6.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Sun Nov 19 2017 Igor Gnatenko - 0.6.1-1 - Initial package ## END: Generated by rpmautospec