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
This commit is contained in:
rick 2025-05-20 01:11:38 +02:00
parent d5fb662e39
commit 4f50cb9313
No known key found for this signature in database
GPG key ID: A2E7B6CA577C8F07
2 changed files with 21 additions and 6 deletions

View file

@ -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'
)

View file

@ -5,4 +5,8 @@
<email>unknown@pentoo.ch</email>
<name>Author Unknown</name>
</maintainer>
<upstream>
<remote-id type="github">ronaldoussoren/macholib</remote-id>
<remote-id type="pypi">macholib</remote-id>
</upstream>
</pkgmetadata>