715ccb8
%global srcname ddt
0697fc7
%global common_description %{expand:
0697fc7
DDT (Data-Driven Tests) allows you to multiply one test case by running it with
c203ef4
different test data, and make it appear as multiple test cases.}
0697fc7
91643ea
%bcond_without  tests
91643ea
0697fc7
4dace79
Name:           python-%{srcname}
073c786
Version:        1.6.0
698d75e
Release:        7%{?dist}
715ccb8
Summary:        Python library to multiply test cases
715ccb8
License:        MIT
6333d98
URL:            https://github.com/datadriventests/ddt
c203ef4
Source:         %pypi_source
715ccb8
BuildArch:      noarch
4dace79
BuildRequires:  python3-devel
4dace79
%if %{with tests}
4dace79
BuildRequires:  python3-pytest
4dace79
BuildRequires:  python3-pyyaml
4dace79
BuildRequires:  python3-six
4dace79
%endif
Carl George e63658a
Carl George e63658a
0697fc7
%description %{common_description}
0697fc7
0697fc7
4dace79
%package -n python3-%{srcname}
715ccb8
Summary:        %{summary}
0697fc7
Carl George e63658a
4dace79
%description -n python3-%{srcname} %{common_description}
Carl George e63658a
Carl George e63658a
Carl George e63658a
%prep
724fc75
%autosetup -n %{srcname}-%{version} -p 1
4dace79
4dace79
4dace79
%generate_buildrequires
4dace79
%pyproject_buildrequires
0697fc7
Carl George e63658a
Carl George e63658a
%build
4dace79
%pyproject_wheel
Carl George e63658a
0697fc7
Carl George e63658a
%install
4dace79
%pyproject_install
4dace79
%pyproject_save_files %{srcname}
Carl George e63658a
0697fc7
Carl George e63658a
%check
4dace79
%if %{with tests}
4dace79
%pytest
4dace79
%else
4dace79
%pyproject_check_import
91643ea
%endif
0697fc7
Carl George e63658a
4dace79
%files -n python3-%{srcname} -f %{pyproject_files}
Carl George e63658a
%doc README.md
0697fc7
Carl George e63658a
Carl George e63658a
%changelog
698d75e
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.0-7
698d75e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
698d75e
7435589
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.0-6
7435589
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
7435589
d190e08
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.0-5
d190e08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
d190e08
e0dac4e
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 1.6.0-4
e0dac4e
- Rebuilt for Python 3.12
e0dac4e
2080dd0
* Wed Jun 07 2023 Jan Friesse <jfriesse@redhat.com> - 1.6.0-3
2080dd0
- migrated to SPDX license
2080dd0
89b96fe
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.0-2
89b96fe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
89b96fe
073c786
* Mon Aug 22 2022 Joel Capitao <jcapitao@redhat.com> - 1.6.0-1
073c786
- Latest upstream, resolves: rhbz#2089550
073c786
710cf31
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.4-3
710cf31
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
710cf31
460a19a
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1.4.4-2
460a19a
- Rebuilt for Python 3.11
460a19a
c203ef4
* Thu Apr 21 2022 Carl George <carl@george.computer> - 1.4.4-1
c203ef4
- Latest upstream, resolves: rhbz#1938360
4dace79
- Convert to pyproject macros
c203ef4
1e4569f
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.2-5
1e4569f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
1e4569f
add8365
* Tue Jul 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.2-4
add8365
- Second attempt - Rebuilt for
add8365
  https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
