Update requirements to the official graphene 3.0 release

Also, Graphql-relay introduces breaking changes to this repo in version 3.1.1
Use stricter pinning of the graphene and graphql-relay requirements in support of this upgrade
as graphene 3.0 supports 3.0-4.0 which is too broad for graphene-django
This commit is contained in:
Keith Hackbarth 2022-01-21 16:55:42 -08:00
parent e1a7d19833
commit e996514e06
2 changed files with 5 additions and 2 deletions

View File

@ -1,12 +1,14 @@
from functools import partial from functools import partial
from django.db.models.query import QuerySet from django.db.models.query import QuerySet
from graphql_relay.connection.arrayconnection import (
from graphql_relay.connection.array_connection import (
connection_from_array_slice, connection_from_array_slice,
cursor_to_offset, cursor_to_offset,
get_offset_with_default, get_offset_with_default,
offset_to_cursor, offset_to_cursor,
) )
from promise import Promise from promise import Promise
from graphene import Int, NonNull from graphene import Int, NonNull

View File

@ -60,8 +60,9 @@ setup(
keywords="api graphql protocol rest relay graphene", keywords="api graphql protocol rest relay graphene",
packages=find_packages(exclude=["tests", "examples", "examples.*"]), packages=find_packages(exclude=["tests", "examples", "examples.*"]),
install_requires=[ install_requires=[
"graphene>=3.0.0b5,<4", "graphene>=3.0,<4",
"graphql-core>=3.1.0,<4", "graphql-core>=3.1.0,<4",
"graphql-relay>=3.1.1,<4",
"Django>=2.2", "Django>=2.2",
"promise>=2.1", "promise>=2.1",
"text-unidecode", "text-unidecode",