commit 9b5bf66a295c4f1ad0b15c0f951f2f3cb436d838bdd1ceaa48bdc9eaaa71dff5 Author: Matej Cepl Date: Sun Feb 20 09:00:38 2022 +0000 Accepting request 956084 from home:bnavigator:branches:devel:languages:python required by cirq-core OBS-URL: https://build.opensuse.org/request/show/956084 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-duet?expand=0&rev=1 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/duet-0.2.3.tar.gz b/duet-0.2.3.tar.gz new file mode 100644 index 0000000..db0cfd7 --- /dev/null +++ b/duet-0.2.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:256d79280c2ac771855cac1a979df0def555dc1b0bef678c5ce718b0cc16f220 +size 23365 diff --git a/python-duet.changes b/python-duet.changes new file mode 100644 index 0000000..dbd18c5 --- /dev/null +++ b/python-duet.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Sun Feb 20 06:53:27 UTC 2022 - Ben Greiner + +- Initial specfile for v0.2.3 +- Required by cirq-core diff --git a/python-duet.spec b/python-duet.spec new file mode 100644 index 0000000..a7e6217 --- /dev/null +++ b/python-duet.spec @@ -0,0 +1,67 @@ +# +# spec file for package python-duet +# +# 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() python3-%{**}} +%define skip_python2 1 +Name: python-duet +Version: 0.2.3 +Release: 0 +Summary: A simple future-based async library for python +License: Apache-2.0 +URL: http://github.com/google/duet +Source: https://files.pythonhosted.org/packages/source/d/duet/duet-%{version}.tar.gz +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module typing_extensions} +%if 0%{suse_version} <= 1500 +BuildRequires: %{python_module asyncio-contextmanager} +BuildRequires: %{python_module contextvars} +%endif +BuildRequires: python-rpm-macros +BuildRequires: fdupes +Requires: python-typing_extensions +%if %python_version_nodots <= 36 +Requires: python-asyncio-contextmanager +Requires: python-contextvars +%endif +BuildArch: noarch +%python_subpackages + +%description +A simple future-based async library for python. + +%prep +%setup -q -n duet-%{version} + +%build +%python_build + +%install +%python_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