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: Fri, 24 Dec 2021 22:52:47
Message-Id: 1640386357.3c016b2508832127605bb3cdf8b3ed76869daea4.mgorny@gentoo
1 commit: 3c016b2508832127605bb3cdf8b3ed76869daea4
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Dec 24 21:41:53 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Dec 24 22:52:37 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3c016b25
7
8 dev-python/moto: Bump to 2.2.20
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.2.20.ebuild | 87 ++++++++++++++++++++++++++++++++++++++
14 2 files changed, 88 insertions(+)
15
16 diff --git a/dev-python/moto/Manifest b/dev-python/moto/Manifest
17 index e2fa903e6118..f456852a14dd 100644
18 --- a/dev-python/moto/Manifest
19 +++ b/dev-python/moto/Manifest
20 @@ -6,3 +6,4 @@ DIST moto-2.2.16.tar.gz 1982590 BLAKE2B 016760c1eebd418ddb281f9cf438d9e13c868409
21 DIST moto-2.2.17.tar.gz 2013217 BLAKE2B 6fe6dd23e96fe8ba210fc9bbb400ced7c27aa6626097c523579482d58709fbf2d22e217bdab604017ee17c45b4093c8106e15e5894484face28c07bba85d42ea SHA512 73dfa0f15afd299e2c5b4c7833a73b1a7537248b8b332258868bac01890c1861e9a62b6fb634d795d4e37e5505cc51008f1048154044a8238049de5b21f31251
22 DIST moto-2.2.18.tar.gz 2077837 BLAKE2B acb4c428e6cc00711e186a209d61e00366954dabf9ad750f7d639d822daaf7e35399ab8a317fa32756113d41bff27d236be79b7c99b4f2ddbd8fb415144cd985 SHA512 5d416b59b9a3bd97b98ea5196bcfc25accb2bed83e9782cda48acf8ec52a9e304e9fe5edfdd5dda60376df06b7a9c0709acec08d058a99127cc34ef2905ba5b3
23 DIST moto-2.2.19.tar.gz 2083677 BLAKE2B e8471c4acccd213a80b4636a1da2a404f1ea2c10750a80059999212f8ab721ab900c08e29ebb069c271063bf2b67dd837fd311ff25f304956a8551bbc7eb936e SHA512 cd549fad44820900efc28e8d6834c588dac57c44a09214f6f5e51894207e9b1f88300975d60390c14252be29d66696dbe13d484ede87c23c6d16f4c39ba7f2a2
24 +DIST moto-2.2.20.tar.gz 2077649 BLAKE2B 595d9536b21ba442fcf0b9b40e61cc9d3105e220661f67d842cd5e9660ed4ff561e0ea742083e167ef11312b762b204e82381550845a06d6b5a694793adc0c67 SHA512 ac853989ec4822a72139ed62f7bc8b01a91ef2a424b4e622fd0cc6828b3dd21d3a433ba8d50cda5e5b4c03859653d71f9431b7ce2416255be3cf129b1a02e200
25
26 diff --git a/dev-python/moto/moto-2.2.20.ebuild b/dev-python/moto/moto-2.2.20.ebuild
27 new file mode 100644
28 index 000000000000..b0d11c5e4c29
29 --- /dev/null
30 +++ b/dev-python/moto/moto-2.2.20.ebuild
31 @@ -0,0 +1,87 @@
32 +# Copyright 1999-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +PYTHON_COMPAT=( python3_{8..10} )
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 ~riscv ~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-lint[${PYTHON_USEDEP}]
53 + >=dev-python/cryptography-3.3.1[${PYTHON_USEDEP}]
54 + dev-python/cookies[${PYTHON_USEDEP}]
55 + >=dev-python/docker-py-2.5.1[${PYTHON_USEDEP}]
56 + >=dev-python/idna-2.5[${PYTHON_USEDEP}]
57 + >=dev-python/jinja-2.10.1[${PYTHON_USEDEP}]
58 + >=dev-python/jsondiff-1.1.2[${PYTHON_USEDEP}]
59 + dev-python/boto3[${PYTHON_USEDEP}]
60 + dev-python/botocore[${PYTHON_USEDEP}]
61 + dev-python/flask[${PYTHON_USEDEP}]
62 + dev-python/flask-cors[${PYTHON_USEDEP}]
63 + dev-python/more-itertools[${PYTHON_USEDEP}]
64 + dev-python/pretty-yaml[${PYTHON_USEDEP}]
65 + >=dev-python/pyyaml-5.1[${PYTHON_USEDEP}]
66 + >=dev-python/python-dateutil-2.1[${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/python-sshpubkeys[${PYTHON_USEDEP}]
71 + >=dev-python/responses-0.9.0[${PYTHON_USEDEP}]
72 + >=dev-python/requests-2.5[${PYTHON_USEDEP}]
73 + dev-python/xmltodict[${PYTHON_USEDEP}]
74 + dev-python/werkzeug[${PYTHON_USEDEP}]
75 + dev-python/zipp[${PYTHON_USEDEP}]
76 +"
77 +BDEPEND="
78 + test? (
79 + dev-python/freezegun[${PYTHON_USEDEP}]
80 + dev-python/responses[${PYTHON_USEDEP}]
81 + >=dev-python/sure-1.4.11[${PYTHON_USEDEP}]
82 + )
83 +"
84 +
85 +distutils_enable_tests pytest
86 +
87 +python_prepare_all() {
88 + # unpin indirect dep on ecdsa that's supposed to workaround pip bugs
89 + sed -i -e '/ecdsa/s:<0.15::' setup.py || die
90 +
91 + distutils-r1_python_prepare_all
92 +}
93 +
94 +python_test() {
95 + local EPYTEST_DESELECT=(
96 + # TODO
97 + tests/test_firehose/test_firehose_put.py::test_put_record_http_destination
98 + tests/test_firehose/test_firehose_put.py::test_put_record_batch_http_destination
99 + tests/test_swf/responses/test_decision_tasks.py::test_respond_decision_task_completed_with_schedule_activity_task_boto3
100 + tests/test_swf/responses/test_timeouts.py::test_activity_task_heartbeat_timeout_boto3
101 + tests/test_swf/responses/test_timeouts.py::test_decision_task_start_to_close_timeout_boto3
102 + tests/test_swf/responses/test_timeouts.py::test_workflow_execution_start_to_close_timeout_boto3
103 + # Needs network (or docker?) but not marked as such, bug #807031
104 + # TODO: report upstream
105 + tests/test_batch/test_batch_jobs.py::test_terminate_job
106 + tests/test_batch/test_batch_jobs.py::test_cancel_running_job
107 + tests/test_batch/test_batch_jobs.py::test_dependencies
108 + tests/test_batch/test_batch_jobs.py::test_container_overrides
109 + tests/test_cloudformation/test_cloudformation_custom_resources.py::test_create_custom_lambda_resource__verify_cfnresponse_failed
110 + tests/test_cloudformation/test_cloudformation_stack_integration.py::test_lambda_function
111 + tests/test_sqs/test_integration.py::test_invoke_function_from_sqs_exception
112 + tests/test_sqs/test_sqs_integration.py::test_invoke_function_from_sqs_exception
113 + )
114 +
115 + # pytest-django causes freezegun try to mangle stuff inside django
116 + # which fails when django is not really used
117 + epytest -p no:django -m 'not network'
118 +}