add8365
1ed240f
* Thu Jun 10 2021 Stephen Gallagher <sgallagh@redhat.com> - 1.4.2-3
1ed240f
- Fix missing %%dist
1ed240f
000d3f0
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.4.2-2
000d3f0
- Rebuilt for Python 3.10
000d3f0
1f1479e
* Wed Apr 21 2021 Joel Capitao <jcapitao@redhat.com> - 1.4.2-1
1f1479e
- Latest upstream rhbz#1938360
1f1479e
4979837
* Fri Feb 05 2021 Carl George <carl@george.computer> - 1.4.1-5
4979837
- Fix FTBFS with PyYAML 5.4.1 rhbz#1917364
4979837
f33248f
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.1-4
f33248f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
f33248f
751f40d
* Tue Dec 08 2020 Miro Hrončok <mhroncok@redhat.com> - 1.4.1-3
751f40d
- BuildRequire six explicitly, it's used in tests
751f40d
5ec4e4c
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.1-2
5ec4e4c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
5ec4e4c
91643ea
* Sat Jun 06 2020 Carl George <carl@george.computer> - 1.4.1-1
91643ea
- Latest upstream rhbz#1778594
91643ea
5bf2b27
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.2.1-7
5bf2b27
- Rebuilt for Python 3.9
5bf2b27
6990b69
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-6
6990b69
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
6990b69
724fc75
* Fri Oct 18 2019 Carl George <carl@george.computer> - 1.2.1-5
724fc75
- Add patch0 to use mock from the standard library
724fc75
d686e97
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.2.1-4
d686e97
- Rebuilt for Python 3.8.0rc1 (#1748018)
d686e97
845d732
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.2.1-3
845d732
- Rebuilt for Python 3.8
845d732
76d0e6b
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-2
76d0e6b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
76d0e6b
6333d98
* Thu Mar 07 2019 Carl George <carl@george.computer> - 1.2.1-1
6333d98
- Latest upstream
b9d7975
- Disable py2 subpackage on f30+ and el8+
6333d98
ff13bb0
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-2
ff13bb0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
ff13bb0
d713756
* Sun Sep 02 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.2.0-1
d713756
- Update to 1.2.0
d713756
c237165
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.3-3
c237165
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
c237165
a21826b
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.1.3-2
a21826b
- Rebuilt for Python 3.7
a21826b
033cda6
* Mon May 14 2018 Carl George <carl@george.computer> - 1.1.3-1
033cda6
- Latest upstream
033cda6
947699a
* Wed Mar 07 2018 Carl George <carl@george.computer> - 1.1.2-1
947699a
- Latest upstream
947699a
- Enable EPEL python3 subpackage
947699a
97b5a65
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-5
97b5a65
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
97b5a65
71e4f6a
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-4
71e4f6a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
71e4f6a
530e083
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-3
530e083
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
530e083
7f74c39
* Thu Dec 29 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 1.1.1-2
7f74c39
- Add EPEL7 conditionals
7f74c39
715ccb8
* Wed Dec 28 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 1.1.1-1
715ccb8
- Update to 1.1.1
715ccb8
- Modernize spec
715ccb8
1760537
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.0.2-3
1760537
- Rebuild for Python 3.6
1760537
0bb9d96
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-2
0bb9d96
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
0bb9d96
Carl George 21ac352
* Fri May 20 2016 Carl George <carl.george@rackspace.com> - 1.0.2-1
Carl George 21ac352
- Latest upstream
Carl George 21ac352
99b1e33
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-3
99b1e33
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
99b1e33
Carl George ea1102b
* Sat Dec 05 2015 Carl George <carl.george@rackspace.com> - 1.0.1-2
Carl George ea1102b
- Remove coverage build dependency
Carl George ea1102b
- Change python3 control macros to a bcond macro
Carl George ea1102b
- Add bcond macro to optionally require explicit python2 names
Carl George ea1102b
Carl George 548d2a3
* Thu Nov 19 2015 Carl George <carl.george@rackspace.com> - 1.0.1-1
Carl George 548d2a3
- Latest upstream
Carl George 548d2a3
bd0d221
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-4
bd0d221
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
bd0d221
Carl George b7b77d1
* Tue Sep 01 2015 Carl George <carl.george@rackspace.com> - 1.0.0-3
Carl George b7b77d1
- Update to new packaging guidelines
Carl George b7b77d1
Carl George e63658a
* Mon Jul 20 2015 Carl George <carl.george@rackspace.com> - 1.0.0-2
Carl George e63658a
- Remove separate py3 build directory
Carl George e63658a
- Update summary and description
Carl George e63658a
- Use a common license and documentation directories between PY2/3 packages
Carl George e63658a
Carl George e63658a
* Thu Jul 16 2015 Carl George <carl.george@rackspace.com> - 1.0.0-1
Carl George e63658a
- Initial spec file