commit: a15472d1e53bd98d42f26c6bd6f6c51013213003 Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> AuthorDate: Sat May 3 11:07:44 2025 +0000 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> CommitDate: Sat May 3 11:11:47 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a15472d1
dev-vcs/hg-git-1.2.0: fix QA issues - fix copyright year - use EAPI=8 - reduce PYTHON_COMPAT - enable tests Closes: https://bugs.gentoo.org/955354 Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org> dev-vcs/hg-git/hg-git-1.2.0-r1.ebuild | 54 +++++++++++++++++++++++++++++++++++ dev-vcs/hg-git/hg-git-1.2.0.ebuild | 24 ---------------- 2 files changed, 54 insertions(+), 24 deletions(-) diff --git a/dev-vcs/hg-git/hg-git-1.2.0-r1.ebuild b/dev-vcs/hg-git/hg-git-1.2.0-r1.ebuild new file mode 100644 index 000000000000..6cea16e67456 --- /dev/null +++ b/dev-vcs/hg-git/hg-git-1.2.0-r1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="8" +PYTHON_COMPAT=( python3_{12..13} ) +DISTUTILS_USE_PEP517=setuptools + +inherit distutils-r1 multiprocessing + +MY_PV=${PV/_rc/a} +DESCRIPTION="push to and pull from a Git repository using Mercurial" +HOMEPAGE="https://hg-git.github.io https://pypi.org/project/hg-git/" +SRC_URI="https://foss.heptapod.net/mercurial/hg-git/-/archive/${MY_PV}/${PN}-${MY_PV}.tar.bz2" + +S="${WORKDIR}/${PN}-${MY_PV}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-vcs/mercurial-6.6[${PYTHON_USEDEP}] + >=dev-python/dulwich-0.21.6[${PYTHON_USEDEP}] +" +DEPEND=" + test? ( + ${RDEPEND} + dev-vcs/git + ) +" + +src_prepare() { + default + + # remove some tests that just test codestyle, reducing dependencies + rm tests/test-check-black.t || die + rm tests/test-check-pyflakes.t || die + rm tests/test-check-pylint.t || die + # remove tests that cannot be run + rm tests/test-check-commit.t || die + rm tests/test-gitignore-windows.t || die + rm tests/test-serve-ci.t || die +} + +python_test() { + cd tests || die + + "${EPYTHON}" run-tests.py \ + --jobs="$(makeopts_jobs "${MAKEOPTS}")" \ + --with-hg="${ESYSROOT}/usr/bin/hg" \ + || die +} diff --git a/dev-vcs/hg-git/hg-git-1.2.0.ebuild b/dev-vcs/hg-git/hg-git-1.2.0.ebuild deleted file mode 100644 index 3099681a8053..000000000000 --- a/dev-vcs/hg-git/hg-git-1.2.0.ebuild +++ /dev/null @@ -1,24 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI="7" -PYTHON_COMPAT=( python3_{9..13} ) -DISTUTILS_USE_PEP517=setuptools - -inherit distutils-r1 - -MY_PV=${PV/_rc/a} -DESCRIPTION="push to and pull from a Git repository using Mercurial" -HOMEPAGE="https://hg-git.github.io https://pypi.org/project/hg-git/" -SRC_URI="https://foss.heptapod.net/mercurial/hg-git/-/archive/${MY_PV}/${PN}-${MY_PV}.tar.bz2" - -S="${WORKDIR}/${PN}-${MY_PV}" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris" - -RDEPEND=" - >=dev-vcs/mercurial-6.6[${PYTHON_USEDEP}] - >=dev-python/dulwich-0.21.6[${PYTHON_USEDEP}] -"
