[arch-commits] Commit in python-boto/repos/community-staging-any (4 files)

Felix Yan felixonmars at gemini.archlinux.org
Fri Dec 3 19:40:41 UTC 2021


    Date: Friday, December 3, 2021 @ 19:40:41
  Author: felixonmars
Revision: 1064868

archrelease: copy trunk to community-staging-any

Added:
  python-boto/repos/community-staging-any/PKGBUILD
    (from rev 1064867, python-boto/trunk/PKGBUILD)
  python-boto/repos/community-staging-any/boto-python-3.8.patch
    (from rev 1064867, python-boto/trunk/boto-python-3.8.patch)
Deleted:
  python-boto/repos/community-staging-any/PKGBUILD
  python-boto/repos/community-staging-any/boto-python-3.8.patch

-----------------------+
 PKGBUILD              |   85 ++++++++++++++++++-----------------
 boto-python-3.8.patch |  116 ++++++++++++++++++++++++------------------------
 2 files changed, 102 insertions(+), 99 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-12-03 19:40:32 UTC (rev 1064867)
+++ PKGBUILD	2021-12-03 19:40:41 UTC (rev 1064868)
@@ -1,41 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Kaiting Chen <kaitocracy at gmail.com>
-# Contributor: Aaron Schaefer <aaron at elasticdog.com>
-
-pkgname=python-boto
-pkgver=2.49.0.20190327
-_commit=9e1cd3bd76e738d80630f1bd9160fd87c8eab865
-pkgrel=6
-pkgdesc='A Python interface to Amazon Web Services (AWS)'
-arch=('any')
-url='https://github.com/boto/boto'
-license=('MIT')
-depends=('python')
-makedepends=('python-setuptools')
-checkdepends=('python-nose' 'python-mock' 'python-requests' 'python-httpretty')
-source=("$pkgname-$_commit.tar.gz::https://github.com/boto/boto/archive/$_commit.tar.gz"
-         boto-python-3.8.patch)
-sha512sums=('a68b7560caef3328970b9d1febc77fb28e537e4012b692b492d69428aca7deccf539e883cba4975497059ccdc56452f6e46f4a101b6e93f007667fe45c842e24'
-            '3e32db201adb637d3b6041f9e7be65889f1306042cbed36e4884207cbf772dc8f7691be9a505ec79f111b99c8313e0d42436c1f9a2dfa095de6cc77a7fe4bc6d')
-
-prepare() {
-  mv boto-{$_commit,$pkgver}
-  (cd boto-$pkgver
-   patch -p1 -i ../boto-python-3.8.patch # Fix escaping with python 3.8
-  )
-}
-
-check() {
-  cd "$srcdir"/boto-$pkgver
-  python tests/test.py default
-}
-
-package() {
-  cd boto-$pkgver
-
-  python setup.py install -O1 --root="$pkgdir"
-  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-  
-  # Remove (somewhat deprecated) python 2 tools.
-  rm -r "$pkgdir"/usr/bin
-}

Copied: python-boto/repos/community-staging-any/PKGBUILD (from rev 1064867, python-boto/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-12-03 19:40:41 UTC (rev 1064868)
@@ -0,0 +1,44 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Kaiting Chen <kaitocracy at gmail.com>
+# Contributor: Aaron Schaefer <aaron at elasticdog.com>
+
+pkgname=python-boto
+pkgver=2.49.0.20190327
+_commit=9e1cd3bd76e738d80630f1bd9160fd87c8eab865
+pkgrel=7
+pkgdesc='A Python interface to Amazon Web Services (AWS)'
+arch=('any')
+url='https://github.com/boto/boto'
+license=('MIT')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-nose' 'python-mock' 'python-requests' 'python-httpretty')
+source=("$pkgname-$_commit.tar.gz::https://github.com/boto/boto/archive/$_commit.tar.gz"
+         boto-python-3.10.patch::https://github.com/boto/boto/pull/3898.patch
+         boto-python-3.8.patch)
+sha512sums=('a68b7560caef3328970b9d1febc77fb28e537e4012b692b492d69428aca7deccf539e883cba4975497059ccdc56452f6e46f4a101b6e93f007667fe45c842e24'
+            '86c1318781832dad8e45f5a0168fe338f0c3dd168568342055191db68779caa8af04a4e11357a37e6b47adb132f9dccfd6e2e4df96d59ebb71db4e6073a625ba'
+            '3e32db201adb637d3b6041f9e7be65889f1306042cbed36e4884207cbf772dc8f7691be9a505ec79f111b99c8313e0d42436c1f9a2dfa095de6cc77a7fe4bc6d')
+
+prepare() {
+  mv boto-{$_commit,$pkgver}
+  (cd boto-$pkgver
+   patch -p1 -i ../boto-python-3.8.patch # Fix escaping with python 3.8
+   patch -p1 -i ../boto-python-3.10.patch # Fix collections.abc imports
+  )
+}
+
+check() {
+  cd "$srcdir"/boto-$pkgver
+  python tests/test.py default
+}
+
+package() {
+  cd boto-$pkgver
+
+  python setup.py install -O1 --root="$pkgdir"
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+  
+  # Remove (somewhat deprecated) python 2 tools.
+  rm -r "$pkgdir"/usr/bin
+}

Deleted: boto-python-3.8.patch
===================================================================
--- boto-python-3.8.patch	2021-12-03 19:40:32 UTC (rev 1064867)
+++ boto-python-3.8.patch	2021-12-03 19:40:41 UTC (rev 1064868)
@@ -1,58 +0,0 @@
-diff --git a/boto/ecs/item.py b/boto/ecs/item.py
-index 79177a31..a9504e9d 100644
---- a/boto/ecs/item.py
-+++ b/boto/ecs/item.py
-@@ -21,7 +21,11 @@
- 
- 
- import xml.sax
--import cgi
-+try:
-+    from html import escape as html_escape
-+except ImportError:
-+    # Python 2
-+    from cgi import escape as html_escape
- from boto.compat import six, StringIO
- 
- class ResponseGroup(xml.sax.ContentHandler):
-@@ -67,7 +71,7 @@ class ResponseGroup(xml.sax.ContentHandler):
-         return None
- 
-     def endElement(self, name, value, connection):
--        self._xml.write("%s</%s>" % (cgi.escape(value).replace("&amp;", "&"), name))
-+        self._xml.write("%s</%s>" % (html_escape(value).replace("&amp;", "&"), name))
-         if len(self._nodepath) == 0:
-             return
-         obj = None
-diff --git a/tests/unit/utils/test_utils.py b/tests/unit/utils/test_utils.py
-index db15b56d..d2e8dfb3 100644
---- a/tests/unit/utils/test_utils.py
-+++ b/tests/unit/utils/test_utils.py
-@@ -85,7 +85,7 @@ class TestPassword(unittest.TestCase):
-         def hmac_hashfunc(cls, msg):
-             if not isinstance(msg, bytes):
-                 msg = msg.encode('utf-8')
--            return hmac.new(b'mysecretkey', msg)
-+            return hmac.new(b'mysecretkey', msg, digestmod=hashlib.md5)
- 
-         class HMACPassword(Password):
-             hashfunc = hmac_hashfunc
-@@ -95,15 +95,15 @@ class TestPassword(unittest.TestCase):
-         password.set('foo')
- 
-         self.assertEquals(str(password),
--                          hmac.new(b'mysecretkey', b'foo').hexdigest())
-+                          hmac.new(b'mysecretkey', b'foo', digestmod=hashlib.md5).hexdigest())
- 
-     def test_constructor(self):
--        hmac_hashfunc = lambda msg: hmac.new(b'mysecretkey', msg)
-+        hmac_hashfunc = lambda msg: hmac.new(b'mysecretkey', msg, digestmod=hashlib.md5)
- 
-         password = Password(hashfunc=hmac_hashfunc)
-         password.set('foo')
-         self.assertEquals(password.str,
--                          hmac.new(b'mysecretkey', b'foo').hexdigest())
-+                          hmac.new(b'mysecretkey', b'foo', digestmod=hashlib.md5).hexdigest())
- 
- 
- class TestPythonizeName(unittest.TestCase):

