diff options
Diffstat (limited to 'dev-python/uv')
-rw-r--r-- | dev-python/uv/Manifest | 3 | ||||
-rw-r--r-- | dev-python/uv/uv-0.2.2.ebuild | 105 |
2 files changed, 108 insertions, 0 deletions
diff --git a/dev-python/uv/Manifest b/dev-python/uv/Manifest index ad5515722ffc..69597ed35d1a 100644 --- a/dev-python/uv/Manifest +++ b/dev-python/uv/Manifest @@ -14,9 +14,12 @@ DIST uv-0.1.43.gh.tar.gz 1093053 BLAKE2B 7988799e9c978bce618ab66fd162a5995663f0d 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 +DIST uv-0.2.2-crates.tar.xz 57993620 BLAKE2B 31a7b73c0954a057a8ddd04d328e1e2b2e00d74b9c5431bbdf0771780a964d49ec8e6dcec00dbf49606c80a01c53117cef76b94bb0a07f15b85056e27d5310e1 SHA512 cccdd9536bbc738c83074eb2e41f1ff329977fe12240c473d8ff4de226dedba97ce9e79998dda25b0f9014e2c8373d80ed87331c0d5314b866b264a011d7c555 +DIST uv-0.2.2.gh.tar.gz 1122110 BLAKE2B c65b3925d7798ba5cb43359ef073c673047fec8673f698f5cec3aed50661b08e13a3056345384cae654d2eeabced4c717bac228d77b01ba9522dcac1f18d899e SHA512 9520b8d8c4684b3eedcac686814b7b7d74190760b1d21dd7b3ad99b45954f61437b9ee9583b262ed05b53e9ab0e908e65a9d0e0fc7b3e4bf31c298784d185396 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 +EBUILD uv-0.2.2.ebuild 2131 BLAKE2B 2ca6de6809999c4097acbc88d00673d79cdb678fc01fd5e803b1e53dea44d5271dcb06916e9b44eded6a1c0c9022482c3ca7a0cb4a06e776fe29c0b6e51b0f19 SHA512 3a228da2809b343eec3bb496f985d45c813ba9904d074f2d1b8e4762ff192003a1ea1221f0089335493312f0aaec3386f6eef963dfe492f554c391132cd5710f MISC metadata.xml 336 BLAKE2B 4b5933e24e3e9450dde5da099185dcdf3afb5916b55cffa7c2f3f6fac77e439197cbe4ba529a87f83442d8f87d238e8abef06dc052ce9a62659060ffea9fdb47 SHA512 9910fd10ebbc395b9c330774b74798c9ffdba3bb368347658380a22e01d6dc9d1961ea50fbfb4a904c9db84b94c713c054e418a7294425b86ff41a607fd3e310 diff --git a/dev-python/uv/uv-0.2.2.ebuild b/dev-python/uv/uv-0.2.2.ebuild new file mode 100644 index 000000000000..05d3ab0c9977 --- /dev/null +++ b/dev-python/uv/uv-0.2.2.ebuild @@ -0,0 +1,105 @@ +# 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;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_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 +} |