diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-05-22 00:06:25 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-05-22 00:06:25 +0100 |
commit | 236e75597883501f8700d9ba1a5c8276f578a17f (patch) | |
tree | 6b441a1dfa3a82840e3aa74678cc90c5294a4bca /dev-python/uv | |
parent | bfd63d5b0e96ad32e0d0a8fe15512b6a9ac6fc9e (diff) |
gentoo auto-resync : 22:05:2024 - 00:06:25
Diffstat (limited to 'dev-python/uv')
-rw-r--r-- | dev-python/uv/Manifest | 3 | ||||
-rw-r--r-- | dev-python/uv/uv-0.1.45.ebuild | 118 |
2 files changed, 121 insertions, 0 deletions
diff --git a/dev-python/uv/Manifest b/dev-python/uv/Manifest index b24c8a41db75..ad5515722ffc 100644 --- a/dev-python/uv/Manifest +++ b/dev-python/uv/Manifest @@ -12,8 +12,11 @@ DIST uv-0.1.42.gh.tar.gz 1077448 BLAKE2B 84c4e5f6e35ac9a50ff3b1ba7b9cdd415a8e4dc DIST uv-0.1.43-crates.tar.xz 58012188 BLAKE2B dd8ebb52d8ec9b21149047e0e4dcbd531b743feeefc8c7e8a9289b52474043e1ece0af1ea3e010d5b0a1cdbf57ac89664bc853ff776e800550175948a26c5e08 SHA512 5d5b8d7665af0a0a1920541c8310c772cdb5657a6ba62b8566ab09f8a38cc8a86a75ce7fddb4ea37be0b2e4511b2aba25e984efe4ce7bb11ff50ca072eb00277 DIST uv-0.1.43.gh.tar.gz 1093053 BLAKE2B 7988799e9c978bce618ab66fd162a5995663f0da0d4f77fe0d8fb50bb1b535b8696d7fd4eb837e6b03703089aea883d0689d0e28bcda951655ee62bf92cfffd0 SHA512 3fd66d106fc09fdb616944a18dfeec33d0ecca5d985915b4efb09d77ceb0e3bff92577433c67d27ce3fb78cbc24ff8651639b5aceb6d39a72422481150a5adf3 DIST uv-0.1.44.gh.tar.gz 1093698 BLAKE2B 2b39053518188d95555507751facad1ea0fcd935f6382bf3fea974d4542f6fb0429ca25dd58546e8e1b69fd3bb573657dc62d2438777a7baa0c9317c21fa83cb SHA512 d9f0ecf7a0b30855c69b9a135d76c53e077dd427c39d1dec9fe499cfe9afb1f0c6a528f451d3bc0eab5b29a43df5795f876b1ce61fa28b8913b114834c915b3b +DIST uv-0.1.45-crates.tar.xz 58017580 BLAKE2B 557abd37f4b436077e59f506f62403b8dc33e9bb31e4fbef9c6ab2595f01c9c03d81a81cdb45c8139c14ea8b90f0d609d35554d4c5416d348b6c4c16a3cf4509 SHA512 aa3683ecbcf765431183e89136977712edd9575899f29e3ce41f1336bf5063fd7764a31ee0e9d9eb95fa5ddca4e7445437e2b8c10b43302d2c09e60ea2328829 +DIST uv-0.1.45.gh.tar.gz 1105106 BLAKE2B 75b0ce6f21e6f0da8d95be8b035cc817019ad1d1a5227c422412bf8f8b70d3e60298a9355f73dcdc658f43ed5d927bc7e4ed49cc0aaa5ee906ed281d12eb4956 SHA512 b88d0b691d86fd12c830acd06bf7a5b6319b41435ab59a7c8bd975d6876402dba721ef8460fc79a2b515d8737e1848912848bc8751cd28cb4acd148c73e107ad EBUILD uv-0.1.24.ebuild 2164 BLAKE2B 3caf382115984e87a0f44b5e8f619f38b3a7503ac12738519d0edff253eafbc7474924aa1997e332738ffe316da40dd199b906b1c560f1a00a53c805a39edc75 SHA512 c0c83640c43d073a1447228993e8384eee6a4adf73760d651456899ba285d25cc83f0611f6196123125f94fa9fa5d85710308ccf603e7261a699efc2f927dad7 EBUILD uv-0.1.42.ebuild 2384 BLAKE2B 9f8cf857b3d6ea9c59ca790315dff70a73284cc0f3f4563f375d92d71909ba0443663082bdf3e7d9eb6360d1d0cba28044c736cef38e0c2e14c2e68103b3eca7 SHA512 c312c2b454b241cfba9fe962b7dfd9dfa058e7489c2165431febc1a5841ca2ff19b17ba571adf3af340a53f6b1e5747818a4d79b6e2de621956a1d428ec82f43 EBUILD uv-0.1.43.ebuild 2467 BLAKE2B f6f3e55557e8600690d5ae4a2bdceed0a2bc5dcb5575beeaa9274826cba1c07baf01cd2b094bc78878e04fa8c6da871995fdcb5e352bd40fe6bba82471edb02b SHA512 ccbdbc42c166f8972891b77776b4dd21808e94c8b8eba4ddee9450500507192e272e9a99ddfa0bacb5ded6437e0f12dc3e3ed213d7285521dcbc834703d8f7bc EBUILD uv-0.1.44.ebuild 2483 BLAKE2B 1a576a65a005adf8a1465d837efcb66265d7db3bcf78dee340b74925c4e526b6d75b6ecc4c2c2b58382d24774f70e99b734ea8f1c82d4ffd906cefee9110d962 SHA512 e1a2f572d0ffda198fb01300cbfc833145b84f21ac8a1a964f844ad892768f82f365e5fc997d7c7161e9622730f954a23a776a1e32ee6255d932d9f7659bdf5c +EBUILD uv-0.1.45.ebuild 2372 BLAKE2B 0e6b3b6137bedf98323387c963e03790dd3ae1df6613c3c1a0756470a87dba4cfb09ed671c5fc14c2caf938c4bc6d0e13d56e3bd86927151a6bb3c6d1059dec2 SHA512 11782c6df1af2dc6de33d53e04b908111a807d401382be6539c564e8a1379194aad2978095568b351bf72647bc971cf868f2e640957db330d5f8d114baeb05f5 MISC metadata.xml 336 BLAKE2B 4b5933e24e3e9450dde5da099185dcdf3afb5916b55cffa7c2f3f6fac77e439197cbe4ba529a87f83442d8f87d238e8abef06dc052ce9a62659060ffea9fdb47 SHA512 9910fd10ebbc395b9c330774b74798c9ffdba3bb368347658380a22e01d6dc9d1961ea50fbfb4a904c9db84b94c713c054e418a7294425b86ff41a607fd3e310 diff --git a/dev-python/uv/uv-0.1.45.ebuild b/dev-python/uv/uv-0.1.45.ebuild new file mode 100644 index 000000000000..094e1689244d --- /dev/null +++ b/dev-python/uv/uv-0.1.45.ebuild @@ -0,0 +1,118 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +declare -A GIT_CRATES=( + [async_zip]='https://github.com/charliermarsh/rs-async-zip;1dcb40cfe1bf5325a6fd4bfcf9894db40241f585;rs-async-zip-%commit%' + [pubgrub]='https://github.com/astral-sh/pubgrub;0e684a874c9fb8f74738cd8875524c80e3d4820b;pubgrub-%commit%' +) + +inherit cargo check-reqs + +CRATE_P=${P} +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/${CRATE_P}-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" + +DEPEND=" + dev-libs/libgit2:= +" +RDEPEND=" + ${DEPEND} +" +BDEPEND=" + >=virtual/rust-1.77 + 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 + + # 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 "${WORKDIR}/cargo_home/gentoo/tokio-tar-0.3.1" || die + eapply "${FILESDIR}/tokio-tar-0.3.1-ppc.patch" +} + +src_configure() { + local myfeatures=( + # from upstream defaults + flate2/zlib-ng + python + pypi + git + maturin + # skip tests that require specific patch version of the interpreter: + # python-patch + ) + + cargo_src_configure --no-default-features +} + +src_compile() { + cd crates/uv || die + cargo_src_compile +} + +src_test() { + cd crates/uv || die + cargo_src_test --no-fail-fast +} + +src_install() { + cd crates/uv || die + cargo_src_install +} |