1 |
commit: eb562b61a98bb450c817dc868f35dfcc770facc6 |
2 |
Author: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in> |
3 |
AuthorDate: Wed May 26 00:27:47 2021 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 26 01:53:16 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=eb562b61 |
7 |
|
8 |
dev-python/graphene: docs, support python 3.9 |
9 |
|
10 |
Signed-off-by: Anna Vyalkova <cyber+gentoo <AT> sysrq.in> |
11 |
|
12 |
dev-python/graphene/Manifest | 1 + |
13 |
dev-python/graphene/graphene-3.0.0_beta7.ebuild | 58 +++++++++++++++++-------- |
14 |
2 files changed, 40 insertions(+), 19 deletions(-) |
15 |
|
16 |
diff --git a/dev-python/graphene/Manifest b/dev-python/graphene/Manifest |
17 |
index 3618cd539..aa53b7d8b 100644 |
18 |
--- a/dev-python/graphene/Manifest |
19 |
+++ b/dev-python/graphene/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST graphene-3.0.0_beta7.tar.gz 113258 BLAKE2B 4a3adadfea6dc6fd936b8bad83cf02c1b2b7937648712ee26ce3c5eb7e6d6631790ae2f22fff334de4495ed3197761862e88450e7f837ee06f71e7de4009efe4 SHA512 df4dee75c8c5bc5643dd5231bff61f7f1e2efe7203e61a3e32b10c80c2f44139a408ca99726fea51d6aa6e844e648c860c41e3e20ee4679dd3573f43047e71fa |
22 |
+DIST sphinx-graphene-3.0.0_beta7.zip 22270 BLAKE2B 7cc467f12e7857cedb0336c7d0708f9429b9ccaa7f65077e6453a3e4ce0af92cbdb6d4dd3bec5801bd3e5fb233b4994dbce52fabe690da196ee25b5eec7fb63f SHA512 00cdaee50a7c16729d9d820de7d6c0f61215e3b906777b0705f2de0d2029f2ffb1f86134b1d673d00675d77729be47765999537fc42aeefafb026248b9b0b3b0 |
23 |
|
24 |
diff --git a/dev-python/graphene/graphene-3.0.0_beta7.ebuild b/dev-python/graphene/graphene-3.0.0_beta7.ebuild |
25 |
index d0223b990..1f9259316 100644 |
26 |
--- a/dev-python/graphene/graphene-3.0.0_beta7.ebuild |
27 |
+++ b/dev-python/graphene/graphene-3.0.0_beta7.ebuild |
28 |
@@ -3,16 +3,21 @@ |
29 |
|
30 |
EAPI=7 |
31 |
|
32 |
-PYTHON_COMPAT=( python3_{7,8} ) |
33 |
+PYTHON_COMPAT=( python3_{7..9} ) |
34 |
|
35 |
inherit distutils-r1 |
36 |
|
37 |
-MYPV="${PV/_beta/b}" |
38 |
-MYP="${PN}-${MYPV}" |
39 |
+MY_PV="${PV/_beta/b}" |
40 |
+MY_P="${PN}-${MY_PV}" |
41 |
|
42 |
DESCRIPTION="GraphQL Framework for Python" |
43 |
-HOMEPAGE="https://github.com/graphql-python/graphene" |
44 |
-SRC_URI="https://github.com/graphql-python/${PN}/archive/v${MYPV}.tar.gz -> ${P}.tar.gz" |
45 |
+HOMEPAGE="https://graphene-python.org |
46 |
+ https://pypi.org/project/graphene |
47 |
+ https://github.com/graphql-python/graphene |
48 |
+" |
49 |
+SRC_URI="https://github.com/graphql-python/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz |
50 |
+ doc? ( https://graphene-python.org/sphinx_graphene_theme.zip -> sphinx-${P}.zip ) |
51 |
+" |
52 |
|
53 |
LICENSE="MIT" |
54 |
SLOT="0" |
55 |
@@ -24,20 +29,35 @@ RDEPEND=" |
56 |
dev-python/graphql-relay[${PYTHON_USEDEP}] |
57 |
" |
58 |
|
59 |
-DEPEND="test? ( |
60 |
- dev-python/iso8601[${PYTHON_USEDEP}] |
61 |
- dev-python/mock[${PYTHON_USEDEP}] |
62 |
- dev-python/promise[${PYTHON_USEDEP}] |
63 |
- dev-python/pytest-asyncio[${PYTHON_USEDEP}] |
64 |
- dev-python/pytest-benchmark[${PYTHON_USEDEP}] |
65 |
- dev-python/pytest-mock[${PYTHON_USEDEP}] |
66 |
- dev-python/pytz[${PYTHON_USEDEP}] |
67 |
- dev-python/snapshottest[${PYTHON_USEDEP}] |
68 |
-)" |
69 |
+BDEPEND=" |
70 |
+ doc? ( app-arch/unzip ) |
71 |
+ test? ( |
72 |
+ dev-python/iso8601[${PYTHON_USEDEP}] |
73 |
+ dev-python/promise[${PYTHON_USEDEP}] |
74 |
+ dev-python/pytest-asyncio[${PYTHON_USEDEP}] |
75 |
+ dev-python/pytest-benchmark[${PYTHON_USEDEP}] |
76 |
+ dev-python/pytest-mock[${PYTHON_USEDEP}] |
77 |
+ dev-python/pytz[${PYTHON_USEDEP}] |
78 |
+ dev-python/snapshottest[${PYTHON_USEDEP}] |
79 |
+ ) |
80 |
+" |
81 |
|
82 |
-S="${WORKDIR}/${MYP}" |
83 |
+S="${WORKDIR}/${MY_P}" |
84 |
|
85 |
distutils_enable_tests pytest |
86 |
-# ModuleNotFoundError: No module named 'sphinx_graphene_theme' |
87 |
-# There is a archived github, but no releases at the moment |
88 |
-#distutils_enable_sphinx docs |
89 |
+ |
90 |
+distutils_enable_sphinx docs |
91 |
+ |
92 |
+src_unpack() { |
93 |
+ unpack ${P}.tar.gz |
94 |
+ |
95 |
+ if use doc ; then |
96 |
+ unpack sphinx-${P}.zip |
97 |
+ mv "${WORKDIR}"/sphinx_graphene_theme "${S}"/docs || die |
98 |
+ fi |
99 |
+} |
100 |
+ |
101 |
+python_test() { |
102 |
+ epytest --benchmark-disable \ |
103 |
+ --deselect graphene/types/tests/test_schema.py::TestUnforgivingExecutionContext::test_unexpected_error |
104 |
+} |