MyGit

0.5.3

astral-sh/uv

版本发布时间: 2024-11-20 03:36:51

astral-sh/uv最新发布版本:0.5.8(2024-12-11 23:41:02)

Release Notes

This release includes support for conflicting optional dependencies and dependency groups in the uv resolver, including the ability to specify dependency sources (like index assignment) on a per-extra or per-group basis.

For example, you can now select CPU-only vs. GPU-enabled PyTorch builds at runtime by defining conflicting extras in a pyproject.toml, and assigning different extras to different PyTorch indexes:

[project]
name = "project"
version = "0.1.0"
requires-python = ">=3.12.0"

[project.optional-dependencies]
# Include `torch` whenever `--extra cpu` or `--extra gpu` is provided.
cpu = ["torch>=2.5.1"]
gpu = ["torch>=2.5.1"]

[tool.uv]
# But allow `cpu` and `gpu` to choose conflicting versions of `torch`.
conflicts = [[{ extra = "cpu" }, { extra = "gpu" }]]

[tool.uv.sources]
torch = [
  # With `--extra cpu`, pull PyTorch from the CPU-only index.
  { index = "pytorch-cpu", extra = "cpu", marker = "platform_system != 'Darwin'" },
  # With `--extra gpu`, pull PyTorch from the GPU-enabled index.
  { index = "pytorch-gpu", extra = "gpu" },
]

[[tool.uv.index]]
name = "pytorch-cpu"
url = "https://download.pytorch.org/whl/cpu"
explicit = true

[[tool.uv.index]]
name = "pytorch-gpu"
url = "https://download.pytorch.org/whl/cu124"
explicit = true

See the PyTorch documentation for more.

Enhancements

Performance

Bug fixes

Documentation

Error messages

Install uv 0.5.3

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/uv/releases/download/0.5.3/uv-installer.sh | sh

Install prebuilt binaries via powershell script

powershell -ExecutionPolicy ByPass -c "irm https://github.com/astral-sh/uv/releases/download/0.5.3/uv-installer.ps1 | iex"

Download uv 0.5.3

File Platform Checksum
uv-aarch64-apple-darwin.tar.gz Apple Silicon macOS checksum
uv-x86_64-apple-darwin.tar.gz Intel macOS checksum
uv-i686-pc-windows-msvc.zip x86 Windows checksum
uv-x86_64-pc-windows-msvc.zip x64 Windows checksum
uv-aarch64-unknown-linux-gnu.tar.gz ARM64 Linux checksum
uv-i686-unknown-linux-gnu.tar.gz x86 Linux checksum
uv-powerpc64-unknown-linux-gnu.tar.gz PPC64 Linux checksum
uv-powerpc64le-unknown-linux-gnu.tar.gz PPC64LE Linux checksum
uv-s390x-unknown-linux-gnu.tar.gz S390x Linux checksum
uv-x86_64-unknown-linux-gnu.tar.gz x64 Linux checksum
uv-armv7-unknown-linux-gnueabihf.tar.gz ARMv7 Linux checksum
uv-aarch64-unknown-linux-musl.tar.gz ARM64 MUSL Linux checksum
uv-i686-unknown-linux-musl.tar.gz x86 MUSL Linux checksum
uv-x86_64-unknown-linux-musl.tar.gz x64 MUSL Linux checksum
uv-arm-unknown-linux-musleabihf.tar.gz ARMv6 MUSL Linux (Hardfloat) checksum
uv-armv7-unknown-linux-musleabihf.tar.gz ARMv7 MUSL Linux checksum

相关地址:原始地址 下载(tar) 下载(zip)

1、 dist-manifest.json 42.8KB

2、 sha256.sum 81B

3、 source.tar.gz 2.77MB

4、 source.tar.gz.sha256 81B

5、 uv-aarch64-apple-darwin.tar.gz 12.38MB

6、 uv-aarch64-apple-darwin.tar.gz.sha256 97B

7、 uv-aarch64-unknown-linux-gnu.tar.gz 12.8MB

8、 uv-aarch64-unknown-linux-gnu.tar.gz.sha256 102B

9、 uv-aarch64-unknown-linux-musl.tar.gz 12.62MB

10、 uv-aarch64-unknown-linux-musl.tar.gz.sha256 103B

11、 uv-arm-unknown-linux-musleabihf.tar.gz 13.26MB

12、 uv-arm-unknown-linux-musleabihf.tar.gz.sha256 105B

13、 uv-armv7-unknown-linux-gnueabihf.tar.gz 13.04MB

14、 uv-armv7-unknown-linux-gnueabihf.tar.gz.sha256 106B

15、 uv-armv7-unknown-linux-musleabihf.tar.gz 13.02MB

16、 uv-armv7-unknown-linux-musleabihf.tar.gz.sha256 107B

17、 uv-i686-pc-windows-msvc.zip 12.75MB

18、 uv-i686-pc-windows-msvc.zip.sha256 94B

19、 uv-i686-unknown-linux-gnu.tar.gz 13.57MB

20、 uv-i686-unknown-linux-gnu.tar.gz.sha256 99B

21、 uv-i686-unknown-linux-musl.tar.gz 13.32MB

22、 uv-i686-unknown-linux-musl.tar.gz.sha256 100B

23、 uv-installer.ps1 19.06KB

24、 uv-installer.sh 55.95KB

25、 uv-powerpc64-unknown-linux-gnu.tar.gz 14.1MB

26、 uv-powerpc64-unknown-linux-gnu.tar.gz.sha256 104B

27、 uv-powerpc64le-unknown-linux-gnu.tar.gz 14MB

28、 uv-powerpc64le-unknown-linux-gnu.tar.gz.sha256 106B

29、 uv-powerpc64le-unknown-linux-musl.tar.gz 15MB

30、 uv-powerpc64le-unknown-linux-musl.tar.gz.sha256 107B

31、 uv-s390x-unknown-linux-gnu.tar.gz 18.08MB

32、 uv-s390x-unknown-linux-gnu.tar.gz.sha256 100B

33、 uv-x86_64-apple-darwin.tar.gz 13.33MB

34、 uv-x86_64-apple-darwin.tar.gz.sha256 96B

35、 uv-x86_64-pc-windows-msvc.zip 14.45MB

36、 uv-x86_64-pc-windows-msvc.zip.sha256 96B

37、 uv-x86_64-unknown-linux-gnu.tar.gz 13.82MB

38、 uv-x86_64-unknown-linux-gnu.tar.gz.sha256 101B

39、 uv-x86_64-unknown-linux-musl.tar.gz 13.94MB

40、 uv-x86_64-unknown-linux-musl.tar.gz.sha256 102B

查看:2024-11-20发行的版本