dry-zebra-75841
06/05/2025, 2:48 AM$ pants list :: | grep alem
shared/python/resolves/standard_py313#alembic
but when I try to run it (not sure if I have the right syntax here)
% pants run //shared/python/resolves/standard_py313#alembic -- --help
10:41:02.76 [ERROR] 1 Exception encountered:
Engine traceback:
in `run` goal
InvalidLockfileError: You are consuming `alembic==1.16.1` from the `standard_py313` lockfile at shared/python/resolves/standard_py313/requirements.lock with incompatible inputs.
- The inputs use interpreter constraints (`CPython==3.11.* OR CPython==3.12.* OR CPython==3.13.*`) that are not a subset of those used to generate the lockfile (`CPython==3.13.*`).
- The input interpreter constraints are specified by your code, using the `[python].interpreter_constraints` option and the `interpreter_constraints` target field.
- To create a lockfile with new interpreter constraints, update the option `[python].resolves_to_interpreter_constraints`, and then generate the lockfile (see below).
See <https://www.pantsbuild.org/2.23/docs/python/overview/interpreter-compatibility> for details.
To regenerate your lockfile, run `pants generate-lockfiles --resolve=standard_py313`.
See <https://www.pantsbuild.org/2.23/docs/python/overview/third-party-dependencies> for details.
in my pants.toml I do have
[python]
interpreter_constraints = [
"CPython==3.11.*",
"CPython==3.12.*",
"CPython==3.13.*",
]
But I also have
[python.resolves_to_interpreter_constraints]
standard_py313 = ["CPython==3.13.*"]
<snip a bunch of others>