From 8b4ec52378c8c6158a2e6f881a8a6d7d2cd05ccb Mon Sep 17 00:00:00 2001 From: eabdullin Date: Tue, 13 Dec 2022 08:49:19 +0300 Subject: [PATCH] Initial commit --- .gitignore | 1 + .python-ddt.metadata | 1 + SPECS/python-ddt.spec | 187 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 189 insertions(+) create mode 100644 .gitignore create mode 100644 .python-ddt.metadata create mode 100644 SPECS/python-ddt.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a98b880 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/ddt-1.4.4.tar.gz diff --git a/.python-ddt.metadata b/.python-ddt.metadata new file mode 100644 index 0000000..e7649a1 --- /dev/null +++ b/.python-ddt.metadata @@ -0,0 +1 @@ +0f535c1a044cc866876b434fd590ad9e8a765d19 SOURCES/ddt-1.4.4.tar.gz diff --git a/SPECS/python-ddt.spec b/SPECS/python-ddt.spec new file mode 100644 index 0000000..8c264e3 --- /dev/null +++ b/SPECS/python-ddt.spec @@ -0,0 +1,187 @@ +%global srcname ddt +%global common_description %{expand: +DDT (Data-Driven Tests) allows you to multiply one test case by running it with +different test data, and make it appear as multiple test cases.} + +%bcond_without tests + + +Name: python-%{srcname} +Version: 1.4.4 +Release: 1%{?dist} +Summary: Python library to multiply test cases +License: MIT +URL: https://github.com/datadriventests/ddt +Source: %pypi_source +BuildArch: noarch +BuildRequires: python3-devel +%if %{with tests} +BuildRequires: python3-pytest +BuildRequires: python3-pyyaml +BuildRequires: python3-six +%endif + +Requires: python3 + + +%description %{common_description} + + +%package -n python3-%{srcname} +Summary: %{summary} + + +%description -n python3-%{srcname} %{common_description} + + +%prep +%autosetup -n %{srcname}-%{version} -p 1 + + +%build +%pyproject_wheel + + +%install +%pyproject_install +%pyproject_save_files %{srcname} + + +%check +%if %{with tests} +%pytest +%else +%pyproject_check_import +%endif + + +%files -n python3-%{srcname} -f %{pyproject_files} +%doc README.md + + +%changelog +* Thu Apr 21 2022 Carl George - 1.4.4-1 +- Latest upstream, resolves: rhbz#1938360 +- Convert to pyproject macros + +* Fri Jan 21 2022 Fedora Release Engineering - 1.4.2-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Tue Jul 27 2021 Fedora Release Engineering - 1.4.2-4 +- Second attempt - Rebuilt for + https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Thu Jun 10 2021 Stephen Gallagher - 1.4.2-3 +- Fix missing %%dist + +* Fri Jun 04 2021 Python Maint - 1.4.2-2 +- Rebuilt for Python 3.10 + +* Wed Apr 21 2021 Joel Capitao - 1.4.2-1 +- Latest upstream rhbz#1938360 + +* Fri Feb 05 2021 Carl George - 1.4.1-5 +- Fix FTBFS with PyYAML 5.4.1 rhbz#1917364 + +* Wed Jan 27 2021 Fedora Release Engineering - 1.4.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Dec 08 2020 Miro Hrončok - 1.4.1-3 +- BuildRequire six explicitly, it's used in tests + +* Wed Jul 29 2020 Fedora Release Engineering - 1.4.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Sat Jun 06 2020 Carl George - 1.4.1-1 +- Latest upstream rhbz#1778594 + +* Tue May 26 2020 Miro Hrončok - 1.2.1-7 +- Rebuilt for Python 3.9 + +* Thu Jan 30 2020 Fedora Release Engineering - 1.2.1-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Fri Oct 18 2019 Carl George - 1.2.1-5 +- Add patch0 to use mock from the standard library + +* Thu Oct 03 2019 Miro Hrončok - 1.2.1-4 +- Rebuilt for Python 3.8.0rc1 (#1748018) + +* Mon Aug 19 2019 Miro Hrončok - 1.2.1-3 +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 1.2.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Thu Mar 07 2019 Carl George - 1.2.1-1 +- Latest upstream +- Disable py2 subpackage on f30+ and el8+ + +* Sat Feb 02 2019 Fedora Release Engineering - 1.2.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sun Sep 02 2018 Igor Gnatenko - 1.2.0-1 +- Update to 1.2.0 + +* Fri Jul 13 2018 Fedora Release Engineering - 1.1.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Jun 19 2018 Miro Hrončok - 1.1.3-2 +- Rebuilt for Python 3.7 + +* Mon May 14 2018 Carl George - 1.1.3-1 +- Latest upstream + +* Wed Mar 07 2018 Carl George - 1.1.2-1 +- Latest upstream +- Enable EPEL python3 subpackage + +* Fri Feb 09 2018 Fedora Release Engineering - 1.1.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 1.1.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 1.1.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Thu Dec 29 2016 Igor Gnatenko - 1.1.1-2 +- Add EPEL7 conditionals + +* Wed Dec 28 2016 Igor Gnatenko - 1.1.1-1 +- Update to 1.1.1 +- Modernize spec + +* Mon Dec 19 2016 Miro Hrončok - 1.0.2-3 +- Rebuild for Python 3.6 + +* Tue Jul 19 2016 Fedora Release Engineering - 1.0.2-2 +- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages + +* Fri May 20 2016 Carl George - 1.0.2-1 +- Latest upstream + +* Thu Feb 04 2016 Fedora Release Engineering - 1.0.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Sat Dec 05 2015 Carl George - 1.0.1-2 +- Remove coverage build dependency +- Change python3 control macros to a bcond macro +- Add bcond macro to optionally require explicit python2 names + +* Thu Nov 19 2015 Carl George - 1.0.1-1 +- Latest upstream + +* Tue Nov 10 2015 Fedora Release Engineering - 1.0.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 + +* Tue Sep 01 2015 Carl George - 1.0.0-3 +- Update to new packaging guidelines + +* Mon Jul 20 2015 Carl George - 1.0.0-2 +- Remove separate py3 build directory +- Update summary and description +- Use a common license and documentation directories between PY2/3 packages + +* Thu Jul 16 2015 Carl George - 1.0.0-1 +- Initial spec file