From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D409C158090 for ; Wed, 18 May 2022 23:18:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 13256E089C; Wed, 18 May 2022 23:18:55 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id F092AE089C for ; Wed, 18 May 2022 23:18:54 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BD950341714 for ; Wed, 18 May 2022 23:18:52 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 219743B8 for ; Wed, 18 May 2022 23:18:51 +0000 (UTC) From: "Marek Szuba" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Marek Szuba" Message-ID: <1652915922.7e35bca138fd214107bfbeea344c8616bed6d912.marecki@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/ansible-lint/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-admin/ansible-lint/Manifest app-admin/ansible-lint/ansible-lint-6.1.0.ebuild X-VCS-Directories: app-admin/ansible-lint/ X-VCS-Committer: marecki X-VCS-Committer-Name: Marek Szuba X-VCS-Revision: 7e35bca138fd214107bfbeea344c8616bed6d912 X-VCS-Branch: master Date: Wed, 18 May 2022 23:18:51 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 29a74c15-a040-4c2c-82e7-166359afca51 X-Archives-Hash: 895e5941d766aae6d5a8ed6bb2ddc732 commit: 7e35bca138fd214107bfbeea344c8616bed6d912 Author: Marek Szuba gentoo org> AuthorDate: Wed May 18 23:16:44 2022 +0000 Commit: Marek Szuba gentoo org> CommitDate: Wed May 18 23:18:42 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7e35bca1 app-admin/ansible-lint: add 6.1.0 Signed-off-by: Marek Szuba gentoo.org> app-admin/ansible-lint/Manifest | 1 + app-admin/ansible-lint/ansible-lint-6.1.0.ebuild | 77 ++++++++++++++++++++++++ 2 files changed, 78 insertions(+) diff --git a/app-admin/ansible-lint/Manifest b/app-admin/ansible-lint/Manifest index 5f77818c06af..9337e75978ed 100644 --- a/app-admin/ansible-lint/Manifest +++ b/app-admin/ansible-lint/Manifest @@ -1,2 +1,3 @@ DIST ansible-lint-5.4.0.tar.gz 349353 BLAKE2B 9f41abdf1e9485afa4c8ed9498627b0dcbdcf57916f3b57c9886de8bd806e4e5b34e7e9c2e66b44ac8009a0afcea4d8566900ee8d391eaca61081fa23323c41c SHA512 f1bbbb49eb77991d60b6087646c695a938d328d719bba67707af4ed858de857d383b78490bcf0930cffebd13a0b0abde20269a47e47e4713a37da715a28c5da0 DIST ansible-lint-6.0.2.tar.gz 195044 BLAKE2B 3334049dd1dc05444c6c362601da8d7e808c6b3473e87613b8892651cecb76058cb0aa370aa5d00cf6bc76ee3b096480fdce52facee4f043c01d6c76084860ba SHA512 a47e79c59dfcf3e36654247bd206581798f2559261142e3943b60e0688d75b5a6332832a9f9127f99b2faa6afff959a33c55fbc80aa5881f064725998420f679 +DIST ansible-lint-6.1.0.tar.gz 223702 BLAKE2B 5aeaccbaf9c1bd8e7236e946b408779b42e0839766a485bdbb80ece19ed63b57fa38cb44796c860f6929bb2e98acd21a3de3a9c07486535ed3e6ab5cb499c8d9 SHA512 c1ca5abe8e5f441a86db6a4b4fa03c2d87ed2277151ada9af34c3d8af6934d2c1d4b6bffbc11d6cfb7cd7601c9e43a041fe8a2b940fa0630532df05004e11d15 diff --git a/app-admin/ansible-lint/ansible-lint-6.1.0.ebuild b/app-admin/ansible-lint/ansible-lint-6.1.0.ebuild new file mode 100644 index 000000000000..994f48b51065 --- /dev/null +++ b/app-admin/ansible-lint/ansible-lint-6.1.0.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..10} ) +DISTUTILS_USE_PEP517=setuptools + +inherit distutils-r1 + +DESCRIPTION="Checks ansible playbooks for practices and behaviour that can be improved" +HOMEPAGE="https://github.com/ansible/ansible-lint" +# PyPI tarballs do not contain all the data files needed by the tests +SRC_URI="https://github.com/ansible/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~riscv" + +# Since 6.0.2, access to Ansible Galaxy (i.e. the Internet) is required even to get +# the test suite started (Bug #836582). TODO: Talk to upstream about how to bypass this. +PROPERTIES="test_network" +RESTRICT="test" + +RDEPEND=" + >=app-admin/ansible-base-2.12.0[${PYTHON_USEDEP}] + >=dev-python/ansible-compat-2.0.3[${PYTHON_USEDEP}] + >=dev-python/enrich-1.2.6[${PYTHON_USEDEP}] + >=dev-python/jsonschema-4.5.1[${PYTHON_USEDEP}] + dev-python/packaging[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + >=dev-python/rich-9.5.1[${PYTHON_USEDEP}] + >=dev-python/ruamel-yaml-0.15.37[${PYTHON_USEDEP}] + >=dev-python/wcmatch-7.0[${PYTHON_USEDEP}] + >=dev-util/yamllint-1.25.0[${PYTHON_USEDEP}]" +BDEPEND=" + >=dev-python/setuptools_scm-3.5.0[${PYTHON_USEDEP}] + >=dev-python/setuptools_scm_git_archive-1.0[${PYTHON_USEDEP}] + test? ( + >=dev-python/flaky-3.7.0[${PYTHON_USEDEP}] + >=dev-python/pytest-plus-0.2[${PYTHON_USEDEP}] + >=dev-python/pytest-xdist-2.5.0[${PYTHON_USEDEP}] + )" + +PATCHES=( + "${FILESDIR}"/${PN}-6.0.2_test-module-check.patch +) + +# Skip problematic tests: +# - test_call_from_outside_venv doesn't play nicely with the sandbox +# - all test_eco and some test_prerun tests require Internet access +# - as of 5.4.0, test_cli_auto_detect fails even when run manually with tox +EPYTEST_DESELECT=( + test/test_eco.py + test/test_main.py::test_call_from_outside_venv + test/test_prerun.py::test_install_collection + test/test_prerun.py::test_prerun_reqs_v1 + test/test_prerun.py::test_prerun_reqs_v2 + test/test_prerun.py::test_require_collection_wrong_version + test/test_utils.py::test_cli_auto_detect +) + +distutils_enable_tests pytest + +python_test() { + # For some reason the schema files do not get installed in spite of being present in release tarballs, + # with the test suite relying on "refreshing" them (i.e. downloading them from the Internet) instead + # - and seemingly occasionally failing to do even that right. Just stick with the bundled files. + # TODO: check if this is still needed every new release. + local schemadir="${BUILD_DIR}/install/$(python_get_sitedir)/ansiblelint/schemas/" + cp src/ansiblelint/schemas/*.json "${schemadir}" || die + + epytest test + + # Make sure src_install() does not install these regardless of whether src_test() has run or not. + rm "${schemadir}"/*.json || die +}