Merge pull request #17216 from jdavcs/dev_sqlalchemy_graphene_fix

Fix usage of graphene-sqlalchemy, bump to 3.0.0rc1
This commit is contained in:
John Chilton
2023-12-22 10:27:05 -05:00
committed by GitHub
4 changed files with 7 additions and 9 deletions
@@ -73,7 +73,7 @@ fsspec==2023.12.2 ; python_version >= "3.8" and python_version < "3.12"
future==0.18.3 ; python_version >= "3.8" and python_version < "3.12"
galaxy-sequence-utils==1.1.5 ; python_version >= "3.8" and python_version < "3.12"
galaxy2cwl==0.1.4 ; python_version >= "3.8" and python_version < "3.12"
graphene-sqlalchemy==3.0.0b3 ; python_version >= "3.8" and python_version < "3.12"
graphene-sqlalchemy==3.0.0rc1 ; python_version >= "3.8" and python_version < "3.12"
graphene==3.3 ; python_version >= "3.8" and python_version < "3.12"
graphql-core==3.2.3 ; python_version >= "3.8" and python_version < "3.12"
graphql-relay==3.2.0 ; python_version >= "3.8" and python_version < "3.12"
+4 -6
View File
@@ -4,10 +4,8 @@ from graphene_sqlalchemy import (
SQLAlchemyConnectionField,
SQLAlchemyObjectType,
)
from graphene_sqlalchemy.converter import (
convert_sqlalchemy_hybrid_property_type,
convert_sqlalchemy_type,
)
from graphene_sqlalchemy.converter import convert_sqlalchemy_type
from graphene_sqlalchemy.utils import column_type_eq
from graphql import GraphQLResolveInfo
from sqlalchemy.orm import scoped_session
from typing_extensions import TypedDict
@@ -67,12 +65,12 @@ class InfoDict(TypedDict):
# Map these Galaxy-ism to Graphene for cleaner interfaces.
@convert_sqlalchemy_type.register(TrimmedString)
@convert_sqlalchemy_type.register(column_type_eq(TrimmedString))
def convert_sqlalchemy_type_trimmed_string(*args, **kwd):
return graphene.String
@convert_sqlalchemy_hybrid_property_type.register(lambda t: t == TrimmedString)
@convert_sqlalchemy_type.register(column_type_eq(lambda t: t == TrimmedString))
def convert_sqlalchemy_hybrid_property_type_trimmed_string(arg):
return graphene.String
+1 -1
View File
@@ -39,7 +39,7 @@ install_requires =
galaxy-util
galaxy-web-apps
pytest
graphene-sqlalchemy==3.0.0b3 # these are only needed by tool shed - which we've split out but the test driver loads
graphene-sqlalchemy==3.0.0rc1 # these are only needed by tool shed - which we've split out but the test driver loads
starlette-graphene3
packages = find:
python_requires = >=3.8
+1 -1
View File
@@ -62,7 +62,7 @@ fastapi-utils = "*"
fs = "*"
future = "*"
galaxy_sequence_utils = "*"
graphene-sqlalchemy = "3.0.0b3" # need a beta release to be compat. with starlette plugin
graphene-sqlalchemy = "3.0.0rc1" # need a beta release to be compat. with starlette plugin
gravity = ">=1.0.4"
gunicorn = "*"
gxformat2 = "*"