From 59c803bef0bf9b4f167918783e386c3ddb746751 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 24 May 2023 15:02:35 +0100 Subject: gentoo auto-resync : 24:05:2023 - 15:02:35 --- dev-vcs/git-pw/git-pw-2.5.0.ebuild | 46 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 dev-vcs/git-pw/git-pw-2.5.0.ebuild (limited to 'dev-vcs/git-pw/git-pw-2.5.0.ebuild') diff --git a/dev-vcs/git-pw/git-pw-2.5.0.ebuild b/dev-vcs/git-pw/git-pw-2.5.0.ebuild new file mode 100644 index 000000000000..b6ff46dff532 --- /dev/null +++ b/dev-vcs/git-pw/git-pw-2.5.0.ebuild @@ -0,0 +1,46 @@ +# Copyright 2021-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..11} ) +DISTUTILS_USE_PEP517=setuptools + +inherit distutils-r1 +if [[ "${PV}" == 9999 ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/getpatchwork/git-pw.git" +else + SRC_URI="https://github.com/getpatchwork/git-pw/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +DESCRIPTION="A tool for integrating Git with Patchwork" +HOMEPAGE="https://github.com/getpatchwork/git-pw" + +LICENSE="MIT" +SLOT="0" +IUSE="" + +RDEPEND=" + >=dev-python/arrow-0.10[${PYTHON_USEDEP}] + >=dev-python/click-6.0[${PYTHON_USEDEP}] + dev-python/pbr[${PYTHON_USEDEP}] + =dev-python/tabulate-0.8[${PYTHON_USEDEP}] + >=dev-python/pyyaml-5.1[${PYTHON_USEDEP}] +" +BDEPEND=" + dev-python/pbr[${PYTHON_USEDEP}] + test? ( + >=dev-python/mock-3.0.0[${PYTHON_USEDEP}] + >=dev-python/pytest-3.0[${PYTHON_USEDEP}] + >=dev-python/pytest-cov-2.5[${PYTHON_USEDEP}] + ) +" + +src_compile() { + export PBR_VERSION=${PV} + distutils-r1_src_compile +} +distutils_enable_tests pytest -- cgit v1.2.3