From 558f6cf88b563f6aa25dd54ea6b4a88c80c477a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Mon, 28 Oct 2024 06:06:38 +0100 Subject: [PATCH] dev-python/pylint-venv: Bump to 3.0.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- dev-python/pylint-venv/Manifest | 1 + .../pylint-venv/pylint-venv-3.0.4.ebuild | 41 +++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 dev-python/pylint-venv/pylint-venv-3.0.4.ebuild diff --git a/dev-python/pylint-venv/Manifest b/dev-python/pylint-venv/Manifest index b07f4f95033cb..1a8b2ab200fc3 100644 --- a/dev-python/pylint-venv/Manifest +++ b/dev-python/pylint-venv/Manifest @@ -1 +1,2 @@ DIST pylint-venv-3.0.3.gh.tar.gz 15432 BLAKE2B 2a0315967aa7ac9628a7633360249d3bf5904d2e9939fe1c962ad7066694fd5b073df71e89f0ff4a6c278c3ccf6b41cd70c0b2928b58bbaa19a7910f18f7b697 SHA512 83632d7063f8e14bcf9213a059e8e6e20222518e5cc3d19a7cc3761e11ece2aaea9b2e648f0cacdb37e6995fd85371920ed8bcc7a28545c571d12da8e8b3d795 +DIST pylint-venv-3.0.4.gh.tar.gz 16790 BLAKE2B 3b85537d53844900f109bc3fee3cbd62ae958785df8a14f23e5fd4be181aa7b207c207daf87fd3bd7f18378e3a19a8e7586b783bb68dc656e630614ba8f59232 SHA512 e30e7dd0c90280c51f0ff5795a769a8cb45f177274d110c46642af0b68216d539441d36eed55046e0f426cf3c7c8878699c0750913e78b78d07b6dbfd7defe02 diff --git a/dev-python/pylint-venv/pylint-venv-3.0.4.ebuild b/dev-python/pylint-venv/pylint-venv-3.0.4.ebuild new file mode 100644 index 0000000000000..1564a29b3717f --- /dev/null +++ b/dev-python/pylint-venv/pylint-venv-3.0.4.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=poetry +PYTHON_COMPAT=( python3_{10..12} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="Init-hook to use the same Pylint with different virtual environments" +HOMEPAGE=" + https://pypi.org/project/pylint-venv/ + https://github.com/jgosmann/pylint-venv/ +" +SRC_URI=" + https://github.com/jgosmann/pylint-venv/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-python/pylint-2.14.0[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + >=dev-python/pylint-2.14.0[${PYTHON_USEDEP}] + ) +" + +python_test() { + # we need to set PYTHONPATH explicitly since the test runs installed + # pylint (i.e. starts outside the test venv) + local -x PYTHONPATH=${S}:${PYTHONPATH} + bash test/test.sh || die "Test failed with ${EPYTHON}" +}