From 99508030007cffa33f44655bba49715cde00a9ad Mon Sep 17 00:00:00 2001 From: "Liguros - Gitlab CI/CD [develop]" Date: Thu, 1 May 2025 19:27:44 +0000 Subject: Adding metadata --- .../python-ctags3/python-ctags3-1.6.0-r1.ebuild | 48 ++++++++++++++++++++++ .../python-ctags3/python-ctags3-1.6.0.ebuild | 47 --------------------- 2 files changed, 48 insertions(+), 47 deletions(-) create mode 100644 dev-python/python-ctags3/python-ctags3-1.6.0-r1.ebuild delete mode 100644 dev-python/python-ctags3/python-ctags3-1.6.0.ebuild (limited to 'dev-python/python-ctags3') diff --git a/dev-python/python-ctags3/python-ctags3-1.6.0-r1.ebuild b/dev-python/python-ctags3/python-ctags3-1.6.0-r1.ebuild new file mode 100644 index 000000000000..43963f9aa46a --- /dev/null +++ b/dev-python/python-ctags3/python-ctags3-1.6.0-r1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 ) + +inherit distutils-r1 + +MY_P="python-ctags3-${PV}" +DESCRIPTION="Exuberant Ctags indexing python bindings" +HOMEPAGE="https://github.com/universal-ctags/python-ctags3" +# PyPI tarballs don't contain pyx files +SRC_URI="https://github.com/universal-ctags/python-ctags3/archive/${PV}.tar.gz -> ${MY_P}.gh.tar.gz" +S=${WORKDIR}/${MY_P} + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND=" + dev-util/ctags:= +" +RDEPEND=" + ${DEPEND} +" +BDEPEND=" + dev-python/cython[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest + +python_prepare_all() { + # We currently need to let Cython regenerate this file to make Python 3.11 + # support work + rm src/_readtags.c || die + cython -3 src/_readtags.pyx || die + distutils-r1_python_prepare_all +} + +python_test() { + # To prevent pytest from importing it and failing with: + # ModuleNotFoundError: No module named 'ctags._readtags' + rm -rf src/ctags || die + epytest +} diff --git a/dev-python/python-ctags3/python-ctags3-1.6.0.ebuild b/dev-python/python-ctags3/python-ctags3-1.6.0.ebuild deleted file mode 100644 index 65e65b15f185..000000000000 --- a/dev-python/python-ctags3/python-ctags3-1.6.0.ebuild +++ /dev/null @@ -1,47 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 ) - -inherit distutils-r1 - -MY_P="python-ctags3-${PV}" -DESCRIPTION="Exuberant Ctags indexing python bindings" -HOMEPAGE="https://github.com/universal-ctags/python-ctags3" -# PyPI tarballs don't contain pyx files -SRC_URI="https://github.com/universal-ctags/python-ctags3/archive/${PV}.tar.gz -> ${MY_P}.gh.tar.gz" -S=${WORKDIR}/${MY_P} - -LICENSE="LGPL-3" -SLOT="0" -KEYWORDS="~amd64 ~x86" - -DEPEND=" - dev-util/ctags:= -" -RDEPEND=" - ${DEPEND} -" -BDEPEND=" - dev-python/cython[${PYTHON_USEDEP}] -" - -distutils_enable_tests pytest - -python_prepare_all() { - # We currently need to let Cython regenerate this file to make Python 3.11 - # support work - rm src/_readtags.c || die - cython -3 src/_readtags.pyx || die - distutils-r1_python_prepare_all -} - -python_test() { - # To prevent pytest from importing it and failing with: - # ModuleNotFoundError: No module named 'ctags._readtags' - rm -rf src/ctags || die - epytest -} -- cgit v1.3.1