forked from pool/python-asyncio-pool
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
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -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
|
||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
||||
3
python-asyncio-pool-0.5.2.tar.gz
Normal file
3
python-asyncio-pool-0.5.2.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:8bf2bce3a6aef38459ce4f7190c29aac5814df6a8496507f5f7b44d55ce27d7e
|
||||
size 16819
|
||||
17
python-asyncio-pool.changes
Normal file
17
python-asyncio-pool.changes
Normal file
@@ -0,0 +1,17 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 26 19:41:59 UTC 2022 - Johannes Kastl <kastl@b1-systems.de>
|
||||
|
||||
- created new OBS package with proper name
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 25 20:28:58 UTC 2022 - Sebastian Wagner <sebix+novell.com@sebix.at>
|
||||
|
||||
- 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 <kastl@b1-systems.de>
|
||||
|
||||
- first version of package asyncio_pool at version 0.5.2
|
||||
62
python-asyncio-pool.spec
Normal file
62
python-asyncio-pool.spec
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user