Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/moto/
Date: Sat, 17 Jul 2021 07:03:51
Message-Id: 1626505422.cc860d7c34cad5f1a76c1cf18914646c22a87d63.mgorny@gentoo
1 commit: cc860d7c34cad5f1a76c1cf18914646c22a87d63
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jul 17 06:33:32 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Jul 17 07:03:42 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc860d7c
7
8 dev-python/moto: Bump to 2.1.0
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/moto/Manifest | 1 +
13 dev-python/moto/moto-2.1.0.ebuild | 75 +++++++++++++++++++++++++++++++++++++++
14 2 files changed, 76 insertions(+)
15
16 diff --git a/dev-python/moto/Manifest b/dev-python/moto/Manifest
17 index 63c81e1c7c4..0b33f686923 100644
18 --- a/dev-python/moto/Manifest
19 +++ b/dev-python/moto/Manifest
20 @@ -9,3 +9,4 @@ DIST moto-2.0.6.tar.gz 1557871 BLAKE2B dd4c23758bc9c98fbd2b2a70af744daa245fc8b4b
21 DIST moto-2.0.7.tar.gz 1565849 BLAKE2B 1c6491828a43156fd347bcce80f3440cd8d4964e28bab19593e29fd88aed558652b08c81c577312f9c612adc666ddd35fdd46b4d2d8fb82eef380210e9c62d8d SHA512 5df26f478909c57d4ba76bb7c6e002c37d7f604084c157744be32da93dbb705605a7a85eb0774cbf2c0083f7096f01075ddb1a119cb7ac2f3931cf58896f1629
22 DIST moto-2.0.8.tar.gz 1569426 BLAKE2B 746313241d49558ab49d7e2116406f128a315a9fca40956808e7f901e91518551a1f75c95c9ce5c92534221d1db3e01a3baa2cef6cadab9a9d024cc30d8ce0e2 SHA512 5cf1a47c97100b76ad9b69787ce4df00f24f93ba1a36a242cea535ede649af457ff043b44f1cce4a4e44b6735844652f69271f18edac0748b636f4e519545018
23 DIST moto-2.0.9.tar.gz 1614328 BLAKE2B 0bb9e3dcc0c25476b7fdabeecc31be6904a21d6a77f6ce3d9c9c176625873d30c55321c8939ecb8bbc91ee64faab9cd7231150dfdcbd4d5d7d3dc8eae614d9f2 SHA512 41b32aa192dd5c5052a90f345f29e696f9cc6abb3698ea0b738f8805fc920f4abf7d418a64aecf6efd66162aad631c88754d5e4e349ca2ba5b393771038219cb
24 +DIST moto-2.1.0.tar.gz 1638267 BLAKE2B ee778cab1a9a448408bbc495a148201bb016c2ba29076062360db23d86d725758303c32e1fb1a3f9e11112deb1cbca686fc956ddafd259fd942654510ba12147 SHA512 cae18324200d827a1750c5dbe2df2ea68dc66a5b8ff40b4c873f7511d576417c1a2b20203cc126d84b99b1aec5ef8700825271893933e6cc4bd61c0082b9e9be
25
26 diff --git a/dev-python/moto/moto-2.1.0.ebuild b/dev-python/moto/moto-2.1.0.ebuild
27 new file mode 100644
28 index 00000000000..97c46227e99
29 --- /dev/null
30 +++ b/dev-python/moto/moto-2.1.0.ebuild
31 @@ -0,0 +1,75 @@
32 +# Copyright 1999-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +PYTHON_COMPAT=( python3_{8..9} )
37 +DISTUTILS_USE_SETUPTOOLS=rdepend
38 +inherit distutils-r1
39 +
40 +DESCRIPTION="Mock library for boto"
41 +HOMEPAGE="https://github.com/spulec/moto"
42 +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
43 +
44 +LICENSE="Apache-2.0"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~arm ~arm64 ~x86"
47 +
48 +RDEPEND="
49 + >=dev-python/aws-xray-sdk-python-0.93[${PYTHON_USEDEP}]
50 + $(python_gen_cond_dep 'dev-python/backports-tempfile[${PYTHON_USEDEP}]' python3_{6,7})
51 + dev-python/boto[${PYTHON_USEDEP}]
52 + dev-python/cfn-python-lint[${PYTHON_USEDEP}]
53 + >=dev-python/cryptography-3.3.1[${PYTHON_USEDEP}]
54 + dev-python/cookies[${PYTHON_USEDEP}]
55 + dev-python/dicttoxml[${PYTHON_USEDEP}]
56 + >=dev-python/docker-py-2.5.1[${PYTHON_USEDEP}]
57 + >=dev-python/idna-2.5[${PYTHON_USEDEP}]
58 + >=dev-python/jinja-2.10.1[${PYTHON_USEDEP}]
59 + >=dev-python/jsondiff-1.1.2[${PYTHON_USEDEP}]
60 + >=dev-python/boto3-1.9.201[${PYTHON_USEDEP}]
61 + >=dev-python/botocore-1.12.201[${PYTHON_USEDEP}]
62 + dev-python/flask[${PYTHON_USEDEP}]
63 + dev-python/flask-cors[${PYTHON_USEDEP}]
64 + dev-python/more-itertools[${PYTHON_USEDEP}]
65 + dev-python/pretty-yaml[${PYTHON_USEDEP}]
66 + >=dev-python/pyyaml-5.1[${PYTHON_USEDEP}]
67 + >=dev-python/python-dateutil-2.1[${PYTHON_USEDEP}]
68 + dev-python/pytz[${PYTHON_USEDEP}]
69 + dev-python/python-dateutil[${PYTHON_USEDEP}]
70 + dev-python/python-jose[${PYTHON_USEDEP}]
71 + dev-python/python-sshpubkeys[${PYTHON_USEDEP}]
72 + >=dev-python/responses-0.9.0[${PYTHON_USEDEP}]
73 + >=dev-python/requests-2.5[${PYTHON_USEDEP}]
74 + dev-python/xmltodict[${PYTHON_USEDEP}]
75 + >=dev-python/six-1.9[${PYTHON_USEDEP}]
76 + dev-python/werkzeug[${PYTHON_USEDEP}]
77 + dev-python/zipp[${PYTHON_USEDEP}]
78 +"
79 +BDEPEND="
80 + test? (
81 + dev-python/freezegun[${PYTHON_USEDEP}]
82 + dev-python/responses[${PYTHON_USEDEP}]
83 + >=dev-python/sure-1.4.11[${PYTHON_USEDEP}]
84 + )
85 +"
86 +
87 +distutils_enable_tests pytest
88 +
89 +python_prepare_all() {
90 + # unpin indirect dep on ecdsa that's supposed to workaround pip bugs
91 + sed -i -e '/ecdsa/s:<0.15::' setup.py || die
92 +
93 + distutils-r1_python_prepare_all
94 +}
95 +
96 +python_test() {
97 + local ignore=(
98 + # incompatible versions?
99 + tests/test_core/test_decorator_calls.py
100 + tests/test_s3/test_s3_classdecorator.py
101 + )
102 +
103 + # pytest-django causes freezegun try to mangle stuff inside django
104 + # which fails when django is not really used
105 + epytest -p no:django -m 'not network' ${ignore[@]/#/--ignore }
106 +}