app-admin/salt-3000.2-r3: revbump,pycrypto deps, fix warning (bug #720148)

Get rid of all pycrypto deps from requirements files, fix
collections.abc warning in bundled tornado.

Closes: https://bugs.gentoo.org/720148

Copyright: Sony Interactive Entertainment Inc.
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
This commit is contained in:
Patrick McLean
2020-04-30 11:57:38 -07:00
committed by Patrick McLean
parent 87207f3d1c
commit f46a5f234c
2 changed files with 16 additions and 0 deletions
@@ -0,0 +1,12 @@
diff -ur salt-3000.2.orig/salt/ext/tornado/httputil.py salt-3000.2/salt/ext/tornado/httputil.py
--- salt-3000.2.orig/salt/ext/tornado/httputil.py 2020-04-29 11:29:20.000000000 -0700
+++ salt-3000.2/salt/ext/tornado/httputil.py 2020-04-30 11:52:45.690890947 -0700
@@ -104,7 +104,7 @@
_normalized_headers = _NormalizedHeaderCache(1000)
-class HTTPHeaders(collections.MutableMapping):
+class HTTPHeaders(collections.abc.MutableMapping):
"""A dictionary that maintains ``Http-Header-Case`` for all keys.
Supports multiple values per key via a pair of new methods,
@@ -111,6 +111,7 @@ PATCHES=(
# https://github.com/saltstack/salt/pull/55900
"${FILESDIR}/salt-3000.2-py38-abc.patch"
"${FILESDIR}/salt-3000.2-tornado-py38.patch"
)
python_prepare() {
@@ -122,6 +123,9 @@ python_prepare() {
# tests that require network access
rm tests/unit/{states,modules}/test_zcbuildout.py || die
# make sure pkg_resources doesn't bomb because pycrypto isn't installed
find . -name '*.txt' -print0 | xargs -0 sed -e '/pycrypto>/ d' -i || die
# allow the use of the renamed msgpack
sed -i '/^msgpack/d' requirements/base.txt || die
}