Files
gentoo-zh/dev-python/exifread/exifread-3.5.1.ebuild
T
Zakk 69cf2d2b3a dev-python/exifread: add 3.5.1
Enable python3_14 (builds and tests pass on it), enable the pytest suite the
release ships (31 tests pass; resolves the "tests present but not enabled" QA
elog), and rewrite the deprecated project.license TOML table to the PEP 639
SPDX string so setuptools does not emit a QA warning.

Signed-off-by: Zakk <zakk@gentoozh.org>
2026-07-17 06:06:40 +10:00

30 lines
819 B
Bash

# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{11..14} )
inherit distutils-r1
DESCRIPTION="Read Exif metadata from tiff and jpeg files"
HOMEPAGE="https://github.com/ianare/exif-py"
SRC_URI="https://github.com/ianare/exif-py/archive/${PV}.tar.gz -> ${P}.gh.tar.gz"
S="${WORKDIR}/exif-py-${PV}"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86"
RDEPEND="${PYTHON_DEPS}"
distutils_enable_tests pytest
python_prepare_all() {
# setuptools deprecates the license TOML table; use the PEP 639 SPDX string
# so the QA elog does not fail CI (LICENSE= carries the licensing)
sed -i 's/^license = {file = "LICENSE"}$/license = "BSD-3-Clause"/' pyproject.toml || die
distutils-r1_python_prepare_all
}