commit 2ead8e943d1a539158472c0f0babb82e779c7bb6 Author: tigro Date: Sat Jan 4 21:55:11 2025 +0300 import python-testtools-2.7.2-5.el10 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7ca6e60 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/testtools-2.7.2.tar.gz diff --git a/.python-testtools.metadata b/.python-testtools.metadata new file mode 100644 index 0000000..201cc3b --- /dev/null +++ b/.python-testtools.metadata @@ -0,0 +1 @@ +6da08f6625539d4b16b76ee1010ccb2f13aaa205 SOURCES/testtools-2.7.2.tar.gz diff --git a/SPECS/python-testtools.spec b/SPECS/python-testtools.spec new file mode 100644 index 0000000..dc1ce9f --- /dev/null +++ b/SPECS/python-testtools.spec @@ -0,0 +1,407 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.3) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 5; + 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 + +# To build this package in a new environment (i.e. a new EPEL branch), you'll +# need to build in a particular order. Duplicate numbered steps can happen at +# the same time. +# +# 1. bootstrap python-extras +# 1. bootstrap python-fixtures +# 2. bootstrap python-testtools +# 3. python-extras +# 3. python-fixtures +# 3. python-testscenarios +# 4. python-testresources +# 5. python-testtools +%bcond bootstrap 0 + +# Twisted support is optional, but introduces twisted as a build requirement, +# and that has it's own pile of dependencies. Let's avoid that during EPEL +# bringup. +%bcond twisted %{undefined rhel} + +Name: python-testtools +Version: 2.7.2 +Release: %autorelease +Summary: Extensions to the Python standard library unit testing framework +License: MIT +URL: https://github.com/testing-cabal/testtools +Source: %{pypi_source testtools} +BuildArch: noarch + +%global common_description %{expand: +testtools is a set of extensions to the Python standard library's unit testing +framework.} + + +%description %{common_description} + + +%package -n python3-testtools +Summary: %{summary} +BuildRequires: python3-devel + + +%description -n python3-testtools %{common_description} + + +%if %{without bootstrap} +%package doc +BuildRequires: make +BuildRequires: python3-sphinx +Summary: Documentation for %{name} + +# https://fedoraproject.org/wiki/Packaging:No_Bundled_Libraries#Packages_granted_temporary_exceptions +Provides: bundled(jquery) + + +%description doc +This package contains HTML documentation for %{name}. +%endif + + +%prep +%autosetup -p 1 -n testtools-%{version} + +%if %{without twisted} +sed -e '/twistedsupport,/d' -i testtools/tests/__init__.py +%endif + + +%generate_buildrequires +%pyproject_buildrequires %{!?with_bootstrap:-x test %{?with_twisted:-x twisted}} + + +%build +%pyproject_wheel + +%if %{without bootstrap} +make -C doc html +%endif + + +%install +%pyproject_install +%pyproject_save_files -l testtools + + +%check +%if %{with bootstrap} +# Exclude modules that import things that are not available during bootstrap. +%pyproject_check_import -e 'testtools.tests*' -e testtools.twistedsupport +%else +%{py3_test_envvars} %{python3} -m testtools.run testtools.tests.test_suite +%endif + + +%files -n python3-testtools -f %{pyproject_files} +%doc NEWS README.rst + + +%if %{without bootstrap} +%files doc +%doc doc/_build/html/* +%endif + + +%changelog +* Sat Jan 04 2025 Arkady L. Shane - 2.7.2-5 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Thu Nov 14 2024 Carl George - 2.7.2-5 +- Fix inverted logic for twistedsupport tests buildrequirement generation + +* Thu Nov 14 2024 Carl George - 2.7.2-4 +- Skip twistedsupport tests on EPEL, correctly this time + +* Thu Nov 14 2024 Carl George - 2.7.2-3 +- Skip twistedsupport tests on EPEL + +* Thu Nov 14 2024 Carl George - 2.7.2-2 +- Minor fix for description formatting + +* Thu Nov 14 2024 Carl George - 2.7.2-1 +- Update to version 2.7.2 rhbz#2291170 + +* Thu Nov 14 2024 Carl George - 2.7.1-9 +- Run import check while bootstrapping + +* Thu Nov 14 2024 Carl George - 2.7.1-8 +- Macro and formatting cleanup + +* Tue Jul 23 2024 Tomáš Hrnčiar - 2.7.1-7 +- Backport upstream patch needed for compatibility with pytest 8 + +* Fri Jul 19 2024 Fedora Release Engineering - 2.7.1-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Sun Jun 09 2024 Python Maint - 2.7.1-5 +- Rebuilt for Python 3.13 + +* Fri Jun 07 2024 Python Maint - 2.7.1-4 +- Bootstrap for Python 3.13 + +* Fri Jan 26 2024 Fedora Release Engineering - 2.7.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Jan 22 2024 Fedora Release Engineering - 2.7.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Nov 03 2023 Joel Capitao - 2.7.1-1 +- Update to 2.7.1 (rhbz#2247544) + +* Thu Sep 14 2023 Michel Lind - 2.6.0-2 +- Certify that we are using the SPDX license identifier + +* Thu Aug 03 2023 Michel Alexandre Salim - 2.6.0-1 +- Update to 2.6.0 (rhbz#2178177, rhbz#2226353) + +* Fri Jul 21 2023 Fedora Release Engineering - 2.5.0-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Mon Jul 03 2023 Python Maint - 2.5.0-13 +- Rebuilt for Python 3.12 + +* Tue Jun 13 2023 Python Maint - 2.5.0-12 +- Bootstrap for Python 3.12 + +* Fri Jan 20 2023 Fedora Release Engineering - 2.5.0-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Jul 22 2022 Fedora Release Engineering - 2.5.0-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Wed Jun 15 2022 Python Maint - 2.5.0-9 +- Rebuilt for Python 3.11 + +* Wed Jun 15 2022 Python Maint - 2.5.0-8 +- Bootstrap for Python 3.11 + +* Fri Apr 29 2022 Carl George - 2.5.0-7 +- Switch to bootstrap macros + +* Fri Apr 29 2022 Carl George - 2.5.0-6 +- Disable tests for EPEL9 bootstrap + +* Tue Apr 26 2022 Carl George - 2.5.0-5 +- Convert to pyproject macros + +* Tue Apr 26 2022 Carl George - 2.5.0-4 +- Fix Python 3.10 (final, not beta) FTBFS +- Resolves: rhbz#2046915 + +* Fri Jan 21 2022 Fedora Release Engineering - 2.5.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 2.5.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri Jul 16 2021 Michel Alexandre Salim - 2.5.0-1 +- Update to 2.5.0 + +* Fri Jun 04 2021 Python Maint - 2.4.0-10 +- Rebuilt for Python 3.10 + +* Wed Jun 02 2021 Python Maint - 2.4.0-9 +- Bootstrap for Python 3.10 + +* Wed Jan 27 2021 Fedora Release Engineering - 2.4.0-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 2.4.0-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Fri May 22 2020 Miro Hrončok - 2.4.0-6 +- Rebuilt for Python 3.9 + +* Fri May 22 2020 Miro Hrončok - 2.4.0-5 +- Bootstrap for Python 3.9 + +* Sat May 16 2020 Michel Alexandre Salim - 2.4.0-4 +- Fix syntax error test on Python 3.9 + +* Fri Apr 24 2020 Carl George - 2.4.0-3 +- Enable tests + +* Fri Apr 24 2020 Carl George - 2.4.0-2 +- Disable tests for EPEL8 bootstrap + +* Fri Apr 3 2020 Michel Alexandre Salim - 2.4.0-1 +- Update to 2.4.0 + +* Thu Feb 20 2020 Avram Lubkin - 2.3.0-18 +- Patch to remove unittest2 and traceback2 from source + +* Thu Jan 30 2020 Fedora Release Engineering - 2.3.0-17 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Jan 09 2020 Avram Lubkin - 2.3.0-16 +- Remove unittest2 dependency +- Remove traceback2 dependency + +* Thu Oct 03 2019 Miro Hrončok - 2.3.0-15 +- Subpackage python2-testtools has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + +* Thu Sep 26 2019 Miro Hrončok - 2.3.0-14 +- Reduce the build dependencies by not running tests on Python 2 + +* Thu Aug 15 2019 Miro Hrončok - 2.3.0-13 +- Rebuilt for Python 3.8 + +* Thu Aug 15 2019 Miro Hrončok - 2.3.0-12 +- Bootstrap for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 2.3.0-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sat Jun 15 2019 Michel Alexandre Salim - 2.3.0-11 +- Update project URL + +* Sat Feb 02 2019 Fedora Release Engineering - 2.3.0-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sat Jul 14 2018 Fedora Release Engineering - 2.3.0-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Mon Jun 18 2018 Miro Hrončok - 2.3.0-8 +- Rebuilt for Python 3.7 + +* Tue Jun 05 2018 Miro Hrončok - 2.3.0-7 +- Backport upstream patch for Python 3.7 support (#1577621) +- Use python2 explicitly + +* Fri Mar 09 2018 Iryna Shcherbina - 2.3.0-6 +- Update Python 2 dependency declarations to new packaging standards + (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) + +* Fri Feb 09 2018 Fedora Release Engineering - 2.3.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Fri Sep 29 2017 Troy Dawson - 2.3.0-4 +- Cleanup spec file conditionals + +* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek - 2.3.0-3 +- Python 2 binary package renamed to python2-testtools + See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 + +* Thu Jul 27 2017 Fedora Release Engineering - 2.3.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Wed Jun 14 2017 Haïkel Guémar - 2.3.0-1 +- Upstream 2.3.0 +- Refresh spec + +* Sat Feb 11 2017 Fedora Release Engineering - 1.8.0-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Fri Dec 09 2016 Charalampos Stratakis - 1.8.0-7 +- Rebuild for Python 3.6 + +* Tue Jul 19 2016 Fedora Release Engineering - 1.8.0-6 +- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages + +* Fri Jun 3 2016 Michel Alexandre Salim - 1.8.0-5 +- Add runtime dependency on traceback2 (bz#1251568) +- Bump required version of unittest2 (bz#1304326) + +* Thu Feb 04 2016 Fedora Release Engineering - 1.8.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Tue Nov 10 2015 Fedora Release Engineering - 1.8.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 + +* Tue Jul 28 2015 Michel Alexandre Salim - 1.8.0-2 +- Provide python2-testtools per updated guidelines + +* Tue Jul 28 2015 Michel Alexandre Salim - 1.8.0-1 +- Update to 1.8.0 + +* Thu Jun 18 2015 Fedora Release Engineering - 1.5.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Thu Nov 27 2014 Michel Alexandre Salim - 1.5.0-1 +- Update to 1.5.0 + +* Fri Sep 19 2014 Jerry James - 1.1.0-1 +- Update to 1.1.0 (bz 1132881) +- Fix license handling +- Note bundling exception for jquery in -doc + +* Sat Jun 07 2014 Fedora Release Engineering - 0.9.35-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Wed May 14 2014 Bohuslav Kabrda - 0.9.35-3 +- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4 + +* Fri Feb 28 2014 Matthias Runge - 0.9.35-2 +- re-enable building the python3-subpackage + +* Mon Feb 3 2014 Michel Salim - 0.9.35-1 +- Update to 0.9.35 + +* Sun Aug 04 2013 Fedora Release Engineering - 0.9.32-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Thu Jul 4 2013 Michel Salim - 0.9.32-2 +- Add new runtime dep on -extras to Python3 variant as well + +* Thu Jul 4 2013 Michel Salim - 0.9.32-1 +- Update to 0.9.32 +- Switch to using split-off extras package + +* Sat May 18 2013 Pádraig Brady - 0.9.30-1 +- Update to 0.9.30 + +* Thu Feb 07 2013 Pádraig Brady - 0.9.29-1 +- Update to 0.9.29 + +* Sat Oct 27 2012 Michel Alexandre Salim - 0.9.21-1 +- Update to 0.9.21 + +* Sat Oct 20 2012 Michel Salim - 0.9.19-1 +- Update to 0.9.19 +- On Fedora, also build for Python 3.x + +* Wed Sep 5 2012 Michel Salim - 0.9.16-1 +- Update to 0.9.16 +- Remove deprecated sections + +* Sat Jul 21 2012 Fedora Release Engineering - 0.9.15-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Fri May 11 2012 Michel Salim - 0.9.15-1 +- Update to 0.9.15 + +* Thu Apr 5 2012 Michel Salim - 0.9.14-1 +- Update to 0.9.14 +- Enable unit tests + +* Tue Feb 7 2012 Michel Salim - 0.9.13-1 +- Update to 0.9.13 + +* Tue Jan 31 2012 Michel Salim - 0.9.12-1 +- Update to 0.9.12 + +* Sat Jan 14 2012 Fedora Release Engineering - 0.9.11-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Fri Jul 15 2011 Michel Salim - 0.9.11-1 +- Update to 0.9.11 +- Enable documentation generation + +* Thu Apr 7 2011 Michel Salim - 0.9.8-2 +- Add definitions needed by older RPM versions + +* Thu Apr 7 2011 Michel Salim - 0.9.8-1 +- Initial package + +## END: Generated by rpmautospec