Blame SPECS/python-testscenarios.spec

32e043
%global pypi_name testscenarios
32e043
32e043
Name:           python-%{pypi_name}
32e043
Version:        0.5.0
32e043
Release:        21%{?dist}
32e043
Summary:        Testscenarios, a pyunit extension for dependency injection
32e043
32e043
License:        ASL 2.0 and BSD
32e043
URL:            https://launchpad.net/testscenarios
32e043
Source0:        https://pypi.python.org/packages/source/t/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
32e043
BuildArch:      noarch
32e043
32e043
BuildRequires:  python3-devel
32e043
BuildRequires:  python3-fixtures
32e043
BuildRequires:  python3-setuptools
32e043
BuildRequires:  python3-pbr
32e043
BuildRequires:  python3-testtools
32e043
32e043
%global _description\
32e043
testscenarios provides clean dependency injection for python unittest style\
32e043
tests. This can be used for interface testing (testing many implementations via\
32e043
a single test suite) or for classic dependency injection (provide tests with\
32e043
dependencies externally to the test code itself, allowing easy testing in\
32e043
different situations).
32e043
32e043
%description %_description
32e043
32e043
%package -n python3-%{pypi_name}
32e043
Summary:        Testscenarios, a pyunit extension for dependency injection
32e043
Requires:       python3-pbr
32e043
Requires:       python3-testtools
32e043
32e043
%description -n python3-%{pypi_name}
32e043
testscenarios provides clean dependency injection for python unittest style
32e043
tests. This can be used for interface testing (testing many implementations via
32e043
a single test suite) or for classic dependency injection (provide tests with
32e043
dependencies externally to the test code itself, allowing easy testing in
32e043
different situations).
32e043
32e043
%prep
32e043
%setup -q -n %{pypi_name}-%{version}
32e043
# Remove bundled egg-info
32e043
rm -rf %{pypi_name}.egg-info
32e043
# Remove unknown test options from setup.py
32e043
sed -i '/^buffer = 1$/d' setup.cfg
32e043
sed -i '/^catch = 1$/d' setup.cfg
32e043
32e043
%build
32e043
%py3_build
32e043
32e043
32e043
%install
32e043
%py3_install
32e043
32e043
%check
32e043
%{__python3} setup.py test
32e043
32e043
%files -n python3-%{pypi_name}
32e043
%license Apache-2.0 BSD
32e043
%doc GOALS HACKING NEWS README doc/
32e043
%{python3_sitelib}/*
32e043
32e043
%changelog
32e043
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-21
32e043
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
32e043
32e043
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-20
32e043
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
32e043
32e043
* Fri May 22 2020 Miro Hrončok <mhroncok@redhat.com> - 0.5.0-19
32e043
- Rebuilt for Python 3.9
32e043
32e043
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-18
32e043
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
32e043
32e043
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.5.0-17
32e043
- Subpackage python2-testscenarios has been removed
32e043
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
32e043
32e043
* Thu Aug 15 2019 Miro Hrončok <mhroncok@redhat.com> - 0.5.0-16
32e043
- Rebuilt for Python 3.8
32e043
32e043
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-15
32e043
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
32e043
32e043
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-14
32e043
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
32e043
32e043
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-13
32e043
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
32e043
32e043
* Thu Jun 21 2018 Lumír Balhar <lbalhar@redhat.com> - 0.5.0-12
32e043
- Added tests
32e043
- Fixed dependencies
32e043
- Improved and modernized specfile
32e043
32e043
* Thu Jun 14 2018 Miro Hrončok <mhroncok@redhat.com> - 0.5.0-11
32e043
- Rebuilt for Python 3.7
32e043
32e043
* Mon Feb 12 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.5.0-10
32e043
- Update Python 2 dependency declarations to new packaging standards
32e043
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
32e043
32e043
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-9
32e043
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
32e043
32e043
* Fri Sep 29 2017 Troy Dawson <tdawson@redhat.com> - 0.5.0-8
32e043
- Cleanup spec file conditionals
32e043
32e043
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.5.0-7
32e043
- Python 2 binary package renamed to python2-testscenarios
32e043
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
32e043
32e043
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-6
32e043
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
32e043
32e043
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-5
32e043
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
32e043
32e043
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.5.0-4
32e043
- Rebuild for Python 3.6
32e043
32e043
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-3
32e043
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
32e043
32e043
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-2
32e043
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
32e043
32e043
* Fri Nov 20 2015 Matthias Runge <mrunge@redhat.com> - 0.5.0-1
32e043
- update to 0.5.0
32e043
32e043
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4-7
32e043
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
32e043
32e043
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4-6
32e043
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
32e043
32e043
* Fri Apr 03 2015 Ken Dreyer <ktdreyer@ktdreyer.com> - 0.4-5
32e043
- Add python3 support (RHBZ #1208889)
32e043
32e043
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4-4
32e043
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
32e043
32e043
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4-3
32e043
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
32e043
32e043
* Tue May 21 2013 Matthias Runge <mrunge@redhat.com> - 0.4-2
32e043
- correct License: ASL 2.0 and BSD
32e043
- include doc files
32e043
32e043
* Fri May 17 2013 Matthias Runge <mrunge@redhat.com> - 0.4-1
32e043
- Initial package.