1 |
commit: ac31d29bbd1d8d8259979588ded81c87590454a8 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 22 06:17:40 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 22 06:23:16 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac31d29b |
7 |
|
8 |
dev-python/aws-sam-translator: Bump to 1.51.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.51.0.ebuild | 59 ++++++++++++++++++++++ |
14 |
2 files changed, 60 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/aws-sam-translator/Manifest b/dev-python/aws-sam-translator/Manifest |
17 |
index efbfc5d3572f..348d4652d017 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.50.0.gh.tar.gz 1103467 BLAKE2B 8d9408b7e92a5c515da47075a0722c937223e73dfa99d92d6daf91997a2edf4e1854afb88f7020fdab3457453d1c54ea77cf7e3466ec71ede36bfb3fc9c469fa SHA512 2f8f494218a1ac018893de59e7bede88b73ce446b29cc818d9309275851b080608656f69c422a9b49c885a6e6cbe7f34826f31cf4da9f2ee0667a1663dbee32a |
22 |
+DIST aws-sam-translator-1.51.0.gh.tar.gz 1107033 BLAKE2B be5d46fa4caa7619c0b959eeec65d0902fdb197369c84c930618398a9b4110c2b1e281c80e63c659be266bb6b2f191495c40578fde73ab31c93bd05906bd55e3 SHA512 d21f3d0b3d4947ad25811f0274e5807089a8d1e2aab76310a80a92f48cfe9ac683bcecea3c833692948f94934be5662cf7585aab0a4a949fcf368901d2e1b9a8 |
23 |
|
24 |
diff --git a/dev-python/aws-sam-translator/aws-sam-translator-1.51.0.ebuild b/dev-python/aws-sam-translator/aws-sam-translator-1.51.0.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..4194237c6fc3 |
27 |
--- /dev/null |
28 |
+++ b/dev-python/aws-sam-translator/aws-sam-translator-1.51.0.ebuild |
29 |
@@ -0,0 +1,59 @@ |
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-3.2[${PYTHON_USEDEP}] |
59 |
+ dev-python/pyyaml[${PYTHON_USEDEP}] |
60 |
+" |
61 |
+BDEPEND=" |
62 |
+ test? ( |
63 |
+ dev-python/mock[${PYTHON_USEDEP}] |
64 |
+ dev-python/parameterized[${PYTHON_USEDEP}] |
65 |
+ ) |
66 |
+" |
67 |
+ |
68 |
+distutils_enable_tests pytest |
69 |
+ |
70 |
+EPYTEST_DESELECT=( |
71 |
+ tests/validator/test_validator_api.py::TestValidatorApi::test_errors_13_error_definitionuri |
72 |
+ tests/unit/test_region_configuration.py::TestRegionConfiguration::test_is_service_supported_positive_4_ec2 |
73 |
+ tests/plugins/application/test_serverless_app_plugin.py::TestServerlessAppPlugin_on_before_transform_template_translate::test_sar_success_one_app |
74 |
+ tests/plugins/application/test_serverless_app_plugin.py::TestServerlessAppPlugin_on_before_transform_template_translate::test_sar_throttling_doesnt_stop_processing |
75 |
+ tests/plugins/application/test_serverless_app_plugin.py::TestServerlessAppPlugin_on_before_transform_template_translate::test_sleep_between_sar_checks |
76 |
+ tests/plugins/application/test_serverless_app_plugin.py::TestServerlessAppPlugin_on_before_transform_template_translate::test_unexpected_sar_error_stops_processing |
77 |
+ tests/plugins/application/test_serverless_app_plugin.py::TestServerlessAppPlugin_on_before_and_on_after_transform_template::test_time_limit_exceeds_between_combined_sar_calls |
78 |
+) |
79 |
+ |
80 |
+python_prepare_all() { |
81 |
+ # remove pytest-cov dependency |
82 |
+ sed -i -e '/addopts/d' pytest.ini || die |
83 |
+ |
84 |
+ # deps are installed by ebuild, don't try to reinstall them via pip |
85 |
+ truncate --size=0 requirements/*.txt || die |
86 |
+ |
87 |
+ distutils-r1_python_prepare_all |
88 |
+} |