graphql-python / graphql-core

A Python 3.6+ port of the GraphQL.js reference implementation of GraphQL.
MIT License
513 stars 136 forks source link

Version 0.3.0 fails to install on python 3.12.3/ubuntu 24.04 with latest pip #228

Open NormanTUD opened 2 months ago

NormanTUD commented 2 months ago
WARNING: Ignoring version 0.3.0 of graphql-ws since it has invalid metadata:
Requested graphql-ws<=0.3.0 from https://files.pythonhosted.org/packages/4b/32/85a8c99131149b1657347baca5528867046453272296452513da5d9d21ef/graphql_ws-0.3.0-py2.py3-none-any.whl (from ax) has invalid metadata: Expected matching RIGHT_PARENTHESIS for LEFT_PARENTHESIS, after version specifier
    graphql-core (>=2.0<3)
                 ~~~~~~^
Please use pip<24.1 if you need to use this version.

I get this error. In the metadata of the wheel, I see this:

Requires-Dist: graphql-core (>=2.0<3)

Does this really have to be there, since newer pip versions seemingly cannot handle that?

erikwrede commented 2 months ago

Hey, this repository is for GraphQL Core, the reference implementation of the GraphQL spec. GraphQL-WS is a separate specification and, depending on your web framework and stack, provided by the graphql-ws library. That library was made for a previous version of GraphQL Core, and doesn't support v3.x yet. Hence, it is an issue to raise over there and not on the reference implementation.

Is there any specific library you are using like graphene with flask or similar? I might be able to help you find an alternative solution.