From b44df903b46bbe9fb670d94a504d448b7b073033 Mon Sep 17 00:00:00 2001 From: "Anna (cybertailor) Vyalkova" Date: Sat, 14 Aug 2021 08:01:15 +0500 Subject: [PATCH] dev-python/aiopg: add 1.3.2_beta1, drop 1.1.0 Signed-off-by: Anna (cybertailor) Vyalkova --- dev-python/aiopg/Manifest | 2 +- ...-1.1.0.ebuild => aiopg-1.3.2_beta1.ebuild} | 28 ++++++++++++------- 2 files changed, 19 insertions(+), 11 deletions(-) rename dev-python/aiopg/{aiopg-1.1.0.ebuild => aiopg-1.3.2_beta1.ebuild} (57%) diff --git a/dev-python/aiopg/Manifest b/dev-python/aiopg/Manifest index 609c9e71e3..3f8a28ff81 100644 --- a/dev-python/aiopg/Manifest +++ b/dev-python/aiopg/Manifest @@ -1,2 +1,2 @@ -DIST aiopg-1.1.0.tar.gz 198388 BLAKE2B 4d1894f31ebd7bfd1234415c72727fb04fceef42ef86af7198447848846aef748fc9cf03958f9e5a2e2899836f304aebc97973117e0bc53e960f14ef7d4ab299 SHA512 375a7325a84a52a6eaff51132a9c7fe8982c4f69fbf747917fbf759a0be9ca6d2a3a1d90e852fa0a0c905c6679ff0603e3c85ddae6ee38b67f702d7d79b3b153 DIST aiopg-1.2.1.tar.gz 197099 BLAKE2B 3c4300724da13d6f9d439a31a0fad02361eb3f95fde90abd4718a2298d291f760e2a4a2c15691cd90a2996c101759422bb372202768f43b2ad6923c4921d1387 SHA512 19c00a77cbf8bc60c7704bcc17f9baab6ec1b0554dc62c1bf8fbd4f97f56636fc5edf9479da5a9c27dfc06108c9d650b3fe5d2cddca445f1ffa7b18cbc1d896c +DIST aiopg-1.3.2_beta1.tar.gz 202058 BLAKE2B a303ef66ded1a0f77a33d83c0d498e16519521c87e930b3ab9097ac56c8ad6e111e5edc145c869aef2530900f3f2c2400ef785e307c2333053a0dfae1439f2f6 SHA512 855ab21528a8eb572f2b0b7965bcca37cacd42ef79910f4b042c22654c6bb37b2528dd2cddd1fa66dba24cccdc0996ba8281b44bb9d99a1607fc146747ffd642 diff --git a/dev-python/aiopg/aiopg-1.1.0.ebuild b/dev-python/aiopg/aiopg-1.3.2_beta1.ebuild similarity index 57% rename from dev-python/aiopg/aiopg-1.1.0.ebuild rename to dev-python/aiopg/aiopg-1.3.2_beta1.ebuild index c34f8f75aa..fc777fdc7e 100644 --- a/dev-python/aiopg/aiopg-1.1.0.ebuild +++ b/dev-python/aiopg/aiopg-1.3.2_beta1.ebuild @@ -1,37 +1,45 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 -PYTHON_COMPAT=( python3_{7,8,9} ) +PYTHON_COMPAT=( python3_{8..10} ) inherit distutils-r1 optfeature -DESCRIPTION="aiopg is a library for accessing a PostgreSQL database from the asyncio" +MY_PV=${PV/_beta/b} +DESCRIPTION="Postgres integration with asyncio" HOMEPAGE=" https://aiopg.readthedocs.io https://github.com/aio-libs/aiopg " -SRC_URI="https://github.com/aio-libs/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +SRC_URI="https://github.com/aio-libs/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${PN}-${MY_PV}" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~x86" -# tests seem to be wanting to send/recieve things -# which is probably not allowed inside emerge so they fail? +# tests use docker containers -- that's wild! RESTRICT="test" RDEPEND="dev-python/psycopg[${PYTHON_USEDEP}]" DEPEND="test? ( + dev-python/docker-py[${PYTHON_USEDEP}] dev-python/pytest-timeout[${PYTHON_USEDEP}] dev-python/sqlalchemy[${PYTHON_USEDEP}] )" -pkg_postinst() { - optfeature "sqlalchemy support" dev-python/sqlalchemy -} +DOCS=( CHANGES.txt README.rst ) distutils_enable_tests pytest distutils_enable_sphinx docs dev-python/sphinxcontrib-asyncio + +python_test() { + epytest --no-pull +} + +pkg_postinst() { + optfeature "sqlalchemy support" dev-python/sqlalchemy +}