diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-11-22 03:03:01 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-11-22 03:03:01 +0000 |
commit | c7a7ec40cf928d8fc6a8241aa208272c008c7b4d (patch) | |
tree | 72e31c496e32182b70cfe385fbf03517b43bdddb /dev-python/uv | |
parent | 9db1279f804d62da2c61cfb39fc2e62b9faf56dd (diff) |
gentoo auto-resync : 22:11:2024 - 03:03:01
Diffstat (limited to 'dev-python/uv')
-rw-r--r-- | dev-python/uv/Manifest | 6 | ||||
-rw-r--r-- | dev-python/uv/uv-0.5.1.ebuild | 171 | ||||
-rw-r--r-- | dev-python/uv/uv-0.5.2.ebuild | 170 |
3 files changed, 0 insertions, 347 deletions
diff --git a/dev-python/uv/Manifest b/dev-python/uv/Manifest index 6626c1fd85c1..316ec6892c26 100644 --- a/dev-python/uv/Manifest +++ b/dev-python/uv/Manifest @@ -6,14 +6,8 @@ DIST rs-async-zip-c909fda63fcafe4af496a07bfda28a5aae97e58d.gh.tar.gz 51763 BLAKE DIST tl-6e25b2ee2513d75385101a8ff9f591ef51f314ec.gh.tar.gz 37106 BLAKE2B c30d1c33f6f52e2bc83823eb6319f8a3e462b7c7408fb6a08f995747857ef234f81db4135a04f9d183095fe473a4087f8f0cb89d8f87ef4400285d2ce034ec22 SHA512 4abbc4240ed129c92da8d616e27a6df0f24cdc85a0803acfdae588ca91f9e5b8d482e3ac88b2e657ff68917b1b43cef1e7ef3c887f624659b231fa5a13fcae68 DIST uv-0.4.30-crates.tar.xz 45786704 BLAKE2B 72a5828c5c504859248312e0d796a6505e4d0546218c8f7f99e37843afdf9496ea1ba4b1f094979299de417accca7f021e4f8971e467429e7d986ed9a3fb2008 SHA512 49abd05fa9e14b1bdb1b4d26f1e68a2038d57bd25c756440bca209b513de42fd8d33ce6e1333392dce65ab427285651809b44e024758359688af5fb87efc19ed DIST uv-0.4.30.gh.tar.gz 2832043 BLAKE2B 11c0d090161b9aa6d6e84d0edb15701c8eaba8281579653d6b0ba84003933f82ec5b71c3c33689e5324e51de70b7af41e4799f35fb45f57ce6d58fafa371a615 SHA512 4930c863aae71ae6e6f5b7ba20ff30ffe4c044f6980f973110d0c8c3079cb4aacbe774fe4577eb8d9c16f5d41d2cd0974c0fe63cf0d10e065c6b8d4cf553b80b -DIST uv-0.5.0-crates.tar.xz 45831504 BLAKE2B 0a95463b47729d40cdaf852ba556626ed3a1d2122f5d5a8bc6c401b95c836fa0ac0726f2aeaceb10346d65c0aa3c5250598c3219244fc3b957d26ee16968d443 SHA512 b991d9aeeec6b4e5d3f3f11a51c66f929560cc75bfc9379f090ba75b243056d4cf174326f8cb31b7aefd7e60e445e05b6799d9d7a8021b0893de436dafb384ab -DIST uv-0.5.1.gh.tar.gz 2839701 BLAKE2B 5b4ec310a9979583b1f75355ed7a69f9b40ee397464c031b2ec36a1852e9d60b66223719cda6d6f3edff1901e60426bd0e662da7c346082a9d8889ef8b411bec SHA512 eb60061df14a6fee3295097af92bb63b71bc61f56d422db2fe6d61b7d65eba002aed57115e1ffa9e6382fc4b29a38c2e4821e9a75e1114594751dea6e8a02d0e -DIST uv-0.5.2-crates.tar.xz 46304440 BLAKE2B dabe98041d7b041b2dc76f95c6aa35f115b8f9754b1c5559f18b1826108299924d4a71bc2e830ff18145ca61dacc50007d4a9dd1edeb9c9e1be9976f763cc1d0 SHA512 eb0ed382236e13ffe3d4490eed1e9a9cb27df649b4a9dbf7383c9f90de0bd351b70b7f73be333372a5845d0229456c869ebd34a53065536818c0efb4689bec49 -DIST uv-0.5.2.gh.tar.gz 2886231 BLAKE2B a9b1228915a9108fdc97f37f6b61a68cef068df4d536b6d4a2673b726c755e730c677b28b3635da7838e6efbcc3f02f841396992d135e2263793d68e80ce6cfe SHA512 226afbf9f50d5d90758216895549ba64600e256e6290a605ed4c017ed7728412773d4248432fe49a741febfb70d74234260ba4adad69d74a6b828ad6a699a58e DIST uv-0.5.3-crates.tar.xz 46488584 BLAKE2B 896f56ca633f3bdfb167df1a93c12358613ff2c42aaddfd3ac42eaff6812e4b78a5bedbdd4f6ce14b871cf778836e1bb8fed81134309411551dd6f36d67d6313 SHA512 ecb51b4e8fbe5f73c3bcba9706a6976a9b7eeee31e161463ff8923bd97ba6f0374e471b89e71cc090806561c2ed2fe9b2ad987934d89d0d8d96b88534305aa3b DIST uv-0.5.3.gh.tar.gz 2908026 BLAKE2B 0b9393a5d0cf8833e3e4bd9cd3374f689c5295053f02b4e750512f57a02844126d91e2538e044d4fac719a573ad13f592fe99ec1bcdd233b409e1dd9e32a3e9e SHA512 00afce159326a0551ef09d6e0fa82270b9baf40ba47ed3ef5e56b73e272f56d4d9a410fdc3e832989218c0997f7778a2d339b87171e69fed55baacdf2d48b556 EBUILD uv-0.4.30-r1.ebuild 3614 BLAKE2B 9654a85e33048055476f675bf61b1e82a55b22bd08b14753e72372912aa20b74011f2c99c939607b5343f6f800cc8490a7afb323ef7f653d14d1dfce339f6e48 SHA512 0ddc3394f0f4ef685efa08e4b5f40d2615f74d8672cdd1c098c5edd2f0c0de7e65705979955584bdf359ab7eca75967b5753cea63aad117b3f876eb05dcf736d -EBUILD uv-0.5.1.ebuild 4551 BLAKE2B 4b85cbea6143374a8f2485d1d780277dbd38eb0e6fdca65f3ac888c9bb9932211d87050c2a9b14c9b36d142034bb9b8f6f956824f79fb5245d1138f741dd10a9 SHA512 de1b021f127b4898447ef616ef7ddece1965be985659da5ffbcfb59ab681ba71c6c252261317d5331b099be1b1f31f0db144258d11564ee2ee4de43cd6afdc51 -EBUILD uv-0.5.2.ebuild 4338 BLAKE2B 9a1feddd40d2004de60aa93460c359c2648b56af5e20ca49a2829876e26e09f7d647f8c73a35c917fcb569c0427fe654f734a8e1feb9ec8c799cecd50d8b5dc6 SHA512 6d2debde87f099715c36de4efe9982531b140e8943b60d56d53c2effed951a63d28f52e142ca212cc39a17f55bfb2f24a4221f81387d6c11215d92d15251c1d8 EBUILD uv-0.5.3.ebuild 4334 BLAKE2B d7d64dde25c7b9790d266e7f47bf388c7418fee30f6237c046af21034f8d53d3e85067099e6e039c94300515165de03803ca5f0982f84c4a49c2f053ffbd4dbf SHA512 6c6f36b63d7a6a76ceacbc65513aeff40f581b15b300ca6e81d8a09f7551c063e39e068c0f6389367f1abce96fb0ed2f8f0898737f9c99145d7f0c1635e867a8 MISC metadata.xml 336 BLAKE2B 4b5933e24e3e9450dde5da099185dcdf3afb5916b55cffa7c2f3f6fac77e439197cbe4ba529a87f83442d8f87d238e8abef06dc052ce9a62659060ffea9fdb47 SHA512 9910fd10ebbc395b9c330774b74798c9ffdba3bb368347658380a22e01d6dc9d1961ea50fbfb4a904c9db84b94c713c054e418a7294425b86ff41a607fd3e310 diff --git a/dev-python/uv/uv-0.5.1.ebuild b/dev-python/uv/uv-0.5.1.ebuild deleted file mode 100644 index cf59953b7c5b..000000000000 --- a/dev-python/uv/uv-0.5.1.ebuild +++ /dev/null @@ -1,171 +0,0 @@ -# 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;95e1390399cdddee986b658be19587eb1fdb2d79;pubgrub-%commit%' - [reqwest-middleware]='https://github.com/TrueLayer/reqwest-middleware;d95ec5a99fcc9a4339e1850d40378bbfe55ab121;reqwest-middleware-%commit%/reqwest-middleware' - [reqwest-retry]='https://github.com/TrueLayer/reqwest-middleware;d95ec5a99fcc9a4339e1850d40378bbfe55ab121;reqwest-middleware-%commit%/reqwest-retry' - [tl]='https://github.com/charliermarsh/tl;6e25b2ee2513d75385101a8ff9f591ef51f314ec;tl-%commit%' - [version-ranges]='https://github.com/astral-sh/pubgrub;95e1390399cdddee986b658be19587eb1fdb2d79;pubgrub-%commit%/version-ranges' -) - -RUST_MIN_VER="1.80.1" - -inherit cargo check-reqs - -CRATE_PV=0.5.0 -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" - -DEPEND=" - app-arch/bzip2:= - app-arch/xz-utils:= - app-arch/zstd:= -" -RDEPEND=" - ${DEPEND} -" -BDEPEND=" - 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 - !!~dev-python/uv-0.5.0 - ) -" - -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 - rust_pkg_setup -} - -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 - - # enable system libraries where supported - export ZSTD_SYS_USE_PKG_CONFIG=1 - # TODO: unbundle libz-ng-sys, tikv-jemalloc-sys? - - # remove unbundled sources, just in case - find "${ECARGO_VENDOR}"/{bzip2,lzma,zstd}-sys-*/ -name '*.c' -delete || die - - # bzip2-sys requires a pkg-config file - # https://github.com/alexcrichton/bzip2-rs/issues/104 - mkdir "${T}/pkg-config" || die - export PKG_CONFIG_PATH=${T}/pkg-config${PKG_CONFIG_PATH+:${PKG_CONFIG_PATH}} - cat >> "${T}/pkg-config/bzip2.pc" <<-EOF || die - Name: bzip2 - Version: 9999 - Description: - Libs: -lbz2 - EOF -} - -src_configure() { - local myfeatures=( - git - pypi - python - ) - - cargo_src_configure --no-default-features -} - -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 - local -x PYTHONDONTWRITEBYTECODE= - # fix tests failing because of our config - local -x XDG_CONFIG_DIRS=${T} - - cd crates/uv || die - cargo_src_test --no-fail-fast -} - -src_install() { - cd crates/uv || die - cargo_src_install - - insinto /etc/xdg/uv - newins - uv.toml <<-EOF || die - # By default ("automatic"), uv downloads missing Python versions - # automatically and keeps them in the user's home directory. - # Once installed, they are preferred over system Python install. - # Disable that because 1) autodownloading software is bad, - # 2) we do not want automatically downloaded Pythons to override - # system Pythons installed later. - # - # The user can still manually have uv download and install - # Python via "uv python install". We are not switching - # "python-preference" to allow the user to override the system - # Python with these explicit installs. - # - # Relevant docs: - # https://docs.astral.sh/uv/reference/settings/#python-downloads - # https://docs.astral.sh/uv/reference/settings/#python-preference - - python-downloads = "manual" - EOF -} diff --git a/dev-python/uv/uv-0.5.2.ebuild b/dev-python/uv/uv-0.5.2.ebuild deleted file mode 100644 index 87f34119feb6..000000000000 --- a/dev-python/uv/uv-0.5.2.ebuild +++ /dev/null @@ -1,170 +0,0 @@ -# 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;c909fda63fcafe4af496a07bfda28a5aae97e58d;rs-async-zip-%commit%' - [pubgrub]='https://github.com/astral-sh/pubgrub;95e1390399cdddee986b658be19587eb1fdb2d79;pubgrub-%commit%' - [tl]='https://github.com/charliermarsh/tl;6e25b2ee2513d75385101a8ff9f591ef51f314ec;tl-%commit%' - [version-ranges]='https://github.com/astral-sh/pubgrub;95e1390399cdddee986b658be19587eb1fdb2d79;pubgrub-%commit%/version-ranges' -) - -RUST_MIN_VER="1.80.1" - -inherit cargo check-reqs - -CRATE_PV=0.5.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-3.0 Unicode-DFS-2016 ZLIB -" -# ring crate -LICENSE+=" openssl" -SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86" -IUSE="test" -RESTRICT="test" -PROPERTIES="test_network" - -DEPEND=" - app-arch/bzip2:= - app-arch/xz-utils:= - app-arch/zstd:= -" -RDEPEND=" - ${DEPEND} -" -BDEPEND=" - 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 - !!~dev-python/uv-0.5.0 - ) -" - -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 - rust_pkg_setup -} - -src_prepare() { - default - - # enable system libraries where supported - export ZSTD_SYS_USE_PKG_CONFIG=1 - # TODO: unbundle libz-ng-sys, tikv-jemalloc-sys? - - # remove unbundled sources, just in case - find "${ECARGO_VENDOR}"/{bzip2,lzma,zstd}-sys-*/ -name '*.c' -delete || die - - # bzip2-sys requires a pkg-config file - # https://github.com/alexcrichton/bzip2-rs/issues/104 - mkdir "${T}/pkg-config" || die - export PKG_CONFIG_PATH=${T}/pkg-config${PKG_CONFIG_PATH+:${PKG_CONFIG_PATH}} - cat >> "${T}/pkg-config/bzip2.pc" <<-EOF || die - Name: bzip2 - Version: 9999 - Description: - Libs: -lbz2 - EOF -} - -src_configure() { - local myfeatures=( - git - pypi - python - ) - - cargo_src_configure --no-default-features -} - -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 - local -x PYTHONDONTWRITEBYTECODE= - # fix tests failing because of our config - local -x XDG_CONFIG_DIRS=${T} - - cd crates/uv || die - cargo_src_test --no-fail-fast -} - -src_install() { - cd crates/uv || die - cargo_src_install - - insinto /etc/xdg/uv - newins - uv.toml <<-EOF || die - # These defaults match Fedora, see: - # https://src.fedoraproject.org/rpms/uv/pull-request/18 - - # By default ("automatic"), uv downloads missing Python versions - # automatically and keeps them in the user's home directory. - # Disable that to make downloading opt-in, and especially - # to avoid unnecessarily fetching custom Python when the distro - # package would be preferable. Python builds can still be - # downloaded manually via "uv python install". - # - # https://docs.astral.sh/uv/reference/settings/#python-downloads - python-downloads = "manual" - - # By default ("managed"), uv always prefers self-installed - # Python versions over the system Python, independently - # of versions. Since we generally expect users to use that - # to install old Python versions not in ::gentoo anymore, - # this effectively means that uv would end up preferring very - # old Python versions over the newer ones that are provided - # by the system. Default to using the system versions to avoid - # this counter-intuitive behavior. - # - # https://docs.astral.sh/uv/reference/settings/#python-preference - python-preference = "system" - EOF -} |