From 1b67928067a6196ddbc8fcee1902096c13f8ee3965a09c34cd2a964218e77901 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 18 Jul 2022 15:26:03 +0000 Subject: [PATCH] new package asyncio-pool, needed as build dependency for the Ansible antsibull* packages OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-asyncio-pool?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++ .gitignore | 1 + python-asyncio-pool-0.5.2.tar.gz | 3 ++ python-asyncio-pool.changes | 17 +++++++++ python-asyncio-pool.spec | 62 ++++++++++++++++++++++++++++++++ 5 files changed, 106 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-asyncio-pool-0.5.2.tar.gz create mode 100644 python-asyncio-pool.changes create mode 100644 python-asyncio-pool.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-asyncio-pool-0.5.2.tar.gz b/python-asyncio-pool-0.5.2.tar.gz new file mode 100644 index 0000000..7bdd6e6 --- /dev/null +++ b/python-asyncio-pool-0.5.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8bf2bce3a6aef38459ce4f7190c29aac5814df6a8496507f5f7b44d55ce27d7e +size 16819 diff --git a/python-asyncio-pool.changes b/python-asyncio-pool.changes new file mode 100644 index 0000000..dc2b3af --- /dev/null +++ b/python-asyncio-pool.changes @@ -0,0 +1,17 @@ +------------------------------------------------------------------- +Tue Apr 26 19:41:59 UTC 2022 - Johannes Kastl + +- created new OBS package with proper name + +------------------------------------------------------------------- +Mon Apr 25 20:28:58 UTC 2022 - Sebastian Wagner + +- rename package from python-asyncio_pool to python-asyncio-pool +- use github source URL as it contains the tests and license file +- execute the tests +- specfile cleanup + +------------------------------------------------------------------- +Fri Apr 22 21:12:13 UTC 2022 - Johannes Kastl + +- first version of package asyncio_pool at version 0.5.2 diff --git a/python-asyncio-pool.spec b/python-asyncio-pool.spec new file mode 100644 index 0000000..c1b9f80 --- /dev/null +++ b/python-asyncio-pool.spec @@ -0,0 +1,62 @@ +# +# spec file for package python-asyncio-pool +# +# Copyright (c) 2022 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-asyncio-pool +Version: 0.5.2 +Release: 0 +Summary: Pool of asyncio coroutines with familiar interface +License: MIT +URL: https://github.com/gistart/asyncio-pool +Source: https://github.com/gistart/asyncio-pool/archive/refs/tags/v0.5.2/asyncio_pool-0.5.2.tar.gz#/%{name}-%{version}.tar.gz +# PyPI tarball does not include tests and license +#Source: https://files.pythonhosted.org/packages/source/a/asyncio_pool/asyncio_pool-%%{version}.tar.gz +BuildRequires: python-rpm-macros +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module async_timeout} +BuildRequires: fdupes +BuildArch: noarch +%python_subpackages + +%description +Pool of asyncio coroutines with familiar interface. Supports python 3.5+ (including PyPy 6+, which is also 3.5 atm) + +AioPool makes sure _no more_ and _no less_ (if possible) than `size` spawned coroutines are active at the same time. _spawned_ means created and scheduled with one of the pool interface methods, _active_ means coroutine function started executing it's code, as opposed to _waiting_ -- which waits for pool space without entering coroutine function. + +%prep +%setup -q -n asyncio-pool-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%doc README.md +%license LICENSE.txt +%{python_sitelib}/asyncio_pool/ +%{python_sitelib}/asyncio_pool-%{version}*-info +%doc examples + +%changelog