[packages/python-flaky] - new

qboosh qboosh at pld-linux.org
Fri Oct 4 16:57:31 CEST 2019


commit b7a3a30be9d9826673a541b203b8de1df20a4e61
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Oct 4 17:00:37 2019 +0200

    - new

 python-flaky.spec | 124 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 124 insertions(+)
---
diff --git a/python-flaky.spec b/python-flaky.spec
new file mode 100644
index 0000000..cce0e57
--- /dev/null
+++ b/python-flaky.spec
@@ -0,0 +1,124 @@
+#
+# Conditional build:
+%bcond_with	tests	# unit tests (tox required)
+%bcond_without	python2 # CPython 2.x module
+%bcond_without	python3 # CPython 3.x module
+
+Summary:	Plugin for nose or pytest that automatically reruns flaky tests
+Summary(pl.UTF-8):	Wtyczka dla nose lub pytesta automatycznie uruchamiająca ponownie niepewne testy
+Name:		python-flaky
+Version:	3.6.1
+Release:	1
+License:	Apache v2.0
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/flaky/
+Source0:	https://files.pythonhosted.org/packages/source/f/flaky/flaky-%{version}.tar.gz
+# Source0-md5:	7427c11cd74e8851f1d7bf2690b646b5
+URL:		https://pypi.org/project/flaky/
+%if %{with python2}
+BuildRequires:	python-modules >= 1:2.7
+BuildRequires:	python-setuptools
+%if %{with tests}
+BuildRequires:	python-pytest
+BuildRequires:	python-tox
+%endif
+%endif
+%if %{with python3}
+BuildRequires:	python3-modules >= 1:3.4
+BuildRequires:	python3-setuptools
+%if %{with tests}
+BuildRequires:	python3-pytest
+BuildRequires:	python3-tox
+%endif
+%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
+Flaky is a plugin for nose or pytest that automatically reruns flaky
+tests.
+
+Ideally, tests reliably pass or fail, but sometimes test fixtures must
+rely on components that aren't 100% reliable. With flaky, instead of
+removing those tests or marking them to @skip, they can be
+automatically retried.
+
+%description -l pl.UTF-8
+Flaky to wtyczka dla nose lub pytesta automatycznie uruchamiająca
+ponownie niepewne testy.
+
+Idealnie testy powinny deterministycznie powodzić się lub nie, ale
+czasem wypozażenia testów muszą polegać na komponentach nie w pełni
+deterministycznych. Przy pomocy modułu flaky, zamiast usuwania tych
+testów lub oznaczania ich @skip, można je automatycznie ponowić.
+
+%package -n python3-flaky
+Summary:	Plugin for nose or pytest that automatically reruns flaky tests
+Summary(pl.UTF-8):	Wtyczka dla nose lub pytesta automatycznie uruchamiająca ponownie niepewne testy
+Group:		Libraries/Python
+Requires:	python3-modules >= 1:3.4
+
+%description -n python3-flaky
+Flaky is a plugin for nose or pytest that automatically reruns flaky
+tests.
+
+Ideally, tests reliably pass or fail, but sometimes test fixtures must
+rely on components that aren't 100% reliable. With flaky, instead of
+removing those tests or marking them to @skip, they can be
+automatically retried.
+
+%description -n python3-flaky -l pl.UTF-8
+Flaky to wtyczka dla nose lub pytesta automatycznie uruchamiająca
+ponownie niepewne testy.
+
+Idealnie testy powinny deterministycznie powodzić się lub nie, ale
+czasem wypozażenia testów muszą polegać na komponentach nie w pełni
+deterministycznych. Przy pomocy modułu flaky, zamiast usuwania tych
+testów lub oznaczania ich @skip, można je automatycznie ponowić.
+
+%prep
+%setup -q -n flaky-%{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 README.rst
+%{py_sitescriptdir}/flaky
+%{py_sitescriptdir}/flaky-%{version}-py*.egg-info
+%endif
+
+%if %{with python3}
+%files -n python3-flaky
+%defattr(644,root,root,755)
+%doc README.rst
+%{py3_sitescriptdir}/flaky
+%{py3_sitescriptdir}/flaky-%{version}-py*.egg-info
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-flaky.git/commitdiff/b7a3a30be9d9826673a541b203b8de1df20a4e61



More information about the pld-cvs-commit mailing list