uv: Update to 0.8.0; add uv-build

This commit is contained in:
Christoph Reiter 2025-07-18 12:07:04 +02:00
parent 47231510ce
commit 829c780e4e

View File

@ -3,8 +3,9 @@
_realname=uv _realname=uv
pkgbase=mingw-w64-${_realname} pkgbase=mingw-w64-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}" pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}"
"${MINGW_PACKAGE_PREFIX}-python-${_realname}") "${MINGW_PACKAGE_PREFIX}-python-${_realname}"
pkgver=0.7.22 "${MINGW_PACKAGE_PREFIX}-python-${_realname}-build")
pkgver=0.8.0
pkgrel=1 pkgrel=1
pkgdesc='An extremely fast Python package installer and resolver, written in Rust (mingw-w64)' pkgdesc='An extremely fast Python package installer and resolver, written in Rust (mingw-w64)'
arch=('any') arch=('any')
@ -30,7 +31,7 @@ source=("git+${url}.git#tag=${pkgver}"
"bzip2-sys.tar.gz::https://crates.io/api/v1/crates/bzip2-sys/0.1.11+1.0.8/download" "bzip2-sys.tar.gz::https://crates.io/api/v1/crates/bzip2-sys/0.1.11+1.0.8/download"
"bzip2-use-pkgconfig.patch" "bzip2-use-pkgconfig.patch"
"link-zstd-dynamically.patch") "link-zstd-dynamically.patch")
sha256sums=('edf184a0146e9e7f125170247d75700ba7b364e2731e673cef33793a68951717' sha256sums=('03026d5cf15c29247159e6f7fd811c0a28b430526da621bf444a1a0f41617959'
'38ff0f21cfee8f97d94cef41359e0c89aa6113028ab0291aa8ca0038995a95aa' '38ff0f21cfee8f97d94cef41359e0c89aa6113028ab0291aa8ca0038995a95aa'
'736a955f3fa7875102d57c82b8cac37ec45224a07fd32d58f9f7a186b6cd4cdc' '736a955f3fa7875102d57c82b8cac37ec45224a07fd32d58f9f7a186b6cd4cdc'
'f73309fb98b89b2085bccee6ffb66820082628d096bc989922b25d33a1f5f378' 'f73309fb98b89b2085bccee6ffb66820082628d096bc989922b25d33a1f5f378'
@ -57,6 +58,7 @@ build() {
export RUSTFLAGS="${RUSTFLAGS/+crt-static/-crt-static}" export RUSTFLAGS="${RUSTFLAGS/+crt-static/-crt-static}"
export _PYTHON_HOST_PLATFORM=$(python -c "import sysconfig, sys; sys.stdout.write(sysconfig.get_platform())") export _PYTHON_HOST_PLATFORM=$(python -c "import sysconfig, sys; sys.stdout.write(sysconfig.get_platform())")
maturin build --frozen --strip --release --all-features maturin build --frozen --strip --release --all-features
maturin build --frozen --strip --release --all-features -m crates/uv-build/Cargo.toml
} }
package_uv() { package_uv() {
@ -71,15 +73,25 @@ package_uv() {
} }
package_python-uv() { package_python-uv() {
desc+=' (python wrapper)'
depends=("${MINGW_PACKAGE_PREFIX}-python" "${MINGW_PACKAGE_PREFIX}-uv") depends=("${MINGW_PACKAGE_PREFIX}-python" "${MINGW_PACKAGE_PREFIX}-uv")
MSYS2_ARG_CONV_EXCL="--prefix=" \ MSYS2_ARG_CONV_EXCL="--prefix=" \
python -m installer --prefix=${MINGW_PREFIX} \ python -m installer --prefix=${MINGW_PREFIX} \
--destdir="${pkgdir}" "${_realname}"/target/wheels/*.whl --destdir="${pkgdir}" "${_realname}"/target/wheels/uv-$pkgver-*.whl
rm -rf "${pkgdir}${MINGW_PREFIX}/bin" rm -rf "${pkgdir}${MINGW_PREFIX}/bin"
} }
package_python-uv-build() {
desc+=' (python build backend)'
depends=("${MINGW_PACKAGE_PREFIX}-python")
MSYS2_ARG_CONV_EXCL="--prefix=" \
python -m installer --prefix=${MINGW_PREFIX} \
--destdir="${pkgdir}" "${_realname}"/target/wheels/uv_build-$pkgver-*.whl
}
# template start; name=mingw-w64-splitpkg-wrappers; version=1.0; # template start; name=mingw-w64-splitpkg-wrappers; version=1.0;
# vim: set ft=bash : # vim: set ft=bash :