From 4f50cb9313a57b3dbd5e682b4cd5a7e0b92576d5 Mon Sep 17 00:00:00 2001 From: rick Date: Tue, 20 May 2025 01:11:38 +0200 Subject: [PATCH] macholib: fix test, add doc and upstream in metadata ignore some tests because it depends on user shell or it needs to have dylib installed --- dev-python/macholib/macholib-1.16.3.ebuild | 23 ++++++++++++++++------ dev-python/macholib/metadata.xml | 4 ++++ 2 files changed, 21 insertions(+), 6 deletions(-) diff --git a/dev-python/macholib/macholib-1.16.3.ebuild b/dev-python/macholib/macholib-1.16.3.ebuild index b6ec5ab09..1e6ac85c7 100644 --- a/dev-python/macholib/macholib-1.16.3.ebuild +++ b/dev-python/macholib/macholib-1.16.3.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -6,14 +6,10 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools PYTHON_COMPAT=( python3_{11..13} ) -inherit distutils-r1 -distutils_enable_tests pytest -#Tests mostly fail and we should look into that -RESTRICT=test +inherit distutils-r1 pypi DESCRIPTION="A package is a collection of utilities for dealing with IP addresses" HOMEPAGE="http://github.com/ronaldoussoren/macholib" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="MIT" SLOT="0" @@ -22,3 +18,18 @@ KEYWORDS="amd64 ~arm64 x86" RDEPEND="${PYTHON_DEPS} dev-python/altgraph[${PYTHON_USEDEP}]" DEPEND="${RDEPEND}" + +distutils_enable_sphinx doc +distutils_enable_tests pytest + +EPYTEST_DESELECT=( + # needs dylib installed + 'macholib_tests/test_dyld.py::TestDyld::test_dyld_find' + 'macholib_tests/test_dyld.py::TestDyld::test_framework_find' + 'macholib_tests/test_dyld.py::TestTrivialDyld::testBasic' + + # try to use /bin/sh, but it can be another shell, depends on user configuration + 'macholib_tests/test_command_line.py::TestCmdLine::test_check_file' + 'macholib_tests/test_command_line.py::TestCmdLine::test_macho_dump' + 'macholib_tests/test_command_line.py::TestCmdLine::test_shared_main' +) diff --git a/dev-python/macholib/metadata.xml b/dev-python/macholib/metadata.xml index ace7c2d3a..ad7d0a7b7 100644 --- a/dev-python/macholib/metadata.xml +++ b/dev-python/macholib/metadata.xml @@ -5,4 +5,8 @@ unknown@pentoo.ch Author Unknown + + ronaldoussoren/macholib + macholib +