15
0
forked from pool/python-duet

- Convert to pip-based build

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-duet?expand=0&rev=11
This commit is contained in:
2025-05-26 12:33:34 +00:00
committed by Git OBS Bridge
commit 809aec09eb
5 changed files with 141 additions and 0 deletions

23
.gitattributes vendored Normal file
View 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
View File

@@ -0,0 +1 @@
.osc

3
duet-0.2.9.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d6fa39582e6a3dce1096c47e5fbcbda648a633eed94a38943e68662afa2587f3
size 24438

45
python-duet.changes Normal file
View File

@@ -0,0 +1,45 @@
-------------------------------------------------------------------
Mon May 26 12:32:59 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
-------------------------------------------------------------------
Fri Jul 28 23:29:23 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 0.2.9:
* AwaitableFuture: propagate cancellation to wrapped future
* AwaitableFuture: check cancelled future in callback
* Drop support for python < 3.9
-------------------------------------------------------------------
Sun Apr 23 20:44:55 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 0.2.8:
* Test duet against python 3.11
* Loosen version requirement on typing_extensions
* Make Limiter work with cancellation
* Add support for overloaded sync callbacks
* Fix timeout clipping in Scheduler.tick
-------------------------------------------------------------------
Thu Oct 13 07:17:46 UTC 2022 - Dirk Müller <dmueller@suse.com>
- use https for urls
-------------------------------------------------------------------
Tue Sep 27 19:11:09 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
- Update to 0.2.7
* Fix timeout clipping in Scheduler.tick (#67)
* Add support for overloaded sync callbacks (#66)
* Add support for wrapping abstract methods with duet.sync (#63)
* Drop support for python 3.6 (#62)
* Update ci.yml (#61)
* Ensure that duet.sleep raises an exception if outer timeout elapses first (#58)
* Update to latest version of black (#57)
-------------------------------------------------------------------
Sun Feb 20 06:53:27 UTC 2022 - Ben Greiner <code@bnavigator.de>
- Initial specfile for v0.2.3
- Required by cirq-core

69
python-duet.spec Normal file
View File

@@ -0,0 +1,69 @@
#
# spec file for package python-duet
#
# Copyright (c) 2025 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/
#
%{?sle15_python_module_pythons}
Name: python-duet
Version: 0.2.9
Release: 0
Summary: A simple future-based async library for python
License: Apache-2.0
URL: https://github.com/google/duet
Source: https://files.pythonhosted.org/packages/source/d/duet/duet-%{version}.tar.gz
BuildRequires: %{python_module base >= 3.9}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module typing_extensions}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-typing_extensions
BuildArch: noarch
%if 0%{?suse_version} <= 1500
BuildRequires: %{python_module asyncio-contextmanager}
BuildRequires: %{python_module contextvars}
%endif
%if %{python_version_nodots} <= 36
Requires: python-asyncio-contextmanager
Requires: python-contextvars
%endif
%python_subpackages
%description
A simple future-based async library for python.
%prep
%setup -q -n duet-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%doc README.md
%license LICENSE
%{python_sitelib}/duet
%{python_sitelib}/duet-%{version}*-info
%changelog