Files
gentoo-zh/dev-python/daff/daff-1.4.2.ebuild
Zakk d2799bd05f dev-python/daff: fix setuptools warnings
setup.py imports build_py from distutils and still lists the deprecated License
classifier, so setuptools warns about both and the install leaves a QA notice. Import
build_py from setuptools and drop the classifier; LICENSE already states MIT.

Signed-off-by: Zakk <zakk@gentoozh.org>
2026-10-21 13:02:26 +11:00

36 lines
653 B
Bash

# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{12..14} pypy3 )
inherit distutils-r1 pypi
DESCRIPTION="The daff can produce and apply tabular diffs"
HOMEPAGE="https://github.com/paulfitz/daff"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~riscv ~sparc ~x86"
IUSE="test"
RESTRICT="!test? ( test )"
PATCHES=(
"${FILESDIR}"/${P}-setuptools.patch
)
BDEPEND="
test? (
$(python_gen_impl_dep sqlite)
)
"
python_test() {
local t
for t in test/test_*.py; do
"${EPYTHON}" "${t}" || die "${t} failed with ${EPYTHON}"
done
}