Copied: python-boto/repos/community-staging-any/boto-python-3.8.patch (from rev 1064867, python-boto/trunk/boto-python-3.8.patch)
===================================================================
--- boto-python-3.8.patch	                        (rev 0)
+++ boto-python-3.8.patch	2021-12-03 19:40:41 UTC (rev 1064868)
@@ -0,0 +1,58 @@
+diff --git a/boto/ecs/item.py b/boto/ecs/item.py
+index 79177a31..a9504e9d 100644
+--- a/boto/ecs/item.py
++++ b/boto/ecs/item.py
+@@ -21,7 +21,11 @@
+ 
+ 
+ import xml.sax
+-import cgi
++try:
++    from html import escape as html_escape
++except ImportError:
++    # Python 2
++    from cgi import escape as html_escape
+ from boto.compat import six, StringIO
+ 
+ class ResponseGroup(xml.sax.ContentHandler):
+@@ -67,7 +71,7 @@ class ResponseGroup(xml.sax.ContentHandler):
+         return None
+ 
+     def endElement(self, name, value, connection):
+-        self._xml.write("%s</%s>" % (cgi.escape(value).replace("&amp;", "&"), name))
++        self._xml.write("%s</%s>" % (html_escape(value).replace("&amp;", "&"), name))
+         if len(self._nodepath) == 0:
+             return
+         obj = None
+diff --git a/tests/unit/utils/test_utils.py b/tests/unit/utils/test_utils.py
+index db15b56d..d2e8dfb3 100644
+--- a/tests/unit/utils/test_utils.py
++++ b/tests/unit/utils/test_utils.py
+@@ -85,7 +85,7 @@ class TestPassword(unittest.TestCase):
+         def hmac_hashfunc(cls, msg):
+             if not isinstance(msg, bytes):
+                 msg = msg.encode('utf-8')
+-            return hmac.new(b'mysecretkey', msg)
++            return hmac.new(b'mysecretkey', msg, digestmod=hashlib.md5)
+ 
+         class HMACPassword(Password):
+             hashfunc = hmac_hashfunc
+@@ -95,15 +95,15 @@ class TestPassword(unittest.TestCase):
+         password.set('foo')
+ 
+         self.assertEquals(str(password),
+-                          hmac.new(b'mysecretkey', b'foo').hexdigest())
++                          hmac.new(b'mysecretkey', b'foo', digestmod=hashlib.md5).hexdigest())
+ 
+     def test_constructor(self):
+-        hmac_hashfunc = lambda msg: hmac.new(b'mysecretkey', msg)
++        hmac_hashfunc = lambda msg: hmac.new(b'mysecretkey', msg, digestmod=hashlib.md5)
+ 
+         password = Password(hashfunc=hmac_hashfunc)
+         password.set('foo')
+         self.assertEquals(password.str,
+-                          hmac.new(b'mysecretkey', b'foo').hexdigest())
++                          hmac.new(b'mysecretkey', b'foo', digestmod=hashlib.md5).hexdigest())
+ 
+ 
+ class TestPythonizeName(unittest.TestCase):



More information about the arch-commits mailing list