[packages/python3-ddt] - python-ddt.spec updated to 1.7.2 for python 3.6+
qboosh
qboosh at pld-linux.org
Thu Jul 10 18:15:27 CEST 2025
commit f7e10dc70323c87f553b55b15b78c45ee3451cf9
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Thu Jul 10 18:17:00 2025 +0200
- python-ddt.spec updated to 1.7.2 for python 3.6+
python-ddt.spec | 108 -------------------------------------------------------
python3-ddt.spec | 66 ++++++++++++++++++++++++++++++++++
2 files changed, 66 insertions(+), 108 deletions(-)
---
diff --git a/python-ddt.spec b/python-ddt.spec
deleted file mode 100644
index 24c5b7c..0000000
--- a/python-ddt.spec
+++ /dev/null
@@ -1,108 +0,0 @@
-#
-# Conditional build:
-%bcond_without tests # unit tests
-%bcond_without python2 # CPython 2.x module
-%bcond_without python3 # CPython 3.x module
-
-Summary: Data-Driven Tests - library to multiply test cases
-Summary(pl.UTF-8): Data-Driven Tests - biblioteka do zwielokrotniania przypadków testowych
-Name: python-ddt
-# keep 1.6.x here for python2 support
-Version: 1.6.0
-Release: 3
-License: MIT
-Group: Libraries/Python
-#Source0Download: https://pypi.org/simple/ddt/
-Source0: https://files.pythonhosted.org/packages/source/d/ddt/ddt-%{version}.tar.gz
-# Source0-md5: 7a261184250a6c57962f40b62a8de77f
-URL: https://github.com/txels/ddt
-%if %{with python2}
-BuildRequires: python-enum34
-BuildRequires: python-modules >= 1:2.7
-BuildRequires: python-setuptools
-%if %{with tests}
-BuildRequires: python-mock
-%endif
-%endif
-%if %{with python3}
-BuildRequires: python3-modules >= 1:3.6
-BuildRequires: python3-setuptools
-%endif
-BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.714
-Requires: python-modules >= 1:2.7
-BuildArch: noarch
-BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-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.
-
-%description -l pl.UTF-8
-Biblioteka DDT (Data-Driven Tests - testy sterowane danymi) pozwala na
-zwielotnianie pojedynczego przypadku testowego poprzez uruchamianie go
-z różnymi danymi testowymi i traktowanie go jako wielu przypadków
-testowych.
-
-%package -n python3-ddt
-Summary: Data-Driven Tests - library to multiply test cases
-Summary(pl.UTF-8): Data-Driven Tests - biblioteka do zwielokrotniania przypadków testowych
-Group: Libraries/Python
-Requires: python3-modules >= 1:3.6
-
-%description -n python3-ddt
-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.
-
-%description -n python3-ddt -l pl.UTF-8
-Biblioteka DDT (Data-Driven Tests - testy sterowane danymi) pozwala na
-zwielotnianie pojedynczego przypadku testowego poprzez uruchamianie go
-z różnymi danymi testowymi i traktowanie go jako wielu przypadków
-testowych.
-
-%prep
-%setup -q -n ddt-%{version}
-
-%build
-%if %{with python2}
-%py_build %{?with_tests:test}
-%endif
-
-%if %{with python3}
-%py3_build %{?with_tests:test}
-%endif
-
-%install
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%py_install
-
-%py_postclean
-%endif
-
-%if %{with python3}
-%py3_install
-%endif
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%files
-%defattr(644,root,root,755)
-%doc LICENSE.md README.md
-%{py_sitescriptdir}/ddt.py[co]
-%{py_sitescriptdir}/ddt-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-ddt
-%defattr(644,root,root,755)
-%doc LICENSE.md README.md
-%{py3_sitescriptdir}/ddt.py
-%{py3_sitescriptdir}/__pycache__/ddt.cpython-*.py[co]
-%{py3_sitescriptdir}/ddt-%{version}-py*.egg-info
-%endif
diff --git a/python3-ddt.spec b/python3-ddt.spec
new file mode 100644
index 0000000..e74e0b9
--- /dev/null
+++ b/python3-ddt.spec
@@ -0,0 +1,66 @@
+#
+# Conditional build:
+%bcond_without tests # unit tests
+
+Summary: Data-Driven Tests - library to multiply test cases
+Summary(pl.UTF-8): Data-Driven Tests - biblioteka do zwielokrotniania przypadków testowych
+Name: python3-ddt
+Version: 1.7.2
+Release: 1
+License: MIT
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/ddt/
+Source0: https://files.pythonhosted.org/packages/source/d/ddt/ddt-%{version}.tar.gz
+# Source0-md5: fa50868f683f2bc3d8ec3751fcd84731
+URL: https://github.com/txels/ddt
+BuildRequires: python3-modules >= 1:3.6
+BuildRequires: python3-setuptools
+%if %{with tests}
+BuildRequires: python3-PyYAML
+BuildRequires: python3-aiounittest
+BuildRequires: python3-pytest
+BuildRequires: python3-six >= 1.4.0
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+Requires: python3-modules >= 1:3.6
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+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.
+
+%description -l pl.UTF-8
+Biblioteka DDT (Data-Driven Tests - testy sterowane danymi) pozwala na
+zwielotnianie pojedynczego przypadku testowego poprzez uruchamianie go
+z różnymi danymi testowymi i traktowanie go jako wielu przypadków
+testowych.
+
+%prep
+%setup -q -n ddt-%{version}
+
+%build
+%py3_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTHONPATH=$(pwd) \
+%{__python3} -m pytest test
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE.md README.md
+%{py3_sitescriptdir}/ddt.py
+%{py3_sitescriptdir}/__pycache__/ddt.cpython-*.py[co]
+%{py3_sitescriptdir}/ddt-%{version}-py*.egg-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-ddt.git/commitdiff/f7e10dc70323c87f553b55b15b78c45ee3451cf9
More information about the pld-cvs-commit
mailing list