commit:     9479fbb7c196658779e0b2e0d2cc524e8c23be08
Author:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
AuthorDate: Sun Jul  5 11:35:52 2020 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Sun Jul  5 11:37:29 2020 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9479fbb7

dev-python/graphene: version bump

fix tests

Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>

 dev-python/graphene/Manifest                       |  1 +
 dev-python/graphene/graphene-2.1.8.ebuild          | 17 +++++++-----
 ...ne-2.1.8.ebuild => graphene-3.0.0_beta3.ebuild} | 31 +++++++++++-----------
 3 files changed, 27 insertions(+), 22 deletions(-)

diff --git a/dev-python/graphene/Manifest b/dev-python/graphene/Manifest
index 08f9b68..3808419 100644
--- a/dev-python/graphene/Manifest
+++ b/dev-python/graphene/Manifest
@@ -1 +1,2 @@
 DIST graphene-2.1.8.tar.gz 102179 BLAKE2B 
45c61f0f5965828f4b623a1a78678afdd9ef180c0ac83ff6d13ac4385479a787166e7401d75b4314cd125c623ebab7f43337fe2b00db471c1c8751177ca8b264
 SHA512 
238108c2047b9942de22f21b90581bbda42fb85ee3588ed5d4a26bd54784a6a71407c7a4e8308726ab22b6a62317e94253a60d1771272969e00e0097f3614d51
+DIST graphene-3.0.0_beta3.tar.gz 108606 BLAKE2B 
20b1af8400b1fe3721eafb1ce6884702653c58931933d0e3d6058180c115b48bf00a59cc7b6feb61648e9a85195033d0b0ff8c7e4e44822c77b1904cfc3c3b45
 SHA512 
65b920e5d10d080678df5c9a57d173baab421a3d2c676d943fb3e25fe596cc3623ddb6987322dbdc47d3b299e8f4363e4136bdcd2df0af3c1cf4117e7bb18375

diff --git a/dev-python/graphene/graphene-2.1.8.ebuild 
b/dev-python/graphene/graphene-2.1.8.ebuild
index 52cadca..a5836ab 100644
--- a/dev-python/graphene/graphene-2.1.8.ebuild
+++ b/dev-python/graphene/graphene-2.1.8.ebuild
@@ -15,14 +15,12 @@ LICENSE="MIT"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
 
-# We need newer graphql-core
-RESTRICT="test"
-
 RDEPEND="
-       dev-python/aniso8601[${PYTHON_USEDEP}]
+       <=dev-python/aniso8601-7[${PYTHON_USEDEP}]
        dev-python/graphql-core[${PYTHON_USEDEP}]
        dev-python/graphql-relay[${PYTHON_USEDEP}]
-       dev-python/unidecode[${PYTHON_USEDEP}]"
+       dev-python/unidecode[${PYTHON_USEDEP}]
+"
 
 DEPEND="test? (
        dev-python/pytest-mock[${PYTHON_USEDEP}]
@@ -30,7 +28,8 @@ DEPEND="test? (
        dev-python/promises[${PYTHON_USEDEP}]
        dev-python/mock[${PYTHON_USEDEP}]
        dev-python/pytz[${PYTHON_USEDEP}]
-       dev-python/iso8601[${PYTHON_USEDEP}] )"
+       dev-python/iso8601[${PYTHON_USEDEP}]
+)"
 
 python_prepare_all() {
        # Package installs 'examples' package which is forbidden and likely a 
bug in the build system.
@@ -43,3 +42,9 @@ distutils_enable_tests pytest
 # ModuleNotFoundError: No module named 'sphinx_graphene_theme'
 # There is a github, but no releases at the moment
 #distutils_enable_sphinx docs
+
+python_test() {
+       #distutils_install_for_testing
+       PYTHONPATH="${S}"
+       pytest -vv || die "Tests fail with ${EPYHTON}"
+}

diff --git a/dev-python/graphene/graphene-2.1.8.ebuild 
b/dev-python/graphene/graphene-3.0.0_beta3.ebuild
similarity index 63%
copy from dev-python/graphene/graphene-2.1.8.ebuild
copy to dev-python/graphene/graphene-3.0.0_beta3.ebuild
index 52cadca..d135047 100644
--- a/dev-python/graphene/graphene-2.1.8.ebuild
+++ b/dev-python/graphene/graphene-3.0.0_beta3.ebuild
@@ -7,39 +7,38 @@ PYTHON_COMPAT=( python3_6 )
 
 inherit distutils-r1
 
+MYPV="${PV/_beta/b}"
+MYP="${PN}-${MYPV}"
+
 DESCRIPTION="GraphQL Framework for Python"
 HOMEPAGE="https://github.com/graphql-python/graphene";
-SRC_URI="https://github.com/graphql-python/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+SRC_URI="https://github.com/graphql-python/${PN}/archive/v${MYPV}.tar.gz -> 
${P}.tar.gz"
 
 LICENSE="MIT"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
 
-# We need newer graphql-core
-RESTRICT="test"
-
 RDEPEND="
        dev-python/aniso8601[${PYTHON_USEDEP}]
        dev-python/graphql-core[${PYTHON_USEDEP}]
        dev-python/graphql-relay[${PYTHON_USEDEP}]
-       dev-python/unidecode[${PYTHON_USEDEP}]"
+       dev-python/unidecode[${PYTHON_USEDEP}]
+"
 
 DEPEND="test? (
-       dev-python/pytest-mock[${PYTHON_USEDEP}]
-       dev-python/pytest-asyncio[${PYTHON_USEDEP}]
-       dev-python/promises[${PYTHON_USEDEP}]
+       dev-python/iso8601[${PYTHON_USEDEP}]
        dev-python/mock[${PYTHON_USEDEP}]
+       dev-python/promises[${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/iso8601[${PYTHON_USEDEP}] )"
-
-python_prepare_all() {
-       # Package installs 'examples' package which is forbidden and likely a 
bug in the build system.
-       rm -r examples || die
+       dev-python/snapshottest[${PYTHON_USEDEP}]
+)"
 
-       distutils-r1_python_prepare_all
-}
+S="${WORKDIR}/${MYP}"
 
 distutils_enable_tests pytest
 # ModuleNotFoundError: No module named 'sphinx_graphene_theme'
-# There is a github, but no releases at the moment
+# There is a archived github, but no releases at the moment
 #distutils_enable_sphinx docs

Reply via email to