cool-easter-32542
05/07/2023, 2:49 PMinstall_from_resolve with [pytest] raises an AssertionError (from assert loaded_lockfile.is_pex_native in source) when the associated lockfile is a manually generated requirements-style lockfile.
The relevant parts of the pants.toml:
[GLOBAL]
pants_version = "2.16.0rc0"
[python]
enable_resolves = true
interpreter_constraints = ['==3.10.*']
resolves_generate_lockfiles = false
[python.resolves]
python-default = "src/py/deps.lock"
[pytest]
install_from_resolve = "python-default"
The lockfile contains the following dependencies (and their transitive dependencies):
poetry = "1.4.2"
pytest-cov = ">=2.12,!=2.12.1,<3.1"
pytest-xdist = ">=2.5,<3"
Am I missing something in my config? Is this use-case not supported?
Pants version
2.16.0rc0
OS
Tested on macOS. Not tested on other platforms.
Additional info
The contents of src/py/deps.lock is in this gist.
pantsbuild/pantscool-easter-32542
05/08/2023, 10:51 PM