mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-08 20:43:38 +02:00
aiogram: pkgcheck fix
This commit is contained in:
parent
e44b998356
commit
157100b88d
4 changed files with 1 additions and 83 deletions
|
|
@ -44,7 +44,7 @@ DEPEND="${RDEPEND}"
|
|||
|
||||
#BDEPEND="
|
||||
# test? (
|
||||
# dev-python/redis-py[${PYTHON_USEDEP}]
|
||||
# dev-python/redis[${PYTHON_USEDEP}]
|
||||
# dev-python/magic-filter[${PYTHON_USEDEP}]
|
||||
# dev-python/aiofiles[${PYTHON_USEDEP}]
|
||||
# dev-python/aiohttp[${PYTHON_USEDEP}]
|
||||
|
|
|
|||
|
|
@ -1 +0,0 @@
|
|||
DIST redis-py-5.0.3.tar.gz 4580976 BLAKE2B f28c3b3a430035ea353a46d06b0e12eb2ae2166066e23cc4c5a6b75f744cb85b369df27d703aae3a842e666159730704991e1f0b115efdab82c1b4e8cdc6c0c3 SHA512 c5a5420c6b64f8435bc6cdde51ff093a3616f28393b3a106b21801f389939fdfaf884512b05eac9643e8d566b2f8c54046f20b1b94e61e022f79cff2a91e0227
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>python@gentoo.org</email>
|
||||
<name>Python</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="pypi">redis</remote-id>
|
||||
<remote-id type="github">andymccurdy/redis-py</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
|
|
@ -1,69 +0,0 @@
|
|||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYPI_NO_NORMALIZE=1
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
|
||||
inherit distutils-r1 pypi
|
||||
|
||||
MY_PN="redis"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
|
||||
DESCRIPTION="Python client for Redis key-value store"
|
||||
HOMEPAGE="https://github.com/andymccurdy/redis-py"
|
||||
#SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="python2"
|
||||
KEYWORDS="amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
!!<=dev-python/redis-py-3.3.11-r1[${PYTHON_USEDEP}]
|
||||
"
|
||||
DEPEND="test? (
|
||||
dev-db/redis
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
>=dev-python/pytest-2.7.0[${PYTHON_USEDEP}] )"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
python_prepare_all() {
|
||||
distutils-r1_python_prepare_all
|
||||
|
||||
# Make sure that tests will be used from BUILD_DIR rather than cwd.
|
||||
mv tests tests-hidden || die
|
||||
|
||||
# Correct local import patch syntax
|
||||
sed \
|
||||
-e 's:from .conftest:from conftest:' \
|
||||
-e 's:from .test_pubsub:from test_pubsub:' \
|
||||
-i tests-hidden/test_*.py \
|
||||
|| die
|
||||
}
|
||||
|
||||
python_compile() {
|
||||
distutils-r1_python_compile
|
||||
|
||||
if use test; then
|
||||
cp -r tests-hidden "${BUILD_DIR}"/tests || die
|
||||
fi
|
||||
}
|
||||
|
||||
python_test() {
|
||||
local sock="${T}/redis.sock"
|
||||
|
||||
"${EPREFIX}/usr/sbin/redis-server" - <<- EOF
|
||||
daemonize yes
|
||||
pidfile "${T}/redis.pid"
|
||||
unixsocket ${sock}
|
||||
EOF
|
||||
|
||||
PYTHONPATH="${S}:${S}/tests-hidden"
|
||||
esetup.py test --verbose
|
||||
kill $(<"${T}/redis.pid")
|
||||
}
|
||||
Loading…
Reference in a new issue