From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B1B5B1382C5 for ; Wed, 26 May 2021 13:42:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4D3C9E14B6; Wed, 26 May 2021 13:42:48 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 24D33E14B6 for ; Wed, 26 May 2021 13:42:48 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 42625340E93 for ; Wed, 26 May 2021 13:42:47 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6372279D for ; Wed, 26 May 2021 13:42:44 +0000 (UTC) From: "Andrew Ammerlaan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Ammerlaan" Message-ID: <1621993996.eb562b61a98bb450c817dc868f35dfcc770facc6.andrewammerlaan@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-python/graphene/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-python/graphene/Manifest dev-python/graphene/graphene-3.0.0_beta7.ebuild X-VCS-Directories: dev-python/graphene/ X-VCS-Committer: andrewammerlaan X-VCS-Committer-Name: Andrew Ammerlaan X-VCS-Revision: eb562b61a98bb450c817dc868f35dfcc770facc6 X-VCS-Branch: master Date: Wed, 26 May 2021 13:42:44 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: cdb6d74d-8f28-42cb-a9b5-d2c59baea6a0 X-Archives-Hash: c86d7df71debe7a70a6d77e148d9e9b9 commit: eb562b61a98bb450c817dc868f35dfcc770facc6 Author: Anna Vyalkova sysrq in> AuthorDate: Wed May 26 00:27:47 2021 +0000 Commit: Andrew Ammerlaan gentoo org> CommitDate: Wed May 26 01:53:16 2021 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=eb562b61 dev-python/graphene: docs, support python 3.9 Signed-off-by: Anna Vyalkova sysrq.in> dev-python/graphene/Manifest | 1 + dev-python/graphene/graphene-3.0.0_beta7.ebuild | 58 +++++++++++++++++-------- 2 files changed, 40 insertions(+), 19 deletions(-) diff --git a/dev-python/graphene/Manifest b/dev-python/graphene/Manifest index 3618cd539..aa53b7d8b 100644 --- a/dev-python/graphene/Manifest +++ b/dev-python/graphene/Manifest @@ -1 +1,2 @@ DIST graphene-3.0.0_beta7.tar.gz 113258 BLAKE2B 4a3adadfea6dc6fd936b8bad83cf02c1b2b7937648712ee26ce3c5eb7e6d6631790ae2f22fff334de4495ed3197761862e88450e7f837ee06f71e7de4009efe4 SHA512 df4dee75c8c5bc5643dd5231bff61f7f1e2efe7203e61a3e32b10c80c2f44139a408ca99726fea51d6aa6e844e648c860c41e3e20ee4679dd3573f43047e71fa +DIST sphinx-graphene-3.0.0_beta7.zip 22270 BLAKE2B 7cc467f12e7857cedb0336c7d0708f9429b9ccaa7f65077e6453a3e4ce0af92cbdb6d4dd3bec5801bd3e5fb233b4994dbce52fabe690da196ee25b5eec7fb63f SHA512 00cdaee50a7c16729d9d820de7d6c0f61215e3b906777b0705f2de0d2029f2ffb1f86134b1d673d00675d77729be47765999537fc42aeefafb026248b9b0b3b0 diff --git a/dev-python/graphene/graphene-3.0.0_beta7.ebuild b/dev-python/graphene/graphene-3.0.0_beta7.ebuild index d0223b990..1f9259316 100644 --- a/dev-python/graphene/graphene-3.0.0_beta7.ebuild +++ b/dev-python/graphene/graphene-3.0.0_beta7.ebuild @@ -3,16 +3,21 @@ EAPI=7 -PYTHON_COMPAT=( python3_{7,8} ) +PYTHON_COMPAT=( python3_{7..9} ) inherit distutils-r1 -MYPV="${PV/_beta/b}" -MYP="${PN}-${MYPV}" +MY_PV="${PV/_beta/b}" +MY_P="${PN}-${MY_PV}" DESCRIPTION="GraphQL Framework for Python" -HOMEPAGE="https://github.com/graphql-python/graphene" -SRC_URI="https://github.com/graphql-python/${PN}/archive/v${MYPV}.tar.gz -> ${P}.tar.gz" +HOMEPAGE="https://graphene-python.org + https://pypi.org/project/graphene + https://github.com/graphql-python/graphene +" +SRC_URI="https://github.com/graphql-python/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz + doc? ( https://graphene-python.org/sphinx_graphene_theme.zip -> sphinx-${P}.zip ) +" LICENSE="MIT" SLOT="0" @@ -24,20 +29,35 @@ RDEPEND=" dev-python/graphql-relay[${PYTHON_USEDEP}] " -DEPEND="test? ( - dev-python/iso8601[${PYTHON_USEDEP}] - dev-python/mock[${PYTHON_USEDEP}] - dev-python/promise[${PYTHON_USEDEP}] - dev-python/pytest-asyncio[${PYTHON_USEDEP}] - dev-python/pytest-benchmark[${PYTHON_USEDEP}] - dev-python/pytest-mock[${PYTHON_USEDEP}] - dev-python/pytz[${PYTHON_USEDEP}] - dev-python/snapshottest[${PYTHON_USEDEP}] -)" +BDEPEND=" + doc? ( app-arch/unzip ) + test? ( + dev-python/iso8601[${PYTHON_USEDEP}] + dev-python/promise[${PYTHON_USEDEP}] + dev-python/pytest-asyncio[${PYTHON_USEDEP}] + dev-python/pytest-benchmark[${PYTHON_USEDEP}] + dev-python/pytest-mock[${PYTHON_USEDEP}] + dev-python/pytz[${PYTHON_USEDEP}] + dev-python/snapshottest[${PYTHON_USEDEP}] + ) +" -S="${WORKDIR}/${MYP}" +S="${WORKDIR}/${MY_P}" distutils_enable_tests pytest -# ModuleNotFoundError: No module named 'sphinx_graphene_theme' -# There is a archived github, but no releases at the moment -#distutils_enable_sphinx docs + +distutils_enable_sphinx docs + +src_unpack() { + unpack ${P}.tar.gz + + if use doc ; then + unpack sphinx-${P}.zip + mv "${WORKDIR}"/sphinx_graphene_theme "${S}"/docs || die + fi +} + +python_test() { + epytest --benchmark-disable \ + --deselect graphene/types/tests/test_schema.py::TestUnforgivingExecutionContext::test_unexpected_error +}