Open Rogdham opened 6 months ago
@charliermarsh I've proposed a change in dependabot that relies on the tiny piece of string autogenerated by uv
to decide if it should use uv pip compile
instead of pip-compile
. I'm worried about the brittleness of this approach but if we don't have any better ideas, I would like to at least add a test that ensures this doesn't change without warning. I can try adding it if you think that helps.
Hello, I noticed that
pip-tools
includes the Python version compiled against in the header, whileuv
does not:As we know, until a platform-agnostic lock file is created, the output depends on the Python version.
Having the version included is useful for caching mechanisms, typically in CI where the venv can be cached based on the hash of the
requirements.txt
file.As a workaround for now, we can add the version in
UV_CUSTOM_COMPILE_COMMAND
.Results above from pip-tools 7.4.1 / uv 0.1.44.