dev-python/graphene: add 3.3.0

Signed-off-by: Alarig Le Lay <alarig@swordarmor.fr>
This commit is contained in:
Alarig Le Lay 2024-08-27 15:59:49 +02:00
parent 5eec8b7da7
commit 1c9073449b
Signed by: alarig
GPG key ID: 7AFE62C6DF8BCDEC
2 changed files with 75 additions and 0 deletions

View file

@ -1,2 +1,4 @@
DIST graphene-2.1.9.tar.gz 102931 BLAKE2B 8dc7284d0be72348bdcf19c72786b26a57d491669ea026398bdccc89d17b297f8f5cf63997b2232f16e70e6480d248d1033442a17236907bb3d46add80a8d269 SHA512 e228caad9fe24f50e386df644c5e3fc3d261ed534b222576a04a24950be5e48147fdc5e1a4e49e959d2fb1a7d43ef9ddb6e8a31798669afb3a4c4c357d05ec9e
DIST graphene-3.3.0.tar.gz 128582 BLAKE2B 58151e3f1ccb22853f7424f30ec247322356fcfbfdb6de8e5289de1df19b84cb1335e458345a9ece26b0a3d507ef88d0b7a1755c92862d9852b7f3f1d4480b75 SHA512 a49218309fd69b8af4832f7cb1f91a991f7721a6cef230c9b61ded2beb653fd575807064fc1fc0e46a438146b7eda6e2680527c82fc83e68540fe991b130c8b8
DIST sphinx-graphene-2.1.9.zip 22270 BLAKE2B 7cc467f12e7857cedb0336c7d0708f9429b9ccaa7f65077e6453a3e4ce0af92cbdb6d4dd3bec5801bd3e5fb233b4994dbce52fabe690da196ee25b5eec7fb63f SHA512 00cdaee50a7c16729d9d820de7d6c0f61215e3b906777b0705f2de0d2029f2ffb1f86134b1d673d00675d77729be47765999537fc42aeefafb026248b9b0b3b0
DIST sphinx-graphene-3.3.0.zip 22270 BLAKE2B 7cc467f12e7857cedb0336c7d0708f9429b9ccaa7f65077e6453a3e4ce0af92cbdb6d4dd3bec5801bd3e5fb233b4994dbce52fabe690da196ee25b5eec7fb63f SHA512 00cdaee50a7c16729d9d820de7d6c0f61215e3b906777b0705f2de0d2029f2ffb1f86134b1d673d00675d77729be47765999537fc42aeefafb026248b9b0b3b0

View file

@ -0,0 +1,73 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..12} )
inherit distutils-r1
MY_PV="${PV/_beta/b}"
MY_P="${PN}-${MY_PV}"
DESCRIPTION="GraphQL Framework for Python"
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 )
"
S="${WORKDIR}/${MY_P}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="
<dev-python/graphql-core-3.3
>=dev-python/graphql-core-3.1[${PYTHON_USEDEP}]
<dev-python/graphql-relay-3.3
>=dev-python/graphql-relay-3.1[${PYTHON_USEDEP}]
<dev-python/aniso8601-10[${PYTHON_USEDEP}]
>=dev-python/aniso8601-8[${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}]
)
"
distutils_enable_tests pytest
distutils_enable_sphinx docs
EPYTEST_DESELECT=(
graphene/types/tests/test_objecttype.py::test_objecttype_as_container_extra_args
graphene/types/tests/test_objecttype.py::test_objecttype_as_container_invalid_kwargs
graphene/types/tests/test_schema.py::TestUnforgivingExecutionContext::test_unexpected_error
)
src_unpack() {
unpack ${P}.tar.gz
rm -r "${S}"/examples
if use doc; then
unpack sphinx-${P}.zip
mv "${WORKDIR}"/sphinx_graphene_theme "${S}"/docs || die
fi
}
python_test() {
epytest --benchmark-disable
}