From 064800ac6d0c707d7783179a24442539bd5067c2 Mon Sep 17 00:00:00 2001 From: "Liguros - Gitlab CI/CD [develop]" Date: Thu, 16 Oct 2025 19:05:34 +0000 Subject: Adding metadata --- dev-python/sip/files/sip-6.13.1-pyqt5.patch | 13 ++++++++ dev-python/sip/sip-6.13.1-r1.ebuild | 52 +++++++++++++++++++++++++++++ dev-python/sip/sip-6.13.1.ebuild | 49 --------------------------- 3 files changed, 65 insertions(+), 49 deletions(-) create mode 100644 dev-python/sip/files/sip-6.13.1-pyqt5.patch create mode 100644 dev-python/sip/sip-6.13.1-r1.ebuild delete mode 100644 dev-python/sip/sip-6.13.1.ebuild (limited to 'dev-python/sip') diff --git a/dev-python/sip/files/sip-6.13.1-pyqt5.patch b/dev-python/sip/files/sip-6.13.1-pyqt5.patch new file mode 100644 index 000000000000..41f889198bb7 --- /dev/null +++ b/dev-python/sip/files/sip-6.13.1-pyqt5.patch @@ -0,0 +1,13 @@ +https://github.com/Python-SIP/sip/issues/95 +https://github.com/Python-SIP/sip/commit/b6a7ec2453899 +--- a/sipbuild/generator/resolver/resolver.py ++++ b/sipbuild/generator/resolver/resolver.py +@@ -39,4 +39,8 @@ + mod.py_name = mod.fq_py_name.name.split('.')[-1] + ++ # There is nothing else that needs doing for composite modules. ++ if spec.is_composite: ++ return ++ + # Set the default meta-type for the main module if it doesn't have one + # explicitly set. diff --git a/dev-python/sip/sip-6.13.1-r1.ebuild b/dev-python/sip/sip-6.13.1-r1.ebuild new file mode 100644 index 000000000000..aafad93a3b71 --- /dev/null +++ b/dev-python/sip/sip-6.13.1-r1.ebuild @@ -0,0 +1,52 @@ +# 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_{10..14} ) +inherit distutils-r1 + +DESCRIPTION="Python bindings generator for C/C++ libraries" +HOMEPAGE="https://github.com/Python-SIP/sip/" +SRC_URI=" + https://github.com/Python-SIP/sip/archive/refs/tags/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="BSD-2 BSD" +SLOT="5" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" + +RDEPEND=" + dev-python/packaging[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] +" +BDEPEND=" + >=dev-python/setuptools-scm-8[${PYTHON_USEDEP}] +" + +distutils_enable_sphinx docs \ + dev-python/myst-parser \ + dev-python/sphinx-rtd-theme + +EPYTEST_PLUGINS=() +distutils_enable_tests pytest + +PATCHES=( + "${FILESDIR}"/${P}-pyqt5.patch +) + +python_test() { + # some tests currently fails to find test/utils without this + # TODO: try again without, used to be unneeded but not been looked into + local -x PYTHONPATH=${S}/test:${PYTHONPATH} + + local EPYTEST_DESELECT=( + # logic for this test seems(?) inverted (XFAIL), skip for now + # given it's new and is only to emit a deprecation warning + test/gen_classes/test_gen_classes.py::GenerateClassesTestCase::test_Nonpublic_Superclasses + ) + + distutils-r1_python_test +} diff --git a/dev-python/sip/sip-6.13.1.ebuild b/dev-python/sip/sip-6.13.1.ebuild deleted file mode 100644 index 6e31bb95dcbc..000000000000 --- a/dev-python/sip/sip-6.13.1.ebuild +++ /dev/null @@ -1,49 +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_{10..14} ) -inherit distutils-r1 - -DESCRIPTION="Python bindings generator for C/C++ libraries" -HOMEPAGE="https://github.com/Python-SIP/sip/" -SRC_URI=" - https://github.com/Python-SIP/sip/archive/refs/tags/${PV}.tar.gz - -> ${P}.gh.tar.gz -" - -LICENSE="BSD-2 BSD" -SLOT="5" -# https://github.com/Python-SIP/sip/issues/95 -#KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" - -RDEPEND=" - dev-python/packaging[${PYTHON_USEDEP}] - dev-python/setuptools[${PYTHON_USEDEP}] -" -BDEPEND=" - >=dev-python/setuptools-scm-8[${PYTHON_USEDEP}] -" - -distutils_enable_sphinx docs \ - dev-python/myst-parser \ - dev-python/sphinx-rtd-theme - -EPYTEST_PLUGINS=() -distutils_enable_tests pytest - -python_test() { - # some tests currently fails to find test/utils without this - # TODO: try again without, used to be unneeded but not been looked into - local -x PYTHONPATH=${S}/test:${PYTHONPATH} - - local EPYTEST_DESELECT=( - # logic for this test seems(?) inverted (XFAIL), skip for now - # given it's new and is only to emit a deprecation warning - test/gen_classes/test_gen_classes.py::GenerateClassesTestCase::test_Nonpublic_Superclasses - ) - - distutils-r1_python_test -} -- cgit v1.3