hundreds-carpet-28072
02/09/2024, 12:50 PMpants.toml to the new style, they now no longer install based on the versions specified. And in the case of extra_requirements or type stubs these packages simply fail to be installed. What am I doing incorrectly?
# old style
[coverage-py]
version = "coverage[toml]==7.2.7"
lockfile = "<none>"
# new style (for display purposes i've moved reqs from their file to be directly in config)
[coverage-py]
requirements = ['coverage[toml]==7.2.7']
Excerpt from pex output:
pex: Downloading FileArtifact(url='<https://files.pythonhosted.org/packages/7c/f6/3c1715c27e3251baa578b469f3c266b48623d3bce4ea08509a636e11447c/coverage-7.2.1-cp39-cp39-macosx_11_0_arm64.whl>', fingerprint=Fingerprint(algorithm='sha256', hash='0f8318ed0f3c376cfad8d3520f496946977abde080439d6689d7799791457454'), verified=False, filename='coverage-7.2.1-cp39-cp39-macosx_11_0_arm64.whl')gorgeous-winter-99296
02/09/2024, 2:55 PMrequirements option interacts with resolves -- it's not a substitute for `version`:
https://www.pantsbuild.org/2.19/reference/subsystems/coverage-py#install_from_resolve
https://www.pantsbuild.org/2.19/reference/subsystems/coverage-py#requirementshundreds-carpet-28072
02/09/2024, 2:56 PMgorgeous-winter-99296
02/09/2024, 3:01 PMhundreds-carpet-28072
02/09/2024, 3:05 PMversion, extra_requirements, type_stubs being deprecated in favour of resolves.gorgeous-winter-99296
02/09/2024, 3:12 PMhundreds-carpet-28072
02/09/2024, 5:58 PMpyside6 that’s a part of my normal reqs, although I’m not sure whether that’s down to the right type of distribution not being available. So will attempt to debug the process but presumably pants generate_lockfile should be performing the same logic as any other internal pip install so it should work.hundreds-carpet-28072
02/12/2024, 3:13 PM