diff options
author | Benoît Allard | 2024-08-08 16:11:47 +0200 |
---|---|---|
committer | Benoît Allard | 2024-08-08 16:11:47 +0200 |
commit | 5ce8d16e2ba632bc6c746d8418728a965d2e11e4 (patch) | |
tree | 34771b44cbf75ca8de123fb8dcc14ea0f11d7f0c | |
parent | 7df5c1e52c97f38965477a311f947f8923f4ae6b (diff) | |
download | aur-5ce8d16e2ba632bc6c746d8418728a965d2e11e4.tar.gz |
0.4.7
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | 90eb869.patch | 46 | ||||
-rw-r--r-- | PKGBUILD | 16 | ||||
-rw-r--r-- | ff9d555.patch | 23 |
4 files changed, 7 insertions, 84 deletions
@@ -1,7 +1,7 @@ pkgbase = python-grpclib pkgdesc = Pure-Python gRPC implementation for asyncio - pkgver = 0.4.3 - pkgrel = 3 + pkgver = 0.4.7 + pkgrel = 1 url = http://grpclib.readthedocs.io/ arch = any license = BSD @@ -18,7 +18,7 @@ pkgbase = python-grpclib depends = python-googleapis-common-protos depends = python-certifi optdepends = python-protobuf: for protobuf support - source = python-grpclib-0.4.3.tar.gz::https://github.com/vmagamedov/grpclib/archive/v0.4.3.tar.gz + source = python-grpclib-0.4.7.tar.gz::https://github.com/vmagamedov/grpclib/archive/v0.4.7.tar.gz source = 90eb869.patch source = ff9d555.patch sha256sums = b8f191a0596698f40777af007056ababb92c74561cf67fbc62bd8d5b5a19b12a diff --git a/90eb869.patch b/90eb869.patch deleted file mode 100644 index 0e590ad8a981..000000000000 --- a/90eb869.patch +++ /dev/null @@ -1,46 +0,0 @@ -From 90eb869e4031f6705263d6cd4c65c5b70c303919 Mon Sep 17 00:00:00 2001 -From: Vladimir Magamedov <vladimir@magamedov.com> -Date: Sun, 2 Apr 2023 08:47:56 +0300 -Subject: [PATCH] Fixed test_default_ssl_context for the case when certifi - points to system certificates - ---- - tests/test_client_channel.py | 20 ++++++++++---------- - 1 file changed, 10 insertions(+), 10 deletions(-) - -diff --git a/tests/test_client_channel.py b/tests/test_client_channel.py -index 2537838..4cbd3dc 100644 ---- a/tests/test_client_channel.py -+++ b/tests/test_client_channel.py -@@ -3,6 +3,7 @@ - from unittest.mock import patch, ANY - - import pytest -+import certifi - - from grpclib.client import Channel - from grpclib.testing import ChannelFor -@@ -35,14 +36,13 @@ async def create_connection(*args, **kwargs): - po.assert_awaited_once_with(ANY, '127.0.0.1', 50051, ssl=None) - - --@pytest.mark.asyncio --async def test_default_ssl_context(): -- certifi_channel = Channel(ssl=True) -- with patch.dict('sys.modules', {'certifi': None}): -- system_channel = Channel(ssl=True) -- -- certifi_certs = certifi_channel._ssl.get_ca_certs(binary_form=True) -- system_certs = system_channel._ssl.get_ca_certs(binary_form=True) -+def test_default_ssl_context(): -+ with patch.object(certifi, "where", return_value=certifi.where()) as po: -+ certifi_channel = Channel(ssl=True) -+ assert certifi_channel._ssl -+ po.assert_called_once() - -- assert certifi_certs -- assert certifi_certs != system_certs -+ with patch.object(certifi, "where", side_effect=AssertionError): -+ with patch.dict("sys.modules", {"certifi": None}): -+ system_channel = Channel(ssl=True) -+ assert system_channel._ssl @@ -1,7 +1,7 @@ # Maintainer: Benoît Allard <benoit.allard@gmx.de> pkgname=python-grpclib -pkgver=0.4.3 -pkgrel=3 +pkgver=0.4.7 +pkgrel=1 pkgdesc="Pure-Python gRPC implementation for asyncio" arch=('any') url="http://grpclib.readthedocs.io/" @@ -13,17 +13,9 @@ optdepends=( "python-protobuf: for protobuf support" ) _name=${pkgname#python-} -source=("$pkgname-$pkgver.tar.gz::https://github.com/vmagamedov/$_name/archive/v$pkgver.tar.gz" - "90eb869.patch" "ff9d555.patch") -sha256sums=('b8f191a0596698f40777af007056ababb92c74561cf67fbc62bd8d5b5a19b12a' - '07944a18f957c0d9cc16607a5795524dd71637345e59e2db153488acb81eaedd' - '29befd67ac7eb408d89fb658b5dc371a3404571a8b4f1284648c8a9f101c57d7') +source=("$pkgname-$pkgver.tar.gz::https://github.com/vmagamedov/$_name/archive/v$pkgver.tar.gz") +sha256sums=('ae9de92b72c2dfed6a22aeb57a3f3b6701331d5e451c727253e4453c95862553') -prepare() { - cd $_name-$pkgver - patch --forward --strip=1 --input="${srcdir}/90eb869.patch" - patch --forward --strip=1 --input="${srcdir}/ff9d555.patch" -} build() { cd $_name-$pkgver diff --git a/ff9d555.patch b/ff9d555.patch deleted file mode 100644 index f0ad929ec6b7..000000000000 --- a/ff9d555.patch +++ /dev/null @@ -1,23 +0,0 @@ -From ff9d555bb915dc6310bf31b0b9825a16e0762a64 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Beno=C3=AEt=20Allard?= <benoit.allard@gmx.de> -Date: Sat, 1 Apr 2023 21:36:28 +0200 -Subject: [PATCH] Fix DeprecationWarning filter - -Somehow, the filter based on the package name did not worked for me. ---- - setup.cfg | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/setup.cfg b/setup.cfg -index dbba6ef..86c8ca4 100644 ---- a/setup.cfg -+++ b/setup.cfg -@@ -50,7 +50,7 @@ testpaths = tests - asyncio_mode = auto - filterwarnings = - error -- ignore::DeprecationWarning:google.* -+ ignore:.*pkg_resources.*:DeprecationWarning - ignore::ResourceWarning - - [coverage:run] |