quaint-telephone-89068
11/22/2022, 4:27 PM$ pex3 lock create --indent 2 absl-py~=0.10.0 | tee lock.json | grep 0.10.0
"url": "<https://files.pythonhosted.org/packages/b9/07/f69dd3367368ad69f174bfe426a973651412ec11d48ec05c000f19fe0561/absl_py-0.10.0-py3-none-any.whl>"
"version": "0.10.0"
"absl-py~=0.10.0"
Then export the lockfile:
$ pex3 lock export lock.json
absl-py==0.10 \
--hash=sha256:ea07d7d437798bffc14f39fccec3909d251a1e76e233205ded72b71c267e0178
six==1.16 \
--hash=sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254
and note absl-py and six has been truncated from 0.10.0 to 0.10, and 1.16.0 to 1.16.
pip, of course doesn't care. But migrating from pip-tools (specifically pip-compile) created requirements.txt to `pex`'s exported one, I get a noisy diff due to the change.
pantsbuild/pex