diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-09-02 12:28:17 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-09-02 12:28:17 +0100 |
commit | 20b6ab983b55b022c6e4af317154089e18ad41cb (patch) | |
tree | 07060dcd7f71fd5f02ecf6463cb8bf3665b65bcc /dev-python/uv | |
parent | 12a4866975c254ac127821e7562eda5ac119fba3 (diff) |
gentoo auto-resync : 02:09:2024 - 12:28:17
Diffstat (limited to 'dev-python/uv')
-rw-r--r-- | dev-python/uv/Manifest | 3 | ||||
-rw-r--r-- | dev-python/uv/uv-0.4.2.ebuild | 113 |
2 files changed, 116 insertions, 0 deletions
diff --git a/dev-python/uv/Manifest b/dev-python/uv/Manifest index 6ed30f348885..4c910bf263ff 100644 --- a/dev-python/uv/Manifest +++ b/dev-python/uv/Manifest @@ -6,6 +6,9 @@ DIST tl-6e25b2ee2513d75385101a8ff9f591ef51f314ec.gh.tar.gz 37106 BLAKE2B c30d1c3 DIST uv-0.3.5-crates.tar.xz 48793516 BLAKE2B 49ada395e1834a3c5ec7835a2a23cea885ec111250e4fccc8d78558b561938e12cdb1de643a1b84383a5aa1abfca916d1f4d06fe2dbe69ef47092ddbed06a367 SHA512 d3d2d5a33c91f4dd6397d60d4877d8501136e74291bd214d5b54593f4b9aa246015c58caab5de4e6b5b7040c9d6bd41478a800bb92957df8f12da81d5b843030 DIST uv-0.4.0.gh.tar.gz 2486795 BLAKE2B 9eac98c81e4f9c7631c3ee49ab9edfb3a9191417abfbf4ae79f6c6ed9172eef28669b49f1bc41aa1cc1bad403e55002a9ef269a5f76540395c7eb90b97ff3ac1 SHA512 e138bead288743923a695ffae0ca1eae88e94cc39c209be7a263bf1da644702922f32becfc33954f9a354b69307bce4ca545684a0757499ac5c93d121405c68c DIST uv-0.4.1.gh.tar.gz 2508515 BLAKE2B 1de61718c046f4e5c40513561ed049d4034946bf57f113edc4df5edab5f3536f35a89c35d135db20b6f183dabed3f2910c65a15152144fc0e4782e80faae995e SHA512 8a138d9b855d52bf4d0b0838af707fadf444209a8efe4b8260efa019264b099c8988073ffa3098f37d3244602f7a5c18291e0a38bd1c0a806517bf0a02652721 +DIST uv-0.4.2-crates.tar.xz 46277420 BLAKE2B 9f516f586a5e46bbd6c09e116f91e90b563b4de89b2d2dac50f208e4116583ba05418baa998a74f6d31503ec56cb5ff5966cdf579d026c53bcfc500b5e4fb15c SHA512 b30b70225eae9a5970dd18d383d9129b5161cb66942af8796220fe7a58cd3357308111374193d8fc4e1c7fde8a0b62f44e8efd76603411d882df016afecbc69f +DIST uv-0.4.2.gh.tar.gz 2511432 BLAKE2B 7254691a570d04d52e057009ab31f2990389ba6bdc6ff330042f37d376458d56ff9e836134beea6958683f3b93f7b8cd1b21067f0785284d71b7c85c72bf7935 SHA512 a1fb4686698238a9dea1751cf1c788908f418ec0d3673ab2cefe4e337fccb88cde4b1557c7932692150d0e7409f548ced58322751da92a440a0daa7bf28938dd EBUILD uv-0.4.0.ebuild 2903 BLAKE2B 37dd022b8d20d178024f5237b93133804125b4b2038cdd4ac91a2466793afef6141763395d34eb56ff1eb0af0619680a53bd8c98b99248b31124c6f6c3813237 SHA512 27232cc67630d78805bc005b5252a852e063a1d2907d401f01cde92551c1de5b309c6c4b17545c5fdff561c45791c9358925eb208e026f69c99db7ad3d116f56 EBUILD uv-0.4.1.ebuild 2903 BLAKE2B 37dd022b8d20d178024f5237b93133804125b4b2038cdd4ac91a2466793afef6141763395d34eb56ff1eb0af0619680a53bd8c98b99248b31124c6f6c3813237 SHA512 27232cc67630d78805bc005b5252a852e063a1d2907d401f01cde92551c1de5b309c6c4b17545c5fdff561c45791c9358925eb208e026f69c99db7ad3d116f56 +EBUILD uv-0.4.2.ebuild 2903 BLAKE2B 5ae8168fc28b260c15c095036baac453df47717a7852b2f1f3c784bd83821fdb6ca3e4b4e43a4d107f0fbf8f0d897fdc3acd38d8d5701ebdf36a220512f721d7 SHA512 7db67cc2e51569aa77ed8e7ae122cfc65496743dc04080060283df351eddad0bee832416d270425d6c04aa3882a8c5c0d529b0ff979ceb44a56a929f8a762da5 MISC metadata.xml 336 BLAKE2B 4b5933e24e3e9450dde5da099185dcdf3afb5916b55cffa7c2f3f6fac77e439197cbe4ba529a87f83442d8f87d238e8abef06dc052ce9a62659060ffea9fdb47 SHA512 9910fd10ebbc395b9c330774b74798c9ffdba3bb368347658380a22e01d6dc9d1961ea50fbfb4a904c9db84b94c713c054e418a7294425b86ff41a607fd3e310 diff --git a/dev-python/uv/uv-0.4.2.ebuild b/dev-python/uv/uv-0.4.2.ebuild new file mode 100644 index 000000000000..f5da7b7e4913 --- /dev/null +++ b/dev-python/uv/uv-0.4.2.ebuild @@ -0,0 +1,113 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CRATES=" +" + +declare -A GIT_CRATES=( + [async_zip]='https://github.com/charliermarsh/rs-async-zip;011b24604fa7bc223daaad7712c0694bac8f0a87;rs-async-zip-%commit%' + [pubgrub]='https://github.com/astral-sh/pubgrub;388685a8711092971930986644cfed152d1a1f6c;pubgrub-%commit%' + [reqwest-middleware]='https://github.com/astral-sh/reqwest-middleware;5e3eaf254b5bd481c75d2710eed055f95b756913;reqwest-middleware-%commit%/reqwest-middleware' + [reqwest-retry]='https://github.com/astral-sh/reqwest-middleware;5e3eaf254b5bd481c75d2710eed055f95b756913;reqwest-middleware-%commit%/reqwest-retry' + [tl]='https://github.com/charliermarsh/tl;6e25b2ee2513d75385101a8ff9f591ef51f314ec;tl-%commit%' +) + +inherit cargo check-reqs + +CRATE_PV=0.4.2 +DESCRIPTION="A Python package installer and resolver, written in Rust" +HOMEPAGE=" + https://github.com/astral-sh/uv/ + https://pypi.org/project/uv/ +" +# pypi sdist misses scripts/, needed for tests +SRC_URI=" + https://github.com/astral-sh/uv/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz + ${CARGO_CRATE_URIS} +" +if [[ ${PKGBUMPING} != ${PVR} ]]; then + SRC_URI+=" + https://dev.gentoo.org/~mgorny/dist/uv-${CRATE_PV}-crates.tar.xz + " +fi + +# most of the code +LICENSE="|| ( Apache-2.0 MIT )" +# crates/pep508-rs is || ( Apache-2.0 BSD-2 ) which is covered below +# Dependent crate licenses +LICENSE+=" + 0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD-2 BSD ISC MIT + MPL-2.0 Unicode-DFS-2016 +" +# ring crate +LICENSE+=" openssl" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86" +IUSE="test" +RESTRICT="test" +PROPERTIES="test_network" + +BDEPEND=" + >=virtual/rust-1.80 + test? ( + dev-lang/python:3.8 + dev-lang/python:3.9 + dev-lang/python:3.10 + dev-lang/python:3.11 + dev-lang/python:3.12 + ) +" + +QA_FLAGS_IGNORED="usr/bin/.*" + +check_space() { + local CHECKREQS_DISK_BUILD=3G + use debug && CHECKREQS_DISK_BUILD=9G + check-reqs_pkg_setup +} + +pkg_pretend() { + check_space +} + +pkg_setup() { + check_space +} + +src_prepare() { + default + + # remove patch.* that breaks GIT_CRATES + local reqmw=${GIT_CRATES[reqwest-middleware]} + reqmw=${reqmw#*;} + reqmw=${reqmw%;*} + sed -i -e "/^\[patch/,\$s@^\(reqwest-middleware = \).*@\1 { path = \"${WORKDIR}/reqwest-middleware-${reqmw}/reqwest-middleware\" }@" Cargo.toml || die + + # https://github.com/vorot93/tokio-tar/pull/23 + # (fortunately uv already depends on portable-atomic, so we don't + # have to fight Cargo.lock) + cd "${ECARGO_VENDOR}/tokio-tar-0.3.1" || die + eapply "${FILESDIR}/tokio-tar-0.3.1-ppc.patch" +} + +src_compile() { + cd crates/uv || die + cargo_src_compile +} + +src_test() { + # work around https://github.com/astral-sh/uv/issues/4376 + local -x PATH=${BROOT}/usr/lib/python-exec/python3.12:${PATH} + local -x COLUMNS=100 + + cd crates/uv || die + cargo_src_test --no-fail-fast +} + +src_install() { + cd crates/uv || die + cargo_src_install +} |