diff options
author | Michał Górny <mgorny@gentoo.org> | 2024-11-22 06:45:12 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2024-11-22 13:32:13 +0100 |
commit | f09cbd0eaed3b3f5da02663df8d4fbd59d547eb3 (patch) | |
tree | 31bf7708b9b30d3494ed5457ff5a3658b820bb4f /dev-python/aws-sam-translator | |
parent | app-admin/awscli: Bump to 1.36.8 (diff) | |
download | gentoo-f09cbd0eaed3b3f5da02663df8d4fbd59d547eb3.tar.gz gentoo-f09cbd0eaed3b3f5da02663df8d4fbd59d547eb3.tar.bz2 gentoo-f09cbd0eaed3b3f5da02663df8d4fbd59d547eb3.zip |
dev-python/aws-sam-translator: Bump to 1.94.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/aws-sam-translator')
-rw-r--r-- | dev-python/aws-sam-translator/Manifest | 1 | ||||
-rw-r--r-- | dev-python/aws-sam-translator/aws-sam-translator-1.94.0.ebuild | 62 |
2 files changed, 63 insertions, 0 deletions
diff --git a/dev-python/aws-sam-translator/Manifest b/dev-python/aws-sam-translator/Manifest index f52d10ce2f1b..9325337a1dd7 100644 --- a/dev-python/aws-sam-translator/Manifest +++ b/dev-python/aws-sam-translator/Manifest @@ -1,2 +1,3 @@ DIST serverless-application-model-1.91.0.gh.tar.gz 5710886 BLAKE2B 29d5825610e8e3253cd9d5659a65659f39c3a423061eb0e6ac754fcf3a943aa87799653e26dd901ae94b71c7290f791f6a8b16d089fa43c9f0cd3f3bbf973a34 SHA512 04cb4f61673005928b2361a8c9d304c5d29719a32dd962da0c34d3685d8bc4c8282d7fb61f6d228e3de6a5a037405a8ecacdc020bc9ace229fcbdb22ad99902e DIST serverless-application-model-1.92.0.gh.tar.gz 5761362 BLAKE2B 57546b2996795a8a53ef678b790bdd7fe313c5d012ba40be22529e133d15687b095d95ad905db66ca663d885a0d28b9be4d660f6227fc2fede13baf3a5951035 SHA512 a5ac0e4489f75ca0554d9a0d0a7a4f2439fd14224a2bcd1bb6e21717684a4c5e5e204c7b3eb67f9264aceaa30d47474affba7357e4006a2250a870392e67411c +DIST serverless-application-model-1.94.0.gh.tar.gz 5784510 BLAKE2B 11e21c28253ede80e43730a3e885a0dc88f3020a9864c82e78b3daa1bfb57624bde911e4a66419e941c60394f467c094704d3c0eb365992c3fa53aaa2de5e285 SHA512 c1fa136bf96877db477dfed0a7024d77733cad3f7101b40a38f6386cfca8a9c25c0d4121fb1caa706b4bf879e2161c5009442e9391736e1d03777f20320f5bbb diff --git a/dev-python/aws-sam-translator/aws-sam-translator-1.94.0.ebuild b/dev-python/aws-sam-translator/aws-sam-translator-1.94.0.ebuild new file mode 100644 index 000000000000..d44f5d73eece --- /dev/null +++ b/dev-python/aws-sam-translator/aws-sam-translator-1.94.0.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..13} ) + +inherit distutils-r1 multiprocessing + +MY_P=serverless-application-model-${PV} +DESCRIPTION="A library that transform SAM templates into AWS CloudFormation templates" +HOMEPAGE=" + https://github.com/aws/serverless-application-model/ + https://pypi.org/project/aws-sam-translator/ +" +SRC_URI=" + https://github.com/aws/serverless-application-model/archive/v${PV}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux" + +RDEPEND=" + <dev-python/boto3-2[${PYTHON_USEDEP}] + >=dev-python/boto3-1.19.5[${PYTHON_USEDEP}] + >=dev-python/jsonschema-3.2[${PYTHON_USEDEP}] + <dev-python/pydantic-3[${PYTHON_USEDEP}] + >=dev-python/pydantic-1.8[${PYTHON_USEDEP}] + <dev-python/typing-extensions-5[${PYTHON_USEDEP}] + >=dev-python/typing-extensions-4.4[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/mock[${PYTHON_USEDEP}] + dev-python/parameterized[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_prepare_all() { + # so much noise... + sed -i -e '/log_cli/d' pytest.ini || die + + # deps are installed by ebuild, don't try to reinstall them via pip + truncate --size=0 requirements/*.txt || die + + distutils-r1_python_prepare_all +} + +python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + local -x AWS_DEFAULT_REGION=us-east-1 + epytest -o addopts= -o filterwarnings= \ + -p xdist -n "$(makeopts_jobs)" --dist=worksteal +} |