From 9143479b2359933de6e3fca70902dc5514980c27e7b2e5d9adca429a36f08193 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 21 Jan 2025 14:09:01 +0000 Subject: [PATCH] Accepting request 1239266 from home:dgarcia:branches:security New package, required by python-sigstore OBS-URL: https://build.opensuse.org/request/show/1239266 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-grpclib?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++ .gitignore | 1 + grpclib-0.4.7.tar.gz | 3 ++ python-grpclib.changes | 4 ++ python-grpclib.spec | 83 ++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 114 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 grpclib-0.4.7.tar.gz create mode 100644 python-grpclib.changes create mode 100644 python-grpclib.spec 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/grpclib-0.4.7.tar.gz b/grpclib-0.4.7.tar.gz new file mode 100644 index 0000000..f61afd8 --- /dev/null +++ b/grpclib-0.4.7.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ae9de92b72c2dfed6a22aeb57a3f3b6701331d5e451c727253e4453c95862553 +size 106012 diff --git a/python-grpclib.changes b/python-grpclib.changes new file mode 100644 index 0000000..8191da1 --- /dev/null +++ b/python-grpclib.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Thu Oct 31 08:44:44 UTC 2024 - Daniel Garcia + +- Initial version (0.4.7) diff --git a/python-grpclib.spec b/python-grpclib.spec new file mode 100644 index 0000000..a75e759 --- /dev/null +++ b/python-grpclib.spec @@ -0,0 +1,83 @@ +# +# spec file for package python-grpclib +# +# Copyright (c) 2024 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/ +# + + +Name: python-grpclib +Version: 0.4.7 +Release: 0 +Summary: Pure-Python gRPC implementation for asyncio +License: BSD-3-Clause +URL: https://github.com/vmagamedov/grpclib +Source: https://github.com/vmagamedov/grpclib/archive/v%{version}.tar.gz#/grpclib-%{version}.tar.gz +BuildRequires: python-rpm-macros +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools >= 40.6.0} +BuildRequires: %{python_module wheel} +# SECTION test requirements +BuildRequires: %{python_module h2 >= 3.1.0} +BuildRequires: %{python_module multidict} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module pytest-asyncio} +BuildRequires: %{python_module async-timeout} +BuildRequires: %{python_module certifi} +BuildRequires: %{python_module Faker} +BuildRequires: %{python_module protobuf} +# /SECTION +BuildRequires: fdupes +Requires: python-h2 >= 3.1.0 +Requires: python-multidict +Suggests: python-protobuf >= 3.20.0 +Requires(post): update-alternatives +Requires(postun): update-alternatives +BuildArch: noarch +%python_subpackages + +%description +Pure-Python gRPC implementation for asyncio + +%prep +%autosetup -p1 -n grpclib-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_clone -a %{buildroot}%{_bindir}/protoc-gen-python_grpc +%python_clone -a %{buildroot}%{_bindir}/protoc-gen-grpclib_python +%python_expand %fdupes %{buildroot}%{$python_sitelib} +%fdupes %{buildroot}%{_bindir} + +%check +# no google.rpc python module +%pytest --ignore tests/test_status_details_codec.py --ignore tests/test_server_events.py --ignore tests/test_client_events.py + +%post +%python_install_alternative protoc-gen-python_grpc protoc-gen-grpclib_python + +%postun +%python_uninstall_alternative protoc-gen-python_grpc + +%files %{python_files} +%doc README.rst +%license LICENSE.txt +%python_alternative %{_bindir}/protoc-gen-python_grpc +%python_alternative %{_bindir}/protoc-gen-grpclib_python +%{python_sitelib}/grpclib +%{python_sitelib}/grpclib-%{version}.dist-info + +%changelog