2022-07-18 15:26:03 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-asyncio-pool
|
|
|
|
|
#
|
2025-08-11 06:14:51 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC and contributors
|
2022-07-18 15:26:03 +00:00
|
|
|
#
|
|
|
|
|
# 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/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-asyncio-pool
|
2025-08-11 06:14:51 +00:00
|
|
|
Version: 0.6.0
|
2022-07-18 15:26:03 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Pool of asyncio coroutines with familiar interface
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://github.com/gistart/asyncio-pool
|
2025-08-11 06:14:51 +00:00
|
|
|
Source: https://github.com/gistart/asyncio-pool/archive/refs/tags/v%{version}/asyncio-pool-%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
2022-07-18 15:26:03 +00:00
|
|
|
# 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 async_timeout}
|
2025-08-11 06:14:51 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
|
BuildRequires: %{python_module pytest-asyncio}
|
|
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
|
BuildRequires: %{python_module wheel}
|
2022-07-18 15:26:03 +00:00
|
|
|
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
|
2025-08-11 06:14:51 +00:00
|
|
|
%pyproject_wheel
|
2022-07-18 15:26:03 +00:00
|
|
|
|
|
|
|
|
%install
|
2025-08-11 06:14:51 +00:00
|
|
|
%pyproject_install
|
2022-07-18 15:26:03 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%pytest
|
|
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
|
%doc README.md
|
|
|
|
|
%license LICENSE.txt
|
2025-08-11 06:14:51 +00:00
|
|
|
%{python_sitelib}/asyncio_pool
|
|
|
|
|
%{python_sitelib}/asyncio_pool-%{version}.dist-info
|
2022-07-18 15:26:03 +00:00
|
|
|
%doc examples
|
|
|
|
|
|
|
|
|
|
%changelog
|