amoralej / rpms / python-ddt

Forked from rpms/python-ddt 3 years ago
Clone

Blame SPECS/python-ddt.spec

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