Gentoo Archives: gentoo-commits

From: Zac Medico <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/moto/
Date: Tue, 25 Jun 2019 01:35:52
Message-Id: 1561426440.92ba502a5a7af071acffa095f1469f8e1f828728.zmedico@gentoo
1 commit: 92ba502a5a7af071acffa095f1469f8e1f828728
2 Author: Zac Medico <zachary.medico <AT> sony <DOT> com>
3 AuthorDate: Sat Jun 22 02:18:00 2019 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 25 01:34:00 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=92ba502a
7
8 dev-python/moto: Bump to version 1.3.8
9
10 Bug: https://bugs.gentoo.org/688034
11 Package-Manager: Portage-2.3.67, Repoman-2.3.14
12 Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>
13
14 dev-python/moto/Manifest | 1 +
15 dev-python/moto/moto-1.3.8.ebuild | 70 +++++++++++++++++++++++++++++++++++++++
16 2 files changed, 71 insertions(+)
17
18 diff --git a/dev-python/moto/Manifest b/dev-python/moto/Manifest
19 index de5f905db66..d5e90c894b6 100644
20 --- a/dev-python/moto/Manifest
21 +++ b/dev-python/moto/Manifest
22 @@ -1,2 +1,3 @@
23 DIST moto-0.4.30.tar.gz 614008 BLAKE2B 2868ab25414e488299cb521ce814239698466d69e806245fd86ceb9d5835d08fa530f2da0a5a16f595a88b3c0e421cc264f361bc68d31841726896826240fbab SHA512 ece27979911f46adbb0aec9aa3755b13c09ced00b24ea136ab9c8a8a992550e9c38dac15d8b0c71822953f070761083253ee5fb5cbe44a4b108d140ab4407699
24 DIST moto-1.0.1.tar.gz 731617 BLAKE2B 6f20c07c0635a8c10f8f70530aeaac5ed7c2136d4fc87ff57774a95f4d2e1ea8cf1100b9f0871b29138cec9059de5746a9c01104d856f8248edbb648cc4a78e0 SHA512 3171ea3e8f9d267960a7b82caf7e42b86fceba5a80e96d35b849e4e72b7fc6aed94090161219a520f9c1b4050f7de12e0f6c0d560ab1f90ca43fc0387b62d377
25 +DIST moto-1.3.8.tar.gz 1571716 BLAKE2B 8e79808d8488bcf8c15e8b5a55e93392ceb5f642f1f52c0af441cecb7adfe23a718f6d283e473e5dab82ddd21bcbed36ecb52b444cbd933405d13c8818e4f74d SHA512 901556249a2a28885b7f77e9f2c209b06391efcea66b78ce3c16edec14bcd03b251c37ef5d800d8f7a35180d59ce7568a68bcebf18e25b092eb5de801db6c587
26
27 diff --git a/dev-python/moto/moto-1.3.8.ebuild b/dev-python/moto/moto-1.3.8.ebuild
28 new file mode 100644
29 index 00000000000..3849836febe
30 --- /dev/null
31 +++ b/dev-python/moto/moto-1.3.8.ebuild
32 @@ -0,0 +1,70 @@
33 +# Copyright 1999-2019 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +PYTHON_COMPAT=( python2_7 python3_{5,6,7} )
38 +
39 +inherit distutils-r1
40 +
41 +DESCRIPTION="Mock library for boto"
42 +HOMEPAGE="https://github.com/spulec/moto"
43 +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
44 +
45 +LICENSE="Apache-2.0"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
48 +
49 +IUSE="test"
50 +RESTRICT="!test? ( test )"
51 +
52 +RDEPEND="
53 + dev-python/aws-xray-sdk-python[${PYTHON_USEDEP}]
54 + dev-python/backports-tempfile[${PYTHON_USEDEP}]
55 + dev-python/cfn-python-lint[${PYTHON_USEDEP}]
56 + dev-python/cookies[${PYTHON_USEDEP}]
57 + dev-python/dicttoxml[${PYTHON_USEDEP}]
58 + >=dev-python/docker-py-2.5.1[${PYTHON_USEDEP}]
59 + >=dev-python/jinja-2.8[${PYTHON_USEDEP}]
60 + dev-python/jsondiff[${PYTHON_USEDEP}]
61 + >=dev-python/boto-2.36.0[${PYTHON_USEDEP}]
62 + >=dev-python/boto3-1.6.16[${PYTHON_USEDEP}]
63 + >=dev-python/botocore-1.12.13[${PYTHON_USEDEP}]
64 + dev-python/flask[${PYTHON_USEDEP}]
65 + dev-python/pretty-yaml[${PYTHON_USEDEP}]
66 + dev-python/python-dateutil[${PYTHON_USEDEP}]
67 + dev-python/pytz[${PYTHON_USEDEP}]
68 + dev-python/python-dateutil[${PYTHON_USEDEP}]
69 + dev-python/python-jose[${PYTHON_USEDEP}]
70 + dev-python/requests[${PYTHON_USEDEP}]
71 + dev-python/xmltodict[${PYTHON_USEDEP}]
72 + dev-python/six[${PYTHON_USEDEP}]
73 + dev-python/werkzeug[${PYTHON_USEDEP}]
74 +"
75 +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
76 + test? ( ${RDEPEND}
77 + dev-python/freezegun[${PYTHON_USEDEP}]
78 + dev-python/mock[${PYTHON_USEDEP}]
79 + dev-python/nose[${PYTHON_USEDEP}]
80 + dev-python/responses[${PYTHON_USEDEP}]
81 + >=dev-python/sure-1.4.11[${PYTHON_USEDEP}]
82 + )
83 +"
84 +
85 +python_prepare_all() {
86 + # Disable tests that fail with network-sandbox.
87 + sed -e 's|^\(def \)\(test_context_manager()\)|\1_\2|' \
88 + -e 's|^\(def \)\(test_decorator_start_and_stop()\)|\1_\2|' \
89 + -i tests/test_core/test_decorator_calls.py || die
90 +
91 + # Disable tests that fail with userpriv.
92 + sed -e 's|^\(def \)\(test_invoke_function_from_sns()\)|\1_\2|' \
93 + -e 's|^\(def \)\(test_invoke_requestresponse_function()\)|\1_\2|' \
94 + -i tests/test_awslambda/test_lambda.py || die
95 +
96 + distutils-r1_python_prepare_all
97 +}
98 +
99 +python_test() {
100 + PYTHONPATH=${BUILDDIR}/lib \
101 + nosetests -sv ./tests || die
102 +}