[packages/python3-async_timeout] - new

qboosh qboosh at pld-linux.org
Sat Feb 6 07:48:23 CET 2021


commit 26c2a0e902aa48a7fec13ed3db89624e6dd642f5
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Feb 6 07:48:41 2021 +0100

    - new

 python3-async_timeout.spec | 59 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 59 insertions(+)
---
diff --git a/python3-async_timeout.spec b/python3-async_timeout.spec
new file mode 100644
index 0000000..1574901
--- /dev/null
+++ b/python3-async_timeout.spec
@@ -0,0 +1,59 @@
+#
+# Conditional build:
+%bcond_without	tests	# unit tests
+
+Summary:	Timeout context manager for asyncio programs
+Summary(pl.UTF-8):	Zarządca kontekstu z limitem czasu dla programów asyncio
+Name:		python3-async_timeout
+Version:	3.0.1
+Release:	1
+License:	Apache v2.0
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/async-timeout/
+Source0:	https://files.pythonhosted.org/packages/source/a/async-timeout/async-timeout-%{version}.tar.gz
+# Source0-md5:	305c4fa529f2485c403d0dbe14390175
+URL:		https://pypi.org/project/async-timeout/
+BuildRequires:	python3-modules >= 1:3.5.3
+BuildRequires:	python3-setuptools
+%if %{with tests}
+BuildRequires:	python3-pytest
+BuildRequires:	python3-pytest-asyncio
+BuildRequires:	python3-pytest-cov
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+Requires:	python3-modules >= 1:3.5.3
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+asyncio-compatible timeout context manager.
+
+%description -l pl.UTF-8
+Zarządca kontekstów z limitem czasu, zgodny z asyncio.
+
+%prep
+%setup -q -n async-timeout-%{version}
+
+%build
+%py3_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS="pytest_asyncio.plugin,pytest_cov.plugin" \
+%{__python3} -m pytest tests
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGES.rst README.rst
+%{py3_sitescriptdir}/async_timeout
+%{py3_sitescriptdir}/async_timeout-%{version}-py*.egg-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-async_timeout.git/commitdiff/26c2a0e902aa48a7fec13ed3db89624e6dd642f5



More information about the pld-cvs-commit mailing list