Skip to content

Commit

Permalink
add micro version (#107)
Browse files Browse the repository at this point in the history
micro version number is useful when there are some packages that exclude .0 versions due to a bug found in it, such as !=3.11.0 .

See related: plasma-umass/scalene#850
  • Loading branch information
chrisirhc authored Aug 13, 2024
1 parent 88e2df9 commit 4790719
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion uv/private/pip.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,12 @@ _COMMON_ATTRS = {
}

def _python_version(py_toolchain):
return "{major}.{minor}".format(
# micro is useful when there are some packages that exclude .0 versions due
# to a bug, such as !=3.11.0
return "{major}.{minor}.{micro}".format(
major = py_toolchain.py3_runtime.interpreter_version_info.major,
minor = py_toolchain.py3_runtime.interpreter_version_info.minor,
micro = py_toolchain.py3_runtime.interpreter_version_info.micro,
)

def _uv_pip_compile(
Expand Down

0 comments on commit 4790719

Please sign in to comment.