Files
gentoo-zh/dev-python/simplesat/simplesat-0.9.2-r1.ebuild
T
Zakk 64c8f5d7e5 dev-python/simplesat: add PYTHON_USEDEP, fix license_files
The runtime dependencies lacked `[${PYTHON_USEDEP}]`, so they could be installed for
a different Python target. `dev-python/mock` is only imported by the tests, so it
moves to the test dependencies. `license_files = file: LICENSE.txt` is not a valid
glob, and the long description named a CHANGES.rst that the sdist does not ship.

Signed-off-by: Zakk <zakk@gentoozh.org>
2026-10-20 17:59:01 +11:00

40 lines
865 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_{12..14} )
PYPI_VERIFY_REPO="https://github.com/enthought/sat-solver"
inherit distutils-r1 pypi
DESCRIPTION="Prototype for SAT-based dependency handling"
HOMEPAGE="
https://github.com/enthought/sat-solver
https://pypi.org/project/simplesat/
"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
RDEPEND="
>=dev-python/attrs-17.4.0[${PYTHON_USEDEP}]
>=dev-python/okonomiyaki-0.16.6[${PYTHON_USEDEP}]
>=dev-python/six-1.10.0[${PYTHON_USEDEP}]
"
BDEPEND="
test? (
dev-python/mock[${PYTHON_USEDEP}]
)
"
EPYTEST_PLUGINS=()
distutils_enable_tests pytest
src_prepare() {
distutils-r1_src_prepare
sed -i -e 's/^license_files = file: /license_files = /' -e 's/, CHANGES.rst$//' setup.cfg || die
}