dev-python/peewee: Bump to 4.0.9

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2026-06-16 07:23:31 +02:00
parent b5c99fe592
commit c0a62e6bb3
2 changed files with 84 additions and 0 deletions
+1
View File
@@ -2,3 +2,4 @@ DIST peewee-4.0.5.gh.tar.gz 957569 BLAKE2B e2a8a37cf23c78975f7c98853b4ee6f34cb21
DIST peewee-4.0.6.gh.tar.gz 963861 BLAKE2B 4f1edded4a1e708ec2bf04b2af42b3fabe04124394e3acc4d49517768778cb06e225d6a0f8d249f947a9ca4a7f062e5e484c8e8169aac33acd026632f5219e08 SHA512 2bc67a655ccd5a38c76b941dcc4a5b66c6668381b20e6423afaa29709fa5ee8154b2ab18091da815ef60104ccd0402e911b9c7ef01c0b29a4246796167b984a2
DIST peewee-4.0.7.gh.tar.gz 990613 BLAKE2B cec728c18d5be72b04cf82f9f0b58a7aa1de4bc7b8ff1b49ac543210e50f91ebf51c39d16315aed7c183e20dcb21a4c3e4a093d52bd8f05aaf1db90affefcafa SHA512 6e57b4cb98e68eb1a046c2ca9a58a3f07641b4c7a1ec3c8db23e97b199d2c61971178a3abbb9d7893e8f73ce83808124fdfa821a427ace116df826f1bd9000d3
DIST peewee-4.0.8.gh.tar.gz 1001592 BLAKE2B 4b2328fa31aab3315511ce4320008d56e51882c041a15f4ec5e4732fd4c72e2a5c98346b4e515619d2cde056d030e52e76a128db31e00b985b6ed6aa19623166 SHA512 2c9ee4d98f4e63eeb4ec1a28762a32efe41c506fd7437667325a65c73cad821c35d18faad8da5a30f8dde25af88f4f6431cc73858c735468be3837e675fa46d0
DIST peewee-4.0.9.gh.tar.gz 1002262 BLAKE2B 456af69c3d57d2e8344080cf40845163c9d0a9bd6b4a418940adc28ed388aea7faad8e3759973b23fcc8fb0e27e6a88c40b953081825f8a7acf6f8eb64c91894 SHA512 dd68b9e38dca84eff67c90f1f78cd6d59713c18b73faa8e2a36fa1b343e2e1f154a0dd57415803b763fd7368a151eb08c30312c72d1c2db665f7941a99a0ad8c
+83
View File
@@ -0,0 +1,83 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{12..14} )
PYTHON_REQ_USE="sqlite"
inherit distutils-r1
DESCRIPTION="Small Python ORM"
HOMEPAGE="
https://github.com/coleifer/peewee/
https://pypi.org/project/peewee/
"
SRC_URI="
https://github.com/coleifer/peewee/archive/${PV}.tar.gz
-> ${P}.gh.tar.gz
"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~riscv ~x86"
IUSE="examples +native-extensions test"
RESTRICT="!test? ( test )"
DEPEND="
native-extensions? ( dev-db/sqlite:3= )
"
RDEPEND="
${DEPEND}
"
BDEPEND="
native-extensions? (
dev-python/cython[${PYTHON_USEDEP}]
)
test? (
dev-db/postgresql
dev-python/psycopg:0[${PYTHON_USEDEP}]
sys-libs/timezone-data
)
"
distutils_enable_sphinx docs \
dev-python/sphinx-rtd-theme
src_prepare() {
default
# disable test failing on postgres 16
sed -e 's/test_timeout/_&/' -i tests/sqliteq.py || die
}
src_compile() {
if ! use native-extensions; then
local -x NO_SQLITE=1
fi
distutils-r1_src_compile
}
src_test() {
initdb -D "${T}"/pgsql || die
pg_ctl -w -D "${T}"/pgsql start -o "-h '' -k '${T}'" || die
createdb -h "${T}" peewee_test || die
psql -h "${T}" peewee_test -c 'create extension hstore;' || die
local -x PEEWEE_PSQL_HOST="${T}"
distutils-r1_src_test
pg_ctl -w -D "${T}"/pgsql stop || die
}
python_test() {
"${EPYTHON}" runtests.py -v 2 || die "tests failed under ${EPYTHON}"
}
python_install_all() {
use examples && DOCS=( examples/ )
distutils-r1_python_install_all
}