[packages/python3-async_generator] - initial, python 3.5 backport of python 3.6/3.7 functionality

qboosh qboosh at pld-linux.org
Tue Sep 15 17:45:45 CEST 2020


commit 773f3a5d21649976c92e1983869ed59c4cb8993c
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Sep 15 17:48:22 2020 +0200

    - initial, python 3.5 backport of python 3.6/3.7 functionality

 python3-async_generator.spec | 90 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 90 insertions(+)
---
diff --git a/python3-async_generator.spec b/python3-async_generator.spec
new file mode 100644
index 0000000..60344bd
--- /dev/null
+++ b/python3-async_generator.spec
@@ -0,0 +1,90 @@
+#
+# Conditional build:
+%bcond_without	doc	# don't build doc
+%bcond_without	tests	# do not perform "make test"
+
+Summary:	Async generators and context managers for Python 3.5+
+Summary(pl.UTF-8):	Asynchroniczne generatory i zarządcy kontekstu dla Pythona 3.5+
+Name:		python3-async_generator
+Version:	1.10
+Release:	1.1
+License:	Apache v2.0 or MIT
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/async_generator/
+Source0:	https://files.pythonhosted.org/packages/source/a/async_generator/async_generator-%{version}.tar.gz
+# Source0-md5:	078a29b4afb3d7f38c097a530f042a55
+URL:		https://pypi.org/project/async_generator/
+BuildRequires:	python3-modules >= 1:3.5
+BuildRequires:	python3-modules < 1:3.7
+BuildRequires:	python3-setuptools
+%if %{with tests}
+BuildRequires:	python3-pytest
+BuildRequires:	python3-pytest-cov
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+%if %{with doc}
+BuildRequires:	sphinx-pdg-3
+%endif
+Requires:	python3-modules >= 1:3.5
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Python 3.6 added async generators (PEP-525). Python 3.7 adds some more
+tools to make them usable, like contextlib.asynccontextmanager.
+
+This library gives you all that back to Python 3.5.
+
+%description -l pl.UTF-8
+W Pythonie 3.6 zostały wprowadzone asynchroniczne generatory
+(PEP-525). W Pythonie 3.7 doszło kilka nowych narzędzi, czyniących je
+bardziej użytecznymi, jak contextlib.asynccontextmanager.
+
+Ta biblioteka udostępnia to wszystko dla Pythona 3.5.
+
+%package apidocs
+Summary:	async_generator API documentation
+Summary(pl.UTF-8):	Dokumentacja API async_generator
+Group:		Documentation
+
+%description apidocs
+API documentation for async_generator.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API async_generator.
+
+%prep
+%setup -q -n async_generator-%{version}
+
+%build
+%py3_build
+
+%if %{with tests}
+%{__python3} -m pytest async_generator/_tests
+%endif
+
+%if %{with doc}
+%{__make} -C docs html \
+	SPHINXBUILD=sphinx-build-3
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE LICENSE.MIT README.rst
+%{py3_sitescriptdir}/async_generator
+%{py3_sitescriptdir}/async_generator-%{version}-py*.egg-info
+
+%if %{with doc}
+%files apidocs
+%defattr(644,root,root,755)
+%doc docs/build/html/{_static,*.html,*.js}
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-async_generator.git/commitdiff/773f3a5d21649976c92e1983869ed59c4cb8993c



More information about the pld-cvs-commit mailing list