acoustic-library-86413
08/30/2023, 8:11 AM// "valid_for_interpreter_constraints": [
// "CPython>=3.11.3"
// ],`
I have set up the config file as such:
[python]
pip_version = "23.0.1"
interpreter_constraints = ['>=3.11.3']
enable_resolves = true
default_resolve = "poetry"
[python.resolves]
poetry = "pants-poetry.lock"
tickets = "tickets-poetry.lock"
And in my build files for the 3.9.2 project:
python_sources(interpreter_constraints=['>=3.9.2'], resolve="tickets")
Additionally for the poetry_requirements in the 3.9.2 project:
poetry_requirements(
name="poetry",
resolve="tickets",
)
This results in the following error: The inputs use interpreter constraints ('CPython>=3.9.2') that are not a subset of those used to generate the lockfile ('CPython>=3.11.3') when attempting to build a PEX binary using the project files.gorgeous-winter-99296
08/30/2023, 8:46 AMacoustic-library-86413
08/30/2023, 8:55 AMgorgeous-winter-99296
08/30/2023, 9:03 AM[python.resolves_to_interpreter_constraints]
black = [">=3.9,<3.10"]
asterix = ["==3.10.*"]
It's just the docs showing to provide it as a command-line argument... you can translate all of those to the equivalent tomlgorgeous-winter-99296
08/30/2023, 9:09 AMacoustic-library-86413
08/30/2023, 9:30 AM