diff options
Diffstat (limited to 'dev-python/uv')
-rw-r--r-- | dev-python/uv/Manifest | 6 | ||||
-rw-r--r-- | dev-python/uv/uv-0.3.2.ebuild | 111 | ||||
-rw-r--r-- | dev-python/uv/uv-0.3.3.ebuild | 112 |
3 files changed, 229 insertions, 0 deletions
diff --git a/dev-python/uv/Manifest b/dev-python/uv/Manifest index 55af35d93839..f2cd740d699b 100644 --- a/dev-python/uv/Manifest +++ b/dev-python/uv/Manifest @@ -1,6 +1,7 @@ AUX tokio-tar-0.3.1-ppc.patch 794 BLAKE2B 2c1188d96310710fabe8d248be01ab5e4d30aa02fe2b4f812a79a6c9440052178227534485122643bf4ed7f32ce3bfea289d78398c53229dd825eef44de6e164 SHA512 869d98ddd3eef7f8d9a7643ec5f93c73fed7bd4f1fb73b54a9e640293e831d24ca59bdd63377b07656ae706b5bf9833dd731b0537b43e8476d8cae0f3b8ab439 AUX uv-0.3.1-test.patch 2052 BLAKE2B d31854e8bc0b1295d8c4f7a6a40eaf9a0d7da370bf5bb27a96c24fc9e19b1babdcd853674d4548b30aac28d1f990485492f6f85c6efd4b87031a12e40d98a5d2 SHA512 dda0fd32612c60799cffe7de19c85d66d358e1aaab6a88cbfd085fa9bf7219e1bc80c9ebed687081ed3975a8bd8a38662d2195938f94b64fccaa8c62682ff1b2 DIST pubgrub-2fac39371a47e7cb821e510aaa4de25405413d29.gh.tar.gz 86987 BLAKE2B cbb08901aca46816279ca748a2d96e841b7a570cd674e4d96ef907a968050f5919a2d41fef240bb715050cf8df7dd6755e3d7f74fc79085bfc1ac2daf0665b09 SHA512 eda3539933dab8961120f1989365f8d5b5900aac5dc22606169e3f5d726bea54d3e8179377884d581941baf6bc57c2d41590477d9d3051923504d3b67824a17f +DIST pubgrub-388685a8711092971930986644cfed152d1a1f6c.gh.tar.gz 87945 BLAKE2B 7c10db2eff97656a379e8beff9f77bf09b4ab2fdd0d5c171e36babc6f3bff08d05774c55a51a23d79144c4110a942764cefa8a1baf7c36174809d2e648f2d12d SHA512 15539076de8fe9a459f70efcf07ccb7f61ced2be9832c4eb7123e7baa2bb85f3263fd4cb5d8b277c28a70ba316d5128d74d59d6f1de96b6e55ef04321a42c4dc DIST pubgrub-3f0ba760951ab0deeac874b98bb18fc90103fcf7.gh.tar.gz 87050 BLAKE2B d76bc40a71ead4c535eff493901247f2ee2f0a213d12db17bf96c89008be482829ff9b0d47196bb04ffc8c20842f15a2c7a4aa663d4c3f6c3eb82461250853ce SHA512 cd55d4512590eb86628d933598bd3f276a09018dce8dd720496f4314872afe1ad8d0b79d16f1b358e4a77a8613c1d06c742117d3a2a9c39e4f34d0ccd86eb536 DIST pubgrub-aaef464c1b0d8eea4ff9ffaee4f3458c236d10da.gh.tar.gz 87820 BLAKE2B a73f6a3b14fcfccd61ba753e16dfdd38c2424e9608b4e177440b50461b5a2886da7982a73abdc3c8b76ad6c796f96906d2db131425aac5c036ff63d0ccb2b644 SHA512 feec9955227f75e7a914af9b0197b2aae13e5d2e4bba9df1328ba7fe6e0edb9b508ffdbe9f6c7ff8e88d3c7a355964c10186776f4c4ec436689cebbcd92e8f07 DIST reqwest-middleware-21ceec9a5fd2e8d6f71c3ea2999078fecbd13cbe.gh.tar.gz 39176 BLAKE2B 00b2d0f51e4bbe29649fea50a8cc41c7b4d534f87440dd0bf487e8f7104077ad2cde824673b6624ff71924512b8a6b33ed4ac548f64bfbf78a5e0fb1366a446f SHA512 29f80816d054838af330a0ccfb8509ab22469aaecdb369d4a63c03eb3ed2aea3cc113458dd29c649e5bf7c33dbf5ef8b1e5d5a89e1cca72f9eab212f000c594f @@ -14,8 +15,13 @@ DIST uv-0.2.36-crates.tar.xz 49805804 BLAKE2B d9f71866b180e45ddad94432c5e1aad51d DIST uv-0.2.36.gh.tar.gz 2301352 BLAKE2B 93476b89a0896efa87ebf9f49e6c225750ec9cc900dde253edb6f6070cc9ac3f71c7c1f9fd81e09ebe7bb6287a5881e78a63a87c0eeb469bdf3d75f3b77f96a0 SHA512 84de22e464b8e467588ceebdda23089233d42e3080090b2fc0fd7aec2f4b76eee1788f8b23b6e7b9c4e99182ca3ea175b76fb5dedf87767fe3ec534b3264c9b6 DIST uv-0.3.1-crates.tar.xz 50235904 BLAKE2B 9deb7ee2d99786dbec4b91c020bab2d32fdb696c39ea35b42e8c2380d563c756e1a7044372b1e9cc82d82e18b8c3bebd19cb7c71bccb6bd3f01ae294f2c1878d SHA512 438e1d7cc94bd1214f6fe77852a9d4ec6a1a69561cc16c175ba22f9d1840021d41c8735079f522c29beaf17ac883ecbd9805d4f15e0845483bfede634e40413b DIST uv-0.3.1.gh.tar.gz 2400493 BLAKE2B e094acd1753e66beee369f6931b520a53515364774a1affb45c57f9eaeeb19cfc5fce8f40725173dd0d43fe664cfd55b904eb6de585c809aaab5ae6c54db7901 SHA512 145b3926e7fb0e4d14eecf6140e16a59afaf4a34a3881d8798bf87144849bd5b47b5100ed479eaf8c0e4675d1cbfb6bee509f20d1e24d25605f4dd4b2be8b24d +DIST uv-0.3.2.gh.tar.gz 2414989 BLAKE2B 0d1de7aa6a97e58abef1edf8becb1527e0fb2381fc335a61b2205ab5de5f5a5df8817679d73d6603f065df4a8942080bbb2fc1d9344e8429d118006463efe672 SHA512 2737d6b10d26a075e9a2365782ff07aea3cfbfc01420ba5b9edec5499bb39881eae78e56b01f71d84013c1f358fe5a91d175dfc70d5273ccdae5ca98bb45abb3 +DIST uv-0.3.3-crates.tar.xz 50333232 BLAKE2B 01e0bf8a8fe6f73aea3e77580bfae1d632ce02aa547a9b8db0f9c08bd244e579f360712b2971450eb63ec6687cae0fb7d1fd29304fd30f3b30f78f1dc0e08bbd SHA512 08f35fc25060b61cd1a33a3e4c8631de25614b883922e39eef0ef2782b15b25ef9679f6f5fbc4f765205a52279f2f124de77d418a476fe91b8f376841e0c1a96 +DIST uv-0.3.3.gh.tar.gz 2452105 BLAKE2B c4d1b0c1a4ef0439ec8d0187b2e77d44c020cd1284729c50c99b8e345b8338e6e551a286165674240d2d4b562476504425f0726b746b9821ba2683f9176f131d SHA512 cf79574a0ec3468daca7a7a6af39e5eb38f646837043bf783f69c60edc9af16fc90b65ef97dfe65b7ca4381d13caacf222a6a38d2c8f7ede90679fff8be9a009 EBUILD uv-0.2.29.ebuild 2754 BLAKE2B 5aff3fb3a5fe384d8947a55df07225802567ea20f064ca669e0f148a4b6e7136e95e3c35af2de9aabd3a4a1c14bfca5aff6a5629c6396f349e99ac9757ea10fb SHA512 678a26468a44b775f2a3940f713552eb3303b3707aaf02db1e4f523b434905b3d912031c76f05594524c641cc5108995d190b14b844d5f2ea20895eb006dac77 EBUILD uv-0.2.30.ebuild 2754 BLAKE2B 5aff3fb3a5fe384d8947a55df07225802567ea20f064ca669e0f148a4b6e7136e95e3c35af2de9aabd3a4a1c14bfca5aff6a5629c6396f349e99ac9757ea10fb SHA512 678a26468a44b775f2a3940f713552eb3303b3707aaf02db1e4f523b434905b3d912031c76f05594524c641cc5108995d190b14b844d5f2ea20895eb006dac77 EBUILD uv-0.2.36.ebuild 2806 BLAKE2B 2a29fb6744f816cc93be6cc76e21e1943ec653f48d42da606c534e4d35e3b3eb9a03e7d2adfc52cc44c99bb3284075d263297e83e00537c5b6851dedaa7ef804 SHA512 112739818e71c2b471477c0eeaf4f95cf568d471cf896a06bb0008a9cb0f1ad804024fbe8b5dcdc3ad5e6992e98039d5dc9f89b6fc4b7327d4ce4401be0eac0c EBUILD uv-0.3.1.ebuild 2904 BLAKE2B aa32f84399ab54f917b78d00b50bc093c37a54e91cfab10c969aeb3c710b51deb940645ec4d4253c039d970a93ad796c817ff989d651b1abd1c7b7ae9e210984 SHA512 dc1b7b9fdccde83aae15dd4307d85aa010e82d7769d687adb2576a4c93e967b37099734a6cb80071a6497733a8b2069f71d5a25abe45a6067286829b48dd8339 +EBUILD uv-0.3.2.ebuild 2805 BLAKE2B 78f244865c22e93404af07f528567e1de15ada47fa15e1f8a03dce7580eb58eea10aa2f79c5e0885d7464bc9d910e4bb19e26c481d0f8c5316741182e4f258b1 SHA512 ab25e2b1c5baa679d162e68411385e420d74c7e4316b2537256df2ad314af38e63a856647c3e2e3ddbcb80c6f2ed88d7ce93ae09587f4671b8024b8564cbb9d7 +EBUILD uv-0.3.3.ebuild 2806 BLAKE2B 45492fdfbc157a20c23c3f7cd9823f052e4967eec655abcea2708bbd8c363652a17d9ff1d9b823203daafbc604684f301b76202ccddad2326213f8ef1478fc0c SHA512 30a61f32dcb38e92de7284971af97036a02874fb9d7d22cd393827eeba73fbfc158ea13884fa3ab31b29b3b0f452a62da29a762d119358376c3808f199e488b4 MISC metadata.xml 336 BLAKE2B 4b5933e24e3e9450dde5da099185dcdf3afb5916b55cffa7c2f3f6fac77e439197cbe4ba529a87f83442d8f87d238e8abef06dc052ce9a62659060ffea9fdb47 SHA512 9910fd10ebbc395b9c330774b74798c9ffdba3bb368347658380a22e01d6dc9d1961ea50fbfb4a904c9db84b94c713c054e418a7294425b86ff41a607fd3e310 diff --git a/dev-python/uv/uv-0.3.2.ebuild b/dev-python/uv/uv-0.3.2.ebuild new file mode 100644 index 000000000000..9c8574186cf3 --- /dev/null +++ b/dev-python/uv/uv-0.3.2.ebuild @@ -0,0 +1,111 @@ +# 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;aaef464c1b0d8eea4ff9ffaee4f3458c236d10da;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' +) + +inherit cargo check-reqs + +CRATE_PV=0.3.1 +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 +} diff --git a/dev-python/uv/uv-0.3.3.ebuild b/dev-python/uv/uv-0.3.3.ebuild new file mode 100644 index 000000000000..9cf8642b0cf6 --- /dev/null +++ b/dev-python/uv/uv-0.3.3.ebuild @@ -0,0 +1,112 @@ +# 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' +) + +inherit cargo check-reqs + +CRATE_PV=0.3.3 +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 +} |