diff options
| author | Crucible <crucible@localhost> | 2026-09-28 03:05:04 -0500 |
|---|---|---|
| committer | Crucible <crucible@localhost> | 2026-09-28 03:05:04 -0500 |
| commit | 97f0accadef9006a8eaa198a93d9d8c2de538b63 (patch) | |
| tree | 83e86eeaec2bad73d2ad64ee21d0ababdd5934ef /dev-python/peewee | |
| parent | c8fd7bb01e09d7af5b5c8aac5cb6d2e816154482 (diff) | |
| download | srcux-97f0accadef9006a8eaa198a93d9d8c2de538b63.tar.gz srcux-97f0accadef9006a8eaa198a93d9d8c2de538b63.tar.xz srcux-97f0accadef9006a8eaa198a93d9d8c2de538b63.zip | |
Publish srcux candidate 0000000516-20260928-030306
Diffstat (limited to 'dev-python/peewee')
| -rw-r--r-- | dev-python/peewee/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/peewee/peewee-4.5.2.ebuild | 83 |
2 files changed, 84 insertions, 0 deletions
diff --git a/dev-python/peewee/Manifest b/dev-python/peewee/Manifest index a461db3caa86..3d347d2777c3 100644 --- a/dev-python/peewee/Manifest +++ b/dev-python/peewee/Manifest @@ -1,3 +1,4 @@ DIST peewee-4.3.0.gh.tar.gz 1091937 BLAKE2B a4af95bc80dce47c2e2abc74afd01d2e25736067ffbbd6f60dd6f62974c9a9a62be4fbfb963646ba3e99c91953839c7612c796381768e35e28ec53bb2114ecf2 SHA512 1745b92e9edd0a34a15aeccdedfc1f7a30f95457f09b1c257b2e6b4ebd377fd515150270de2e0f2d564646302317368a78ad73fcce99398a752e14d1643d40da DIST peewee-4.5.0.gh.tar.gz 1141293 BLAKE2B 22e5525a2e08573c55c657cdf62d9c3d4826bccb80d7f1e3bc98ad7d4835f6e3ee843d07972674e4247e9ae4dc670350f16a266e08897d16edfd804d756db32c SHA512 14ee1ace64d32e7868b2f00bee3ecda7cc3bc47162c496a464373233e4182cd64ddcf66f319303d71eab7498feeb2c8f7bbdd38f4371593d41b43b266548f803 DIST peewee-4.5.1.gh.tar.gz 1141479 BLAKE2B e101a69e51d461c359655c87a5d9286c2dd4ca8944b021cc7e22d0531c507ba5801785353590db9ed70eac8902f9aa49e150490b15ed1d3a7ee1007e7c51de0d SHA512 4fdbf923af4857d8ec90f906dfec40b9b684ebc509d350db8638e922e383036efe0e64241b00c5e6960e04b665df7d77c186e6f3070c321023a71e1db7dd71fd +DIST peewee-4.5.2.gh.tar.gz 1139260 BLAKE2B 443adb5429b9a8ca99dddef2b198153a16e5c0fe781f037bc02929658c6832d1057d6283e823a60f740268dec3839ec6772e0839a603345b19615f40dc2fe780 SHA512 dda461c507b99e5f69938d42bfe903be605e0f36fd1d81e82458b072bba0c62f6c7011fd7aaba3fbcd3a7cef551a8965f7fb3b1ad4d7e5a64697e2bb49fbcddf diff --git a/dev-python/peewee/peewee-4.5.2.ebuild b/dev-python/peewee/peewee-4.5.2.ebuild new file mode 100644 index 000000000000..354b1a91f483 --- /dev/null +++ b/dev-python/peewee/peewee-4.5.2.ebuild @@ -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_{13..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 +} |
