[packages/python3-pytest-asyncio] - new, but requires pytest 5

qboosh qboosh at pld-linux.org
Tue Sep 15 18:06:54 CEST 2020


commit bda4c6eb86bfdc8beae02ada97c78b7d8035076d
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Sep 15 18:09:34 2020 +0200

    - new, but requires pytest 5

 python3-pytest-asyncio.spec | 71 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 71 insertions(+)
---
diff --git a/python3-pytest-asyncio.spec b/python3-pytest-asyncio.spec
new file mode 100644
index 0000000..5595259
--- /dev/null
+++ b/python3-pytest-asyncio.spec
@@ -0,0 +1,71 @@
+#
+# Conditional build:
+%bcond_with	tests	# unit tests (not included in release package)
+
+Summary:	Pytest support for asyncio
+Summary(pl.UTF-8):	Wsparcie do asyncio dla Pytesta
+Name:		python3-pytest-asyncio
+Version:	0.14.0
+Release:	1
+License:	Apache v2.0
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/pytest-asyncio/
+Source0:	https://files.pythonhosted.org/packages/source/p/pytest-asyncio/pytest-asyncio-%{version}.tar.gz
+# Source0-md5:	b63593bc08f445f6e3f14c34128a68ed
+URL:		https://pypi.org/project/pytest-asyncio/
+BuildRequires:	python3-modules >= 1:3.5
+BuildRequires:	python3-setuptools
+%if %{with tests}
+%if "%{py3_ver}" < "3.6"
+BuildRequires:	python3-async_generator >= 1.3
+%endif
+BuildRequires:	python3-hypothesis >= 5.7.1
+BuildRequires:	python3-pytest >= 5.4.0
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+Requires:	python3-modules >= 1:3.5
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+pytest-asyncio is an Apache 2 licensed library, written in Python, for
+testing asyncio code with pytest.
+
+asyncio code is usually written in the form of coroutines, which makes
+it slightly more difficult to test using normal testing tools.
+pytest-asyncio provides useful fixtures and markers to make testing
+easier.
+
+%description -l pl.UTF-8
+pytest-asyncio to wydana na licencji Apache 2 biblioteka, napisana w
+Pythonie, służąca do testowania kodu asynchronicznego we/wy przy
+użyciu pytesta.
+
+Kod asyncio jest zwykle pisany w postaci korutyn, co nieco utrudnia
+testowanie przy użyciu zwykłych narzędzi testowych. pytest-asyncio
+dostarcza przydatne wyposażenie i znaczniki ułatwiające testowanie.
+
+%prep
+%setup -q -n pytest-asyncio-%{version}
+
+%build
+%py3_build
+
+%if %{with tests}
+%{__python3} -m pytest ...
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.rst
+%{py3_sitescriptdir}/pytest_asyncio
+%{py3_sitescriptdir}/pytest_asyncio-%{version}-py*.egg-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-pytest-asyncio.git/commitdiff/bda4c6eb86bfdc8beae02ada97c78b7d8035076d



More information about the pld-cvs-commit mailing list