summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-09-19 04:56:34 +0200
committerMichał Górny <mgorny@gentoo.org>2023-09-19 05:16:41 +0200
commit68296b0d46411ad2eaa83de342fb07d5a8c31196 (patch)
treeedb39e26db80f0bb5f398a3b0a38cc96e0e10ddc /dev-python
parentdev-python/hypothesis: Bump to 6.86.2 (diff)
downloadgentoo-68296b0d46411ad2eaa83de342fb07d5a8c31196.tar.gz
gentoo-68296b0d46411ad2eaa83de342fb07d5a8c31196.tar.bz2
gentoo-68296b0d46411ad2eaa83de342fb07d5a8c31196.zip
dev-python/cfn-lint: Bump to 0.80.2
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/cfn-lint/Manifest1
-rw-r--r--dev-python/cfn-lint/cfn-lint-0.80.2.ebuild65
2 files changed, 66 insertions, 0 deletions
diff --git a/dev-python/cfn-lint/Manifest b/dev-python/cfn-lint/Manifest
index f02edfd2acc2..f108f2cdb2fb 100644
--- a/dev-python/cfn-lint/Manifest
+++ b/dev-python/cfn-lint/Manifest
@@ -1,2 +1,3 @@
DIST cfn-lint-0.79.11.tar.gz 3701364 BLAKE2B 434b342a638a241accacd3686b52642737b8b5cce53f4561b3c25029ae3f9a39169cf179591538658658e0d4f39e2b5e61a632b6ef1a00d7e66127ada82e9ada SHA512 757d4fdf0786c312e44204e53b0788edb56a3f7848f858dcc2995943d200c7af0149dad073fa6daee7e109e83e07b4b34f81352c2ec851128a02d012e66e92c8
DIST cfn-lint-0.79.9.tar.gz 3699097 BLAKE2B d85d520b2bbba0c61766716bbc3222ce5cfd6cb467f215c7914a3996682ac86c5feb11ff01f946641cba0cafb7c1a7cf1a081a76f37dd3daa0e03a4a59b35d7c SHA512 ad11ad76cf48a4c1661ef2b627fcf3c9eed08183a6c4401df826c75818f77d7878332ad2915ebc6dcf833eb15f886124fb15d83b46e9e1add88f911edf30db11
+DIST cfn-lint-0.80.2.tar.gz 3738744 BLAKE2B 2de27228f303b37c005a6d947e5d4b9cfc940a2a7c7686956f8e7ac2e17d9a94104af7f43731c8defee643c5ed6cba8c24044af55db8462dd734442ae0637532 SHA512 c4ab580498a6de918fbac12786db461897068cccbb87d04d90f91e10befcf8e9190a8c165ee13ff137575d6a1e7b0999506c4fe9caa45c5e1123a23bb24fea24
diff --git a/dev-python/cfn-lint/cfn-lint-0.80.2.ebuild b/dev-python/cfn-lint/cfn-lint-0.80.2.ebuild
new file mode 100644
index 000000000000..0cd40b7db3d1
--- /dev/null
+++ b/dev-python/cfn-lint/cfn-lint-0.80.2.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYPI_NO_NORMALIZE=1
+PYTHON_COMPAT=( python3_{10..11} )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="CloudFormation Linter"
+HOMEPAGE="
+ https://github.com/aws-cloudformation/cfn-lint/
+ https://pypi.org/project/cfn-lint/
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
+
+RDEPEND="
+ >=dev-python/aws-sam-translator-1.73.0[${PYTHON_USEDEP}]
+ dev-python/jsonpatch[${PYTHON_USEDEP}]
+ >=dev-python/jschema_to_python-1.2.3[${PYTHON_USEDEP}]
+ <dev-python/jsonschema-5[${PYTHON_USEDEP}]
+ >=dev-python/jsonschema-3.0[${PYTHON_USEDEP}]
+ dev-python/junit-xml[${PYTHON_USEDEP}]
+ <dev-python/networkx-4[${PYTHON_USEDEP}]
+ >dev-python/pyyaml-5.4[${PYTHON_USEDEP}]
+ >=dev-python/requests-2.15.0[${PYTHON_USEDEP}]
+ >=dev-python/regex-2021.7.1[${PYTHON_USEDEP}]
+ >=dev-python/sarif_om-1.0.4[${PYTHON_USEDEP}]
+ >=dev-python/sympy-1.0.0[${PYTHON_USEDEP}]
+"
+
+distutils_enable_tests pytest
+
+src_prepare() {
+ # unpin the deps
+ sed -e 's:~=[0-9.]*::' -i setup.py || die
+ distutils-r1_src_prepare
+}
+
+python_test() {
+ local EPYTEST_DESELECT=(
+ # TODO
+ test/unit/module/test_template.py::TestTemplate::test_build_graph
+ # requires git repo
+ test/unit/module/maintenance/test_update_documentation.py::TestUpdateDocumentation::test_update_docs
+ # Internet
+ test/unit/module/formatters/test_formatters.py::TestFormatters::test_sarif_formatter
+ test/unit/module/maintenance/test_update_resource_specs.py::TestUpdateResourceSpecs::test_update_resource_specs_python_3
+ # TODO: it looks as if AWS_DEFAULT_REGION didn't work
+ test/unit/module/core/test_run_cli.py::TestCli::test_bad_config
+ test/unit/module/core/test_run_cli.py::TestCli::test_override_parameters
+ test/unit/module/core/test_run_cli.py::TestCli::test_positional_template_parameters
+ test/unit/module/core/test_run_cli.py::TestCli::test_template_config
+ )
+
+ # from tox.ini
+ local -x AWS_DEFAULT_REGION=us-east-1
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+ epytest
+}