[arch-commits] Commit in python-aiobotocore/trunk (PKGBUILD unittest-mock.diff)

Chih-Hsuan Yen yan12125 at archlinux.org
Sun Apr 5 02:30:13 UTC 2020


    Date: Sunday, April 5, 2020 @ 02:30:13
  Author: yan12125
Revision: 611772

upgpkg: python-aiobotocore 1.0.1-1

Added:
  python-aiobotocore/trunk/unittest-mock.diff
Modified:
  python-aiobotocore/trunk/PKGBUILD

--------------------+
 PKGBUILD           |    9 ++++++---
 unittest-mock.diff |   37 +++++++++++++++++++++++++++++++++++++
 2 files changed, 43 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-04-05 02:15:41 UTC (rev 611771)
+++ PKGBUILD	2020-04-05 02:30:13 UTC (rev 611772)
@@ -2,7 +2,7 @@
 
 pkgname=python-aiobotocore
 _pkgname=aiobotocore
-pkgver=0.12.0
+pkgver=1.0.1
 pkgrel=1
 pkgdesc='asyncio support for botocore library using aiohttp'
 arch=(any)
@@ -10,11 +10,14 @@
 license=(Apache)
 depends=(python python-aiohttp python-botocore python-wrapt python-aioitertools)
 checkdepends=(python-flask python-moto python-pytest python-pytest-asyncio)
-source=("https://github.com/aio-libs/aiobotocore/archive/$pkgver/$pkgname-$pkgver.tar.gz")
-sha256sums=('fa73d5f1306d30c827c7b229648c3a4c6797ee71d4a97de4f7a579b144d82338')
+source=("https://github.com/aio-libs/aiobotocore/archive/$pkgver/$pkgname-$pkgver.tar.gz"
+        unittest-mock.diff)
+sha256sums=('55b3afca3da9e3bee4a902d7af1a1e9dadb16fb79b46b5ee6a896654509d3bee'
+            'ffb6b7e922632f4c2de5c93f61ab53e1730cfe151b0a2dde5dfce6260405866e')
 
 prepare() {
   cd $_pkgname-$pkgver
+  patch -Np1 -i ../unittest-mock.diff
 
   # Disable dependency pinning
   # Upstream tracking issue: https://github.com/aio-libs/aiobotocore/issues/670

Added: unittest-mock.diff
===================================================================
--- unittest-mock.diff	                        (rev 0)
+++ unittest-mock.diff	2020-04-05 02:30:13 UTC (rev 611772)
@@ -0,0 +1,37 @@
+diff --git a/tests/botocore/test_credentials.py b/tests/botocore/test_credentials.py
+index ecbe17e..1b2172e 100644
+--- a/tests/botocore/test_credentials.py
++++ b/tests/botocore/test_credentials.py
+@@ -8,7 +8,7 @@ import datetime
+ import json
+ import subprocess
+ 
+-import mock
++from unittest import mock
+ from typing import Optional
+ 
+ import pytest
+diff --git a/tests/botocore/test_signers.py b/tests/botocore/test_signers.py
+index 0e4035e..7529760 100644
+--- a/tests/botocore/test_signers.py
++++ b/tests/botocore/test_signers.py
+@@ -1,5 +1,5 @@
+ import pytest
+-import mock
++from unittest import mock
+ 
+ import aiobotocore
+ import aiobotocore.credentials
+diff --git a/tests/botocore/test_utils.py b/tests/botocore/test_utils.py
+index 3d17b87..4089cf1 100644
+--- a/tests/botocore/test_utils.py
++++ b/tests/botocore/test_utils.py
+@@ -1,7 +1,7 @@
+ import asyncio
+ import pytest
+ import json
+-import mock
++from unittest import mock
+ import itertools
+ from typing import Union, List, Tuple
+ 



More information about the arch-commits mailing list