dev-python/asyncmy: treeclean

Closes: https://bugs.gentoo.org/921776 (pkgremoved)
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
Anna (cybertailor) Vyalkova
2025-04-05 13:44:56 +05:00
parent aa47db83e2
commit ec0b5140ee
4 changed files with 0 additions and 89 deletions

View File

@@ -1 +0,0 @@
DIST asyncmy-0.2.8.gh.tar.gz 141544 BLAKE2B 12b18165706da58cf44a2df70e23c20084baf9f4464ca5aa419f7c824fee241963ae1d3c56d6fb098c804916fb09db6e3fda75376b42c5d83bf913f6b07e7e25 SHA512 949c643f79ce8d614bab664c563ed0a79fed1b30e4229d823a3dd2a1c6f01e37df52f7ccde5cadb663cad6474835ad4039fc8f5c314ae4196d1265e537063512

View File

@@ -1,74 +0,0 @@
# Copyright 2022-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{11..12} )
PYTHON_REQ_USE="ssl"
DISTUTILS_USE_PEP517=poetry
DISTUTILS_EXT=1
inherit databases distutils-r1 optfeature
DESCRIPTION="A fast asyncio MySQL driver"
HOMEPAGE="
https://pypi.org/project/asyncmy/
https://github.com/long2ice/asyncmy
"
SRC_URI="https://github.com/long2ice/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
TEST_S="${S}_test"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
BDEPEND="
dev-python/cython[${PYTHON_USEDEP}]
dev-python/setuptools[${PYTHON_USEDEP}]
test? (
${DATABASES_DEPEND[mysql]}
dev-python/pytest-asyncio[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest
src_unpack() {
default
cp -a "${S}" "${TEST_S}" || die
rm -r "${TEST_S}"/asyncmy || die
}
src_test() {
emysql --start
local sockfile=$(emysql --get-sockfile)
local myargs=(
--user=root
--socket="${sockfile}"
--silent
--execute="ALTER USER 'root'@'localhost' IDENTIFIED BY '123456';"
)
ebegin "Changing database password"
mysql "${myargs[@]}"
eend $? || emysql --die "Changing database password failed"
distutils-r1_src_test
emysql --stop
}
python_test() {
cd "${T}" || die
epytest "${TEST_S}"
}
python_install() {
distutils-r1_python_install
find "${ED}"/usr/lib -name '*.md' -delete || die
find "${ED}"/usr/lib -name LICENSE -delete || die
}
pkg_postinst() {
optfeature "sha256_password and caching_sha2_password auth methods" dev-python/cryptography
}

View File

@@ -1,9 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<!-- maintainer-needed -->
<upstream>
<remote-id type="pypi">asyncmy</remote-id>
<remote-id type="github">long2ice/asyncmy</remote-id>
</upstream>
</pkgmetadata>