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

Chih-Hsuan Yen yan12125 at archlinux.org
Wed Jun 16 10:49:28 UTC 2021


    Date: Wednesday, June 16, 2021 @ 10:49:27
  Author: yan12125
Revision: 964266

upgpkg: python-aiobotocore 1.3.1-1; drop unneeded patch

That patch is landed as part of https://github.com/aio-libs/aiobotocore/pull/869

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

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-06-16 10:40:26 UTC (rev 964265)
+++ PKGBUILD	2021-06-16 10:49:27 UTC (rev 964266)
@@ -2,7 +2,7 @@
 
 pkgname=python-aiobotocore
 _pkgname=aiobotocore
-pkgver=1.3.0
+pkgver=1.3.1
 pkgrel=1
 pkgdesc='asyncio support for botocore library using aiohttp'
 arch=(any)
@@ -13,16 +13,11 @@
 checkdepends=(python-moto python-pytest python-pytest-asyncio
               # moto optdepends
               python-docker python-yaml python-flask python-flask-cors)
-source=("https://github.com/aio-libs/aiobotocore/archive/$pkgver/$pkgname-$pkgver.tar.gz"
-        unittest-mock.diff)
-sha256sums=('4c02797d4bc06e8a3b1fd29775e19424501def8df436727ece22c567edc0c31a'
-            'ffb6b7e922632f4c2de5c93f61ab53e1730cfe151b0a2dde5dfce6260405866e')
+source=("https://github.com/aio-libs/aiobotocore/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha256sums=('e63de6c9de96df5e35567ea56f94f28d098e5fc3edd6d83be5e650e1ce809e76')
 
 prepare() {
   cd $_pkgname-$pkgver
-  # community/python-mock is outdated and does not include needed AsyncMock.
-  # Use mock from stdlib instead. It has AsyncMock since 3.8
-  patch -Np1 -i ../unittest-mock.diff
 
   # Disable dependency pinning
   # Upstream tracking issue: https://github.com/aio-libs/aiobotocore/issues/670

Deleted: unittest-mock.diff
===================================================================
--- unittest-mock.diff	2021-06-16 10:40:26 UTC (rev 964265)
+++ unittest-mock.diff	2021-06-16 10:49:27 UTC (rev 964266)
@@ -1,37 +0,0 @@
-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