|
|
76ff05 |
# what it's called on pypi
|
|
|
76ff05 |
%global srcname testtools
|
|
|
76ff05 |
# what it's imported as
|
|
|
76ff05 |
%global libname %{srcname}
|
|
|
76ff05 |
# name of egg info directory
|
|
|
76ff05 |
%global eggname %{srcname}
|
|
|
76ff05 |
# package name fragment
|
|
|
76ff05 |
%global pkgname %{srcname}
|
|
|
76ff05 |
|
|
|
76ff05 |
%global common_description %{expand:
|
|
|
76ff05 |
testtools is a set of extensions to the Python standard library's unit testing
|
|
|
76ff05 |
framework.}
|
|
|
76ff05 |
|
|
|
76ff05 |
# To build this package in a new environment (i.e. a new EPEL branch), you'll
|
|
|
76ff05 |
# need to build in a particular order.
|
|
|
76ff05 |
#
|
|
|
76ff05 |
# 1. python-testtools with the tests disabled
|
|
|
76ff05 |
# 2. python-fixtures with the tests disabled
|
|
|
76ff05 |
# 3. python-testscenarios
|
|
|
76ff05 |
# 4. python-testtools and python-fixtures with tests enabled
|
|
|
76ff05 |
%bcond_with tests
|
|
|
76ff05 |
%bcond_without docs
|
|
|
76ff05 |
|
|
|
76ff05 |
Name: python-%{pkgname}
|
|
|
76ff05 |
Version: 2.4.0
|
|
|
76ff05 |
Release: 8%{?dist}
|
|
|
76ff05 |
Summary: Extensions to the Python unit testing framework
|
|
|
76ff05 |
|
|
|
76ff05 |
License: MIT
|
|
|
76ff05 |
URL: https://launchpad.net/testtools
|
|
|
76ff05 |
Source0: %pypi_source
|
|
|
76ff05 |
Patch0: testtools-2.4.0-remove_backports.patch
|
|
|
76ff05 |
# Reported as:
|
|
|
76ff05 |
# https://github.com/testing-cabal/testtools/pull/293
|
|
|
76ff05 |
Patch1: testtools-2.4.0-fix_py39_test.patch
|
|
|
76ff05 |
|
|
|
76ff05 |
BuildArch: noarch
|
|
|
76ff05 |
|
|
|
76ff05 |
%description %{common_description}
|
|
|
76ff05 |
|
|
|
76ff05 |
%package -n python3-%{pkgname}
|
|
|
76ff05 |
Summary: %{summary}
|
|
|
76ff05 |
BuildRequires: make
|
|
|
76ff05 |
BuildRequires: python3-devel
|
|
|
76ff05 |
BuildRequires: %{py3_dist setuptools extras python-mimeparse pbr}
|
|
|
76ff05 |
%if %{with tests}
|
|
|
76ff05 |
BuildRequires: %{py3_dist testscenarios}
|
|
|
76ff05 |
%endif
|
|
|
76ff05 |
%{?python_provide:%python_provide python3-%{pkgname}}
|
|
|
76ff05 |
|
|
|
76ff05 |
%description -n python3-%{pkgname} %{common_description}
|
|
|
76ff05 |
|
|
|
76ff05 |
%if %{with docs}
|
|
|
76ff05 |
%package doc
|
|
|
76ff05 |
BuildRequires: %{py3_dist sphinx}
|
|
|
76ff05 |
Summary: Documentation for %{name}
|
|
|
76ff05 |
|
|
|
76ff05 |
# https://fedoraproject.org/wiki/Packaging:No_Bundled_Libraries#Packages_granted_temporary_exceptions
|
|
|
76ff05 |
Provides: bundled(jquery)
|
|
|
76ff05 |
|
|
|
76ff05 |
%description doc
|
|
|
76ff05 |
This package contains HTML documentation for %{name}.
|
|
|
76ff05 |
%endif
|
|
|
76ff05 |
|
|
|
76ff05 |
|
|
|
76ff05 |
%prep
|
|
|
76ff05 |
%autosetup -p 1 -n %{srcname}-%{version}
|
|
|
76ff05 |
rm -rf %{eggname}.egg-info
|
|
|
76ff05 |
rm testtools/_compat2x.py
|
|
|
76ff05 |
|
|
|
76ff05 |
|
|
|
76ff05 |
%build
|
|
|
76ff05 |
%py3_build
|
|
|
76ff05 |
|
|
|
76ff05 |
%if %{with docs}
|
|
|
76ff05 |
PYTHONPATH=$PWD make -C doc html
|
|
|
76ff05 |
%endif
|
|
|
76ff05 |
|
|
|
76ff05 |
|
|
|
76ff05 |
%install
|
|
|
76ff05 |
%py3_install
|
|
|
76ff05 |
|
|
|
76ff05 |
|
|
|
76ff05 |
%if %{with tests}
|
|
|
76ff05 |
%check
|
|
|
76ff05 |
make PYTHON=%{__python3} check
|
|
|
76ff05 |
%endif
|
|
|
76ff05 |
|
|
|
76ff05 |
%files -n python3-%{pkgname}
|
|
|
76ff05 |
%doc NEWS README.rst
|
|
|
76ff05 |
%license LICENSE
|
|
|
76ff05 |
%{python3_sitelib}/%{libname}
|
|
|
76ff05 |
%{python3_sitelib}/%{eggname}-%{version}-py%{python3_version}.egg-info
|
|
|
76ff05 |
|
|
|
76ff05 |
%if %{with docs}
|
|
|
76ff05 |
%files doc
|
|
|
76ff05 |
%doc doc/_build/html/*
|
|
|
76ff05 |
%endif
|
|
|
76ff05 |
|
|
|
76ff05 |
|
|
|
76ff05 |
%changelog
|
|
|
76ff05 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-8
|
|
|
76ff05 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
76ff05 |
|
|
|
76ff05 |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-7
|
|
|
76ff05 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
76ff05 |
|
|
|
76ff05 |
* Fri May 22 2020 Miro Hrončok <mhroncok@redhat.com> - 2.4.0-6
|
|
|
76ff05 |
- Rebuilt for Python 3.9
|
|
|
76ff05 |
|
|
|
76ff05 |
* Fri May 22 2020 Miro Hrončok <mhroncok@redhat.com> - 2.4.0-5
|
|
|
76ff05 |
- Bootstrap for Python 3.9
|
|
|
76ff05 |
|
|
|
76ff05 |
* Sat May 16 2020 Michel Alexandre Salim <salimma@fedoraproject.org> - 2.4.0-4
|
|
|
76ff05 |
- Fix syntax error test on Python 3.9
|
|
|
76ff05 |
|
|
|
76ff05 |
* Fri Apr 24 2020 Carl George <carl@george.computer> - 2.4.0-3
|
|
|
76ff05 |
- Enable tests
|
|
|
76ff05 |
|
|
|
76ff05 |
* Fri Apr 24 2020 Carl George <carl@george.computer> - 2.4.0-2
|
|
|
76ff05 |
- Disable tests for EPEL8 bootstrap
|
|
|
76ff05 |
|
|
|
76ff05 |
* Fri Apr 3 2020 Michel Alexandre Salim <salimma@fedoraproject.org> - 2.4.0-1
|
|
|
76ff05 |
- Update to 2.4.0
|
|
|
76ff05 |
|
|
|
76ff05 |
* Thu Feb 20 2020 Avram Lubkin <aviso@rockhopper.net> - 2.3.0-18
|
|
|
76ff05 |
- Patch to remove unittest2 and traceback2 from source
|
|
|
76ff05 |
|
|
|
76ff05 |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-17
|
|
|
76ff05 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
76ff05 |
|
|
|
76ff05 |
* Thu Jan 09 2020 Avram Lubkin <aviso@rockhopper.net> - 2.3.0-16
|
|
|
76ff05 |
- Remove unittest2 dependency
|
|
|
76ff05 |
- Remove traceback2 dependency
|
|
|
76ff05 |
|
|
|
76ff05 |
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.3.0-15
|
|
|
76ff05 |
- Subpackage python2-testtools has been removed
|
|
|
76ff05 |
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
|
|
76ff05 |
|
|
|
76ff05 |
* Thu Sep 26 2019 Miro Hrončok <mhroncok@redhat.com> - 2.3.0-14
|
|
|
76ff05 |
- Reduce the build dependencies by not running tests on Python 2
|
|
|
76ff05 |
|
|
|
76ff05 |
* Thu Aug 15 2019 Miro Hrončok <mhroncok@redhat.com> - 2.3.0-13
|
|
|
76ff05 |
- Rebuilt for Python 3.8
|
|
|
76ff05 |
|
|
|
76ff05 |
* Thu Aug 15 2019 Miro Hrončok <mhroncok@redhat.com> - 2.3.0-12
|
|
|
76ff05 |
- Bootstrap for Python 3.8
|
|
|
76ff05 |
|
|
|
76ff05 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-11
|
|
|
76ff05 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
76ff05 |
|
|
|
76ff05 |
* Sat Jun 15 2019 Michel Alexandre Salim <salimma@fedoraproject.org> - 2.3.0-11
|
|
|
76ff05 |
- Update project URL
|
|
|
76ff05 |
|
|
|
76ff05 |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-10
|
|
|
76ff05 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
76ff05 |
|
|
|
76ff05 |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-9
|
|
|
76ff05 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
76ff05 |
|
|
|
76ff05 |
* Mon Jun 18 2018 Miro Hrončok <mhroncok@redhat.com> - 2.3.0-8
|
|
|
76ff05 |
- Rebuilt for Python 3.7
|
|
|
76ff05 |
|
|
|
76ff05 |
* Tue Jun 05 2018 Miro Hrončok <mhroncok@redhat.com> - 2.3.0-7
|
|
|
76ff05 |
- Backport upstream patch for Python 3.7 support (#1577621)
|
|
|
76ff05 |
- Use python2 explicitly
|
|
|
76ff05 |
|
|
|
76ff05 |
* Fri Mar 09 2018 Iryna Shcherbina <ishcherb@redhat.com> - 2.3.0-6
|
|
|
76ff05 |
- Update Python 2 dependency declarations to new packaging standards
|
|
|
76ff05 |
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
|
76ff05 |
|
|
|
76ff05 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-5
|
|
|
76ff05 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
76ff05 |
|
|
|
76ff05 |
* Fri Sep 29 2017 Troy Dawson <tdawson@redhat.com> - 2.3.0-4
|
|
|
76ff05 |
- Cleanup spec file conditionals
|
|
|
76ff05 |
|
|
|
76ff05 |
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.3.0-3
|
|
|
76ff05 |
- Python 2 binary package renamed to python2-testtools
|
|
|
76ff05 |
See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
|
|
|
76ff05 |
|
|
|
76ff05 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-2
|
|
|
76ff05 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
76ff05 |
|
|
|
76ff05 |
* Wed Jun 14 2017 Haïkel Guémar <hguemar@fedoraproject.org> - 2.3.0-1
|
|
|
76ff05 |
- Upstream 2.3.0
|
|
|
76ff05 |
- Refresh spec
|
|
|
76ff05 |
|
|
|
76ff05 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.0-8
|
|
|
76ff05 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
76ff05 |
|
|
|
76ff05 |
* Fri Dec 09 2016 Charalampos Stratakis <cstratak@redhat.com> - 1.8.0-7
|
|
|
76ff05 |
- Rebuild for Python 3.6
|
|
|
76ff05 |
|
|
|
76ff05 |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.0-6
|
|
|
76ff05 |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
76ff05 |
|
|
|
76ff05 |
* Fri Jun 3 2016 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.8.0-5
|
|
|
76ff05 |
- Add runtime dependency on traceback2 (bz#1251568)
|
|
|
76ff05 |
- Bump required version of unittest2 (bz#1304326)
|
|
|
76ff05 |
|
|
|
76ff05 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.0-4
|
|
|
76ff05 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
76ff05 |
|
|
|
76ff05 |
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.0-3
|
|
|
76ff05 |
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
|
76ff05 |
|
|
|
76ff05 |
* Tue Jul 28 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.8.0-2
|
|
|
76ff05 |
- Provide python2-testtools per updated guidelines
|
|
|
76ff05 |
|
|
|
76ff05 |
* Tue Jul 28 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.8.0-1
|
|
|
76ff05 |
- Update to 1.8.0
|
|
|
76ff05 |
|
|
|
76ff05 |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.0-2
|
|
|
76ff05 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
76ff05 |
|
|
|
76ff05 |
* Thu Nov 27 2014 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.5.0-1
|
|
|
76ff05 |
- Update to 1.5.0
|
|
|
76ff05 |
|
|
|
76ff05 |
* Fri Sep 19 2014 Jerry James <loganjerry@gmail.com> - 1.1.0-1
|
|
|
76ff05 |
- Update to 1.1.0 (bz 1132881)
|
|
|
76ff05 |
- Fix license handling
|
|
|
76ff05 |
- Note bundling exception for jquery in -doc
|
|
|
76ff05 |
|
|
|
76ff05 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.35-4
|
|
|
76ff05 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
76ff05 |
|
|
|
76ff05 |
* Wed May 14 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 0.9.35-3
|
|
|
76ff05 |
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
|
|
|
76ff05 |
|
|
|
76ff05 |
* Fri Feb 28 2014 Matthias Runge <mrunge@redhat.com> - 0.9.35-2
|
|
|
76ff05 |
- re-enable building the python3-subpackage
|
|
|
76ff05 |
|
|
|
76ff05 |
* Mon Feb 3 2014 Michel Salim <salimma@fedoraproject.org> - 0.9.35-1
|
|
|
76ff05 |
- Update to 0.9.35
|
|
|
76ff05 |
|
|
|
76ff05 |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.32-3
|
|
|
76ff05 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
76ff05 |
|
|
|
76ff05 |
* Thu Jul 4 2013 Michel Salim <salimma@fedoraproject.org> - 0.9.32-2
|
|
|
76ff05 |
- Add new runtime dep on -extras to Python3 variant as well
|
|
|
76ff05 |
|
|
|
76ff05 |
* Thu Jul 4 2013 Michel Salim <salimma@fedoraproject.org> - 0.9.32-1
|
|
|
76ff05 |
- Update to 0.9.32
|
|
|
76ff05 |
- Switch to using split-off extras package
|
|
|
76ff05 |
|
|
|
76ff05 |
* Sat May 18 2013 Pádraig Brady <pbrady@redhat.com> - 0.9.30-1
|
|
|
76ff05 |
- Update to 0.9.30
|
|
|
76ff05 |
|
|
|
76ff05 |
* Thu Feb 07 2013 Pádraig Brady <pbrady@redhat.com> - 0.9.29-1
|
|
|
76ff05 |
- Update to 0.9.29
|
|
|
76ff05 |
|
|
|
76ff05 |
* Sat Oct 27 2012 Michel Alexandre Salim <michel@sojourner> - 0.9.21-1
|
|
|
76ff05 |
- Update to 0.9.21
|
|
|
76ff05 |
|
|
|
76ff05 |
* Sat Oct 20 2012 Michel Salim <salimma@fedoraproject.org> - 0.9.19-1
|
|
|
76ff05 |
- Update to 0.9.19
|
|
|
76ff05 |
- On Fedora, also build for Python 3.x
|
|
|
76ff05 |
|
|
|
76ff05 |
* Wed Sep 5 2012 Michel Salim <salimma@fedoraproject.org> - 0.9.16-1
|
|
|
76ff05 |
- Update to 0.9.16
|
|
|
76ff05 |
- Remove deprecated sections
|
|
|
76ff05 |
|
|
|
76ff05 |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.15-2
|
|
|
76ff05 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
76ff05 |
|
|
|
76ff05 |
* Fri May 11 2012 Michel Salim <salimma@fedoraproject.org> - 0.9.15-1
|
|
|
76ff05 |
- Update to 0.9.15
|
|
|
76ff05 |
|
|
|
76ff05 |
* Thu Apr 5 2012 Michel Salim <salimma@fedoraproject.org> - 0.9.14-1
|
|
|
76ff05 |
- Update to 0.9.14
|
|
|
76ff05 |
- Enable unit tests
|
|
|
76ff05 |
|
|
|
76ff05 |
* Tue Feb 7 2012 Michel Salim <salimma@fedoraproject.org> - 0.9.13-1
|
|
|
76ff05 |
- Update to 0.9.13
|
|
|
76ff05 |
|
|
|
76ff05 |
* Tue Jan 31 2012 Michel Salim <salimma@fedoraproject.org> - 0.9.12-1
|
|
|
76ff05 |
- Update to 0.9.12
|
|
|
76ff05 |
|
|
|
76ff05 |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.11-2
|
|
|
76ff05 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
76ff05 |
|
|
|
76ff05 |
* Fri Jul 15 2011 Michel Salim <salimma@fedoraproject.org> - 0.9.11-1
|
|
|
76ff05 |
- Update to 0.9.11
|
|
|
76ff05 |
- Enable documentation generation
|
|
|
76ff05 |
|
|
|
76ff05 |
* Thu Apr 7 2011 Michel Salim <salimma@fedoraproject.org> - 0.9.8-2
|
|
|
76ff05 |
- Add definitions needed by older RPM versions
|
|
|
76ff05 |
|
|
|
76ff05 |
* Thu Apr 7 2011 Michel Salim <salimma@fedoraproject.org> - 0.9.8-1
|
|
|
76ff05 |
- Initial package
|