Skip to content

Commit

Permalink
fix: bump strawberry-graphql version to 0.243.1 (#4851)
Browse files Browse the repository at this point in the history
  • Loading branch information
RogerHYang authored Oct 3, 2024
1 parent 2d263cb commit 6cd6d9a
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 23 deletions.
4 changes: 2 additions & 2 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
mypy==1.11.2
ruff==0.6.4
pytest==8.3.2
ruff==0.6.8
pytest==8.3.3
pytest-xdist==3.6.1
pytest-asyncio==0.23.8
uvloop; platform_system != 'Windows'
34 changes: 14 additions & 20 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,9 @@ dependencies = [
"starlette",
"uvicorn",
"psutil",
"strawberry-graphql==0.236.0", # need to pin version because we're monkey-patching
"strawberry-graphql==0.243.1", # need to pin version because we're monkey-patching
"pyarrow",
"typing-extensions>=4.5; python_version<'3.12'",
# A minimum version of typing-extensions==4.6.0 is needed to avoid this issue on Python 3.12: https://github.com/Azure/azure-sdk-for-python/issues/33442#issuecomment-1847886784
"typing-extensions>=4.6; python_version>='3.12'",
"typing-extensions>=4.6",
"scipy",
"wrapt",
"protobuf>=3.20, <6.0",
Expand Down Expand Up @@ -73,21 +71,20 @@ dev = [
"uv==0.4.8",
"jupyter",
"nbqa",
"ruff==0.6.4",
"ruff==0.6.8",
"mypy==1.11.2",
"pandas>=1.0",
"tabulate", # used by DataFrame.to_markdown()
"types-tabulate",
"pandas-stubs==2.2.2.240603; python_version>='3.9'",
"pandas-stubs==2.0.3.230814; python_version<'3.9'",
"pytest==8.3.2",
"pandas-stubs==2.2.2.240603",
"pytest==8.3.3",
"pytest-xdist",
"pytest-asyncio",
"pytest-cov",
"pytest-postgresql",
"asyncpg",
"psycopg[binary,pool]",
"strawberry-graphql[debug-server,opentelemetry]==0.236.0", # need to pin version because we're monkey-patching
"strawberry-graphql[debug-server,opentelemetry]==0.243.1", # need to pin version because we're monkey-patching
"pre-commit",
"arize[AutoEmbeddings, LLM_Evaluation]",
"llama-index>=0.10.3",
Expand All @@ -97,7 +94,7 @@ dev = [
"anthropic",
"prometheus_client",
"asgi-lifespan",
"Faker>=26.0.0",
"Faker>=30.1.0",
"portpicker",
"uvloop; platform_system != 'Windows'",
"grpc-interceptor[testing]",
Expand Down Expand Up @@ -125,7 +122,7 @@ container = [
"opentelemetry-instrumentation-sqlalchemy",
"opentelemetry-instrumentation-grpc",
"py-grpc-prometheus",
"strawberry-graphql[opentelemetry]==0.236.0", # need to pin version because we're monkey-patching
"strawberry-graphql[opentelemetry]==0.243.1", # need to pin version because we're monkey-patching
"uvloop; platform_system != 'Windows'",
]
test = [
Expand Down Expand Up @@ -177,8 +174,7 @@ artifacts = [
dependencies = [
"numpy",
"pandas==2.2.2; python_version>='3.9'",
"pandas==1.4.0; python_version<'3.9'",
"pytest==8.3.2",
"pytest==8.3.3",
"pytest-asyncio",
"pytest-cov",
"pytest-postgresql",
Expand All @@ -192,14 +188,12 @@ dependencies = [
"grpc-interceptor[testing]",
"responses",
"tiktoken",
"typing-extensions==4.5.0; python_version=='3.8'",
"typing-extensions==4.6.0; python_version=='3.9'",
"typing-extensions==4.7.0",
"httpx", # For OpenAI testing
"respx", # For OpenAI testing
"nest-asyncio", # for executor testing
"astunparse; python_version<'3.9'", # `ast.unparse(...)` is only available starting with Python 3.9
"asgi-lifespan",
"Faker>=26.0.0",
"Faker>=30.1.0",
"uvloop; platform_system != 'Windows'",
]

Expand All @@ -222,7 +216,7 @@ dependencies = [
"py-grpc-prometheus",
"pypistats", # this is needed to type-check third-party packages
"requests", # this is needed to type-check third-party packages
"strawberry-graphql[opentelemetry]==0.236.0", # need to pin version because we're monkey-patching
"strawberry-graphql[opentelemetry]==0.243.1", # need to pin version because we're monkey-patching
"tenacity",
"types-cachetools",
"types-protobuf",
Expand All @@ -239,7 +233,7 @@ python = ["3.9", "3.12"]
[tool.hatch.envs.style]
detached = true
dependencies = [
"ruff==0.6.4",
"ruff==0.6.8",
]

[[tool.hatch.envs.style.matrix]]
Expand Down Expand Up @@ -343,7 +337,7 @@ check = [

[tool.hatch.envs.gql]
dependencies = [
"strawberry-graphql[cli]==0.236.0", # need to pin version because we're monkey-patching
"strawberry-graphql[cli]==0.243.1", # need to pin version because we're monkey-patching
"requests",
]

Expand Down
5 changes: 4 additions & 1 deletion src/phoenix/server/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
Optional,
Sequence,
Tuple,
Type,
TypedDict,
Union,
cast,
Expand All @@ -43,6 +44,7 @@
from starlette.staticfiles import StaticFiles
from starlette.templating import Jinja2Templates
from starlette.types import Scope, StatefulLifespan
from strawberry.extensions import SchemaExtension
from strawberry.fastapi import GraphQLRouter
from strawberry.schema import BaseSchema
from typing_extensions import TypeAlias
Expand Down Expand Up @@ -672,7 +674,8 @@ def create_app(
initial_batch_of_evaluations=initial_batch_of_evaluations,
)
tracer_provider = None
strawberry_extensions = schema.get_extensions()
strawberry_extensions: List[Union[Type[SchemaExtension], SchemaExtension]] = []
strawberry_extensions.extend(schema.get_extensions())
if server_instrumentation_is_enabled():
tracer_provider = initialize_opentelemetry_tracer_provider()
from opentelemetry.trace import TracerProvider
Expand Down

0 comments on commit 6cd6d9a

Please sign in to comment.