1 |
commit: 018a83327cacd2617dc5101e4cd63d1b4fecbf0d |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jun 8 04:42:46 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jun 8 05:34:51 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=018a8332 |
7 |
|
8 |
dev-python/aws-sam-translator: Bump to 1.46.0 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/aws-sam-translator/Manifest | 1 + |
13 |
.../aws-sam-translator-1.46.0.ebuild | 60 ++++++++++++++++++++++ |
14 |
2 files changed, 61 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/aws-sam-translator/Manifest b/dev-python/aws-sam-translator/Manifest |
17 |
index 5774ad0bd709..c32348303ba8 100644 |
18 |
--- a/dev-python/aws-sam-translator/Manifest |
19 |
+++ b/dev-python/aws-sam-translator/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST aws-sam-translator-1.45.0.tar.gz 1053946 BLAKE2B b34c7417bd20fbd5907992e860ff7acaf1f6dea699d4385bda96467ff03965f30b068835af377d41dcd0ef210509d0b21a05b7e65394771981f8b499730acd41 SHA512 218eda9498fe0db9bab71cdd09d128403248e80936eb2a0e8afeff31f5f8e959aa9d70997ed565c05739ab40bc93d51d1fd84969ec9d7e48b8f10c062b2f74d1 |
22 |
+DIST aws-sam-translator-1.46.0.gh.tar.gz 1082378 BLAKE2B 915f09ab6ecdecca7cc149ebd93d7370a3cfd103cf7e222fe5f8aefe084a8f285606a7a18467d996d643c70b132014d7ebeeb6d313498b8879ad13d905f3afbb SHA512 c33edd6209d7051a0d8132cdb675953a691f371e4ce02207d047be03211aff4d4c491c0f8d0fb8776a0693ff702d24ffc338d005bc9c6f166658e8293e478731 |
23 |
|
24 |
diff --git a/dev-python/aws-sam-translator/aws-sam-translator-1.46.0.ebuild b/dev-python/aws-sam-translator/aws-sam-translator-1.46.0.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..50524b4a89f5 |
27 |
--- /dev/null |
28 |
+++ b/dev-python/aws-sam-translator/aws-sam-translator-1.46.0.ebuild |
29 |
@@ -0,0 +1,60 @@ |
30 |
+# Copyright 1999-2022 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+DISTUTILS_USE_PEP517=setuptools |
36 |
+PYTHON_COMPAT=( python3_{8..11} ) |
37 |
+ |
38 |
+inherit distutils-r1 |
39 |
+ |
40 |
+DESCRIPTION="A library that transform SAM templates into AWS CloudFormation templates" |
41 |
+HOMEPAGE=" |
42 |
+ https://github.com/aws/serverless-application-model/ |
43 |
+ https://pypi.org/project/aws-sam-translator/ |
44 |
+" |
45 |
+SRC_URI=" |
46 |
+ https://github.com/aws/serverless-application-model/archive/v${PV}.tar.gz |
47 |
+ -> ${P}.gh.tar.gz |
48 |
+" |
49 |
+S="${WORKDIR}/serverless-application-model-${PV}" |
50 |
+ |
51 |
+LICENSE="Apache-2.0" |
52 |
+SLOT="0" |
53 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux" |
54 |
+ |
55 |
+RDEPEND=" |
56 |
+ <dev-python/boto3-2[${PYTHON_USEDEP}] |
57 |
+ >=dev-python/boto3-1.19.5[${PYTHON_USEDEP}] |
58 |
+ >=dev-python/jsonschema-2.6[${PYTHON_USEDEP}] |
59 |
+ >=dev-python/six-1.11[${PYTHON_USEDEP}] |
60 |
+ dev-python/pyyaml[${PYTHON_USEDEP}] |
61 |
+" |
62 |
+BDEPEND=" |
63 |
+ test? ( |
64 |
+ dev-python/mock[${PYTHON_USEDEP}] |
65 |
+ dev-python/parameterized[${PYTHON_USEDEP}] |
66 |
+ ) |
67 |
+" |
68 |
+ |
69 |
+distutils_enable_tests pytest |
70 |
+ |
71 |
+EPYTEST_DESELECT=( |
72 |
+ tests/validator/test_validator_api.py::TestValidatorApi::test_errors_13_error_definitionuri |
73 |
+ tests/unit/test_region_configuration.py::TestRegionConfiguration::test_is_service_supported_positive_4_ec2 |
74 |
+ tests/plugins/application/test_serverless_app_plugin.py::TestServerlessAppPlugin_on_before_transform_template_translate::test_sar_success_one_app |
75 |
+ tests/plugins/application/test_serverless_app_plugin.py::TestServerlessAppPlugin_on_before_transform_template_translate::test_sar_throttling_doesnt_stop_processing |
76 |
+ tests/plugins/application/test_serverless_app_plugin.py::TestServerlessAppPlugin_on_before_transform_template_translate::test_sleep_between_sar_checks |
77 |
+ tests/plugins/application/test_serverless_app_plugin.py::TestServerlessAppPlugin_on_before_transform_template_translate::test_unexpected_sar_error_stops_processing |
78 |
+ tests/plugins/application/test_serverless_app_plugin.py::TestServerlessAppPlugin_on_before_and_on_after_transform_template::test_time_limit_exceeds_between_combined_sar_calls |
79 |
+) |
80 |
+ |
81 |
+python_prepare_all() { |
82 |
+ # remove pytest-cov dependency |
83 |
+ sed -i -e '/addopts/d' pytest.ini || die |
84 |
+ |
85 |
+ # deps are installed by ebuild, don't try to reinstall them via pip |
86 |
+ truncate --size=0 requirements/*.txt || die |
87 |
+ |
88 |
+ distutils-r1_python_prepare_all |
89 |
+} |