Closed g-as closed 1 year ago
ah interesting, it looks like if you don't use an extra it gets added to the dependency anyway, event if it is optional: https://github.com/strawberry-graphql/strawberry/blob/main/pyproject.toml#L58
I'll make the updated now! Thanks for the check! I'll also remove the python version specifier 😊
if I remove the version specifier I get this:
poetry lock
Updating dependencies
Resolving dependencies... (9.1s)
The current project's Python requirement (>=3.7,<4.0) is not compatible with some of the required packages Python requirement:
- starlite requires Python >=3.8,<4.0, so it will not be satisfied for Python >=3.7,<3.8
- starlite requires Python >=3.8,<4.0, so it will not be satisfied for Python >=3.7,<3.8
- starlite requires Python >=3.8,<4.0, so it will not be satisfied for Python >=3.7,<3.8
- starlite requires Python >=3.8,<4.0, so it will not be satisfied for Python >=3.7,<3.8
- starlite requires Python >=3.8,<4.0, so it will not be satisfied for Python >=3.7,<3.8
- starlite requires Python >=3.8,<4.0, so it will not be satisfied for Python >=3.7,<3.8
- starlite requires Python >=3.8,<4.0, so it will not be satisfied for Python >=3.7,<3.8
- starlite requires Python >=3.8,<4.0, so it will not be satisfied for Python >=3.7,<3.8
- starlite requires Python >=3.8,<4.0, so it will not be satisfied for Python >=3.7,<3.8
- starlite requires Python >=3.8,<4.0, so it will not be satisfied for Python >=3.7,<3.8
- starlite requires Python >=3.8,<4.0, so it will not be satisfied for Python >=3.7,<3.8
- starlite requires Python >=3.8,<4.0, so it will not be satisfied for Python >=3.7,<3.8
- starlite requires Python >=3.8,<4.0, so it will not be satisfied for Python >=3.7,<3.8
- starlite requires Python >=3.8,<4.0, so it will not be satisfied for Python >=3.7,<3.8
As of
0.168.0
,starlite
becomes a mandatory dependency, which seems like either an oversight (relative to other integrations) or a misconfiguration.See the content of https://pypi.org/pypi/strawberry-graphql/json:
starlite
is not linked to an extra identifier.See also strawberry in a
poetry.lock
:Also,
starlite
package already knows its compatibility with python, having it specified instrawberry
feels redundant (^3.8
). I'm only saying this because we already had this conversation withdjango
's python versions, and ended up only specifying a lower bound (https://github.com/strawberry-graphql/strawberry/pull/1687).