forked from pool/python-asyncio-pool
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-asyncio-pool?expand=0&rev=1
63 lines
2.3 KiB
RPMSpec
63 lines
2.3 KiB
RPMSpec
#
|
|
# 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
|