Blame SPECS/python-ddt.spec

18d78d
# what it's called on pypi
18d78d
%global srcname ddt
18d78d
# what it's imported as
18d78d
%global libname %{srcname}
18d78d
# name of egg info directory
18d78d
%global eggname %{srcname}
18d78d
# package name fragment
18d78d
%global pkgname %{srcname}
18d78d
18d78d
%global common_description %{expand:
18d78d
DDT (Data-Driven Tests) allows you to multiply one test case by running it with
18d78d
different test data, and make it appear as multiple test cases. It is used in
18d78d
combination with other testing frameworks like unittest and nose.}
18d78d
18d78d
%bcond_without  tests
18d78d
18d78d
18d78d
Name:           python-%{pkgname}
18d78d
Version:        1.4.2
18d78d
Release:        1
18d78d
Summary:        Python library to multiply test cases
18d78d
License:        MIT
18d78d
URL:            https://github.com/datadriventests/ddt
18d78d
Source0:        %pypi_source
18d78d
BuildArch:      noarch
18d78d
18d78d
18d78d
%description %{common_description}
18d78d
18d78d
18d78d
%package -n python3-%{pkgname}
18d78d
Summary:        %{summary}
18d78d
BuildRequires:  python3-devel
18d78d
BuildRequires:  %{py3_dist setuptools}
18d78d
%if %{with tests}
18d78d
BuildRequires:  %{py3_dist pytest pyyaml six}
18d78d
%endif
18d78d
%{?python_provide:%python_provide python3-%{pkgname}}
18d78d
18d78d
18d78d
%description -n python3-%{pkgname} %{common_description}
18d78d
18d78d
18d78d
%prep
18d78d
%autosetup -n %{srcname}-%{version} -p 1
18d78d
rm -rf %{eggname}.egg-info
18d78d
18d78d
18d78d
%build
18d78d
%py3_build
18d78d
18d78d
18d78d
%install
18d78d
%py3_install
18d78d
18d78d
18d78d
%if %{with tests}
18d78d
%check
18d78d
%pytest --verbose
18d78d
%endif
18d78d
18d78d
18d78d
%files -n python3-%{pkgname}
18d78d
%license LICENSE.md
18d78d
%doc README.md
18d78d
%pycached %{python3_sitelib}/%{libname}.py
18d78d
%{python3_sitelib}/%{eggname}-%{version}-py%{python3_version}.egg-info
18d78d
18d78d
18d78d
%changelog
18d78d
* Wed Apr 21 2021 Joel Capitao <jcapitao@redhat.com> - 1.4.2-1
18d78d
- Latest upstream rhbz#1938360
18d78d
18d78d
* Fri Feb 05 2021 Carl George <carl@george.computer> - 1.4.1-5
18d78d
- Fix FTBFS with PyYAML 5.4.1 rhbz#1917364
18d78d
18d78d
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.1-4
18d78d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
18d78d
18d78d
* Tue Dec 08 2020 Miro Hrončok <mhroncok@redhat.com> - 1.4.1-3
18d78d
- BuildRequire six explicitly, it's used in tests
18d78d
18d78d
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.1-2
18d78d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
18d78d
18d78d
* Sat Jun 06 2020 Carl George <carl@george.computer> - 1.4.1-1
18d78d
- Latest upstream rhbz#1778594
18d78d
18d78d
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.2.1-7
18d78d
- Rebuilt for Python 3.9
18d78d
18d78d
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-6
18d78d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
18d78d
18d78d
* Fri Oct 18 2019 Carl George <carl@george.computer> - 1.2.1-5
18d78d
- Add patch0 to use mock from the standard library
18d78d
18d78d
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.2.1-4
18d78d
- Rebuilt for Python 3.8.0rc1 (#1748018)
18d78d
18d78d
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.2.1-3
18d78d
- Rebuilt for Python 3.8
18d78d
18d78d
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-2
18d78d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
18d78d
18d78d
* Thu Mar 07 2019 Carl George <carl@george.computer> - 1.2.1-1
18d78d
- Latest upstream
18d78d
- Disable py2 subpackage on f30+ and el8+
18d78d
18d78d
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-2
18d78d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
18d78d
18d78d
* Sun Sep 02 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.2.0-1
18d78d
- Update to 1.2.0
18d78d
18d78d
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.3-3
18d78d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
18d78d
18d78d
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.1.3-2
18d78d
- Rebuilt for Python 3.7
18d78d
18d78d
* Mon May 14 2018 Carl George <carl@george.computer> - 1.1.3-1
18d78d
- Latest upstream
18d78d
18d78d
* Wed Mar 07 2018 Carl George <carl@george.computer> - 1.1.2-1
18d78d
- Latest upstream
18d78d
- Enable EPEL python3 subpackage
18d78d
18d78d
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-5
18d78d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
18d78d
18d78d
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-4
18d78d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
18d78d
18d78d
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-3
18d78d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
18d78d
18d78d
* Thu Dec 29 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 1.1.1-2
18d78d
- Add EPEL7 conditionals
18d78d
18d78d
* Wed Dec 28 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 1.1.1-1
18d78d
- Update to 1.1.1
18d78d
- Modernize spec
18d78d
18d78d
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.0.2-3
18d78d
- Rebuild for Python 3.6
18d78d
18d78d
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-2
18d78d
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
18d78d
18d78d
* Fri May 20 2016 Carl George <carl.george@rackspace.com> - 1.0.2-1
18d78d
- Latest upstream
18d78d
18d78d
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-3
18d78d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
18d78d
18d78d
* Sat Dec 05 2015 Carl George <carl.george@rackspace.com> - 1.0.1-2
18d78d
- Remove coverage build dependency
18d78d
- Change python3 control macros to a bcond macro
18d78d
- Add bcond macro to optionally require explicit python2 names
18d78d
18d78d
* Thu Nov 19 2015 Carl George <carl.george@rackspace.com> - 1.0.1-1
18d78d
- Latest upstream
18d78d
18d78d
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-4
18d78d
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
18d78d
18d78d
* Tue Sep 01 2015 Carl George <carl.george@rackspace.com> - 1.0.0-3
18d78d
- Update to new packaging guidelines
18d78d
18d78d
* Mon Jul 20 2015 Carl George <carl.george@rackspace.com> - 1.0.0-2
18d78d
- Remove separate py3 build directory
18d78d
- Update summary and description
18d78d
- Use a common license and documentation directories between PY2/3 packages
18d78d
18d78d
* Thu Jul 16 2015 Carl George <carl.george@rackspace.com> - 1.0.0-1
18d78d
- Initial spec file