Blame SPECS/python-parameterized.spec

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