curved-television-6568
01/31/2022, 9:15 AMcurved-television-6568
01/31/2022, 9:18 AMextra_requirements.add = ["strawberry-graphql"]
and tried to generate a lockfile for that tool, it āwouldnāt finishā (I interrupted it after 1000s). When I included some version constraints, extra_requirements.add = ["strawberry-graphql>=0.95.1,<0.96"]
to it, I got a helpful message hinting at why it took so long to lock (I think) without the version constraints:
Resolving dependencies...
SolverProblemError
The current project's Python requirement (>=3.6) is not compatible with some of the required packages Python requirement:
- strawberry-graphql requires Python >=3.7,<4.0, so it will not be satisfied for Python >=3.6,<3.7 || >=4.0
Because no versions of strawberry-graphql match >0.95.1,<0.96
and strawberry-graphql (0.95.1) requires Python >=3.7,<4.0, strawberry-graphql is forbidden.
So, because pants-lockfile-generation depends on strawberry-graphql (<0.96,>=0.95.1), version solving failed.
So, also including interpreter_constraints = [">=3.7,<3.10"]
it created my lockfile in seconds (or less, real quick any way).curved-television-6568
01/31/2022, 9:20 AMhundreds-father-404
01/31/2022, 2:39 PM