Skip to content

Commit 13f1a40

Browse files
committed
dev-python/uv: re-add 0.4.15 from Gentoo archive
Closes: https://git.edevau.net/onkelbeh/HomeAssistantRepository/issues/3972 Signed-off-by: Andreas Billmeier <[email protected]>
1 parent 3ac2890 commit 13f1a40

File tree

3 files changed

+140
-5
lines changed

3 files changed

+140
-5
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -606,12 +606,12 @@ A daily compile test is run at Github with Python 3.9 to catch general faults. E
606606

607607
## Licenses
608608
This repository itself is released under GPL-3 (like most Gentoo repositories), all work on the depending components under the licenses they came from. Perhaps you came here because I filed an issue at your component about a bad or missing license. It is easy to [assign a license](https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/adding-a-license-to-a-repository). During cleanups and license investigations I have been asked often which license to choose. I am not a lawyer, but I can offer the following table, counted over this repository, perhaps this helps your decision. If a package has more than one license listed, all of them are counted.
609-
There are 2255 Ebuilds in total, 2241 of them have in total 2279 (43 different) licenses assigned.
609+
There are 2256 Ebuilds in total, 2242 of them have in total 2281 (43 different) licenses assigned.
610610

611611
|License| Ebuilds using it|
612612
|-------|-----|
613-
|MIT|1279|
614-
|Apache-2.0|522|
613+
|MIT|1280|
614+
|Apache-2.0|523|
615615
|GPL-3|143|
616616
|BSD|123|
617617
|GPL-2|25|

dev-python/uv/Manifest

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ DIST uv-0.1.35-crates.tar.xz 65640928 BLAKE2B 97135ce844dc7af3c424a9b8ea7419b4c3
1111
DIST uv-0.1.35.gh.tar.gz 1010370 BLAKE2B 0b07f4de6d07969d8721f94b3d21e2797b8425f26db5744f7ee2a90ed3769f3d8245552d8b8db6d8716e45dc88461a9543419191a4b71497019862860d76e728 SHA512 08f224b317d5aa3d9941ee0add791340f41a01e70d2a4e1e9b986e501d666a40e1a04bdeb2120e178bbedb2a91501e608d240a9ac56f509021d6377c278fbfcc
1212
DIST uv-0.1.43-crates.tar.xz 58012188 BLAKE2B dd8ebb52d8ec9b21149047e0e4dcbd531b743feeefc8c7e8a9289b52474043e1ece0af1ea3e010d5b0a1cdbf57ac89664bc853ff776e800550175948a26c5e08 SHA512 5d5b8d7665af0a0a1920541c8310c772cdb5657a6ba62b8566ab09f8a38cc8a86a75ce7fddb4ea37be0b2e4511b2aba25e984efe4ce7bb11ff50ca072eb00277
1313
DIST uv-0.1.43.gh.tar.gz 1093053 BLAKE2B 7988799e9c978bce618ab66fd162a5995663f0da0d4f77fe0d8fb50bb1b535b8696d7fd4eb837e6b03703089aea883d0689d0e28bcda951655ee62bf92cfffd0 SHA512 3fd66d106fc09fdb616944a18dfeec33d0ecca5d985915b4efb09d77ceb0e3bff92577433c67d27ce3fb78cbc24ff8651639b5aceb6d39a72422481150a5adf3
14+
DIST uv-0.4.14-crates.tar.xz 46101112 BLAKE2B 08db62cb25a53b604f717b971063b1c01b6772442316777d82ca331ae19c685ad2b7b4f2d69a6f5112783f89108cc78a66e116a106e3d4c17dbee7508d3bf27e SHA512 8b8bd02c2e7b8b9bc38161aad144a1a2581491448e9e6b68f99fdaee737c52f80bac70e80cbd57094de621cc08d39c63d5d791635a9b327d260afd61d9de8b6b
1415
DIST uv-0.4.15.gh.tar.gz 2650314 BLAKE2B bc492fab2af297c68666fda239da204ecce9b9169767c2a0a4feb85d0078f57df25c61c4068783042e9977c7698fc2fd6776e106443672beacab932fce3db5f0 SHA512 7b2293e8be56a61fd4288256b462f01a522da5cdcbab8c4ad140f7c0fe9b196f4ce2ecfb23984c0a1d0f7205e85e49dc9eae0b4fbce4778f8f5eb21d4eb77ee3
15-
DIST uv-0.4.16-crates.tar.xz 46123176 BLAKE2B eeaa189f91742296e48f123f7695b5836e538681b99da1c7e9f7acd9b2cf6b29e570b41fc7436a664ae180e0aff51be03300e03a184a72d986b2a7840f99c3ab SHA512 41eaa866818fa3b58a7451f748f60da6f940865c377405fd999db9eab4bea696aab053be99faf8f8bad2d3a15b84d137607f87cd97c5d7a1884dcbee461f562b
1616
EBUILD uv-0.1.35.ebuild 2081 BLAKE2B 4963b8a889e4ea56cf2da3b5b43630e8daec220f7fd168b27b7f6aaba058a13abbc6a43b2ead54a7da50ec8f8fa0b20eca1d17c68ba92c525dafddbf76e08661 SHA512 56e08f64189e7535fcc4345a463d11613e8625a61a3fe97fce1c4680addd99b48610172ab59d68d066f18a209937d55327ba9e7d022293ff50d064185547e806
1717
EBUILD uv-0.1.43.ebuild 2442 BLAKE2B 078944dc43e57a9443cb4d90274e78fe2d6e74564635feed8964f34c94eee4f4db446d2210fdf964eef289dcf01e77eacb774459ccab03670eedf46f3be2e0c2 SHA512 8e75e4921fc202d0f8908581a1e039d68b5bdc67b8da8995e68f87897e47531bf3b19e4e94c177d5edcb8f768f757b81bc9bf77075c680948c116b4f5aae64f2
18-
EBUILD uv-0.4.15.ebuild 3419 BLAKE2B 310fa7d3e925a4088c23b380a15fc4982379597452eb1dd6df55a38a57a3f27a41ce9a51512c40b9571acb277833ac7b5ea458fdeb0e6183f32eb9a9fc05dffc SHA512 80d271d7488b5d5e2840cbbf81eb4982e505d55c9f3cac75363559ab09c4fc40a3afc9dda2ead07b39be74af59122bc8746fadf6cddfa338b695e09073598508
18+
EBUILD uv-0.4.15.ebuild 3394 BLAKE2B 3eaecf3a9f7474c2dee56b6f760bd723fec71fa961800ec5fc54d658e6fde50065abe19753d602c228d822661a64b46e6a0006630cde77fb85f217e80b3ad97b SHA512 05f5346af0c39dac67faa954448faaf9e3f0137117a6ce9d526e6aa19caf8b50c4e0b1250497776133f92e1d3912190057ae02cc202d51d201279bef98800bee
1919
MISC metadata.xml 504 BLAKE2B f43087a5a4260082dec646a48af4f73eaa230c40d0cfcb263f3eaf4099c0427b98e280a5cc41ab9a19cbd99f4b4dec026108b5c64219a84615e0b9bed2d1c0fa SHA512 e6d457668a50867fd7103d6c8e1b5c15ca4f5229fabb65412054ac5e76f17ebd772be30219f83fc70b561a3432f6d003efa216f4df1be4a343339e494bcb990a

dev-python/uv/uv-0.4.15.ebuild

Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
# Copyright 1999-2024 Gentoo Authors
2+
# Distributed under the terms of the GNU General Public License v2
3+
4+
EAPI=8
5+
6+
CRATES="
7+
"
8+
9+
declare -A GIT_CRATES=(
10+
[async_zip]='https://github.com/charliermarsh/rs-async-zip;011b24604fa7bc223daaad7712c0694bac8f0a87;rs-async-zip-%commit%'
11+
[pubgrub]='https://github.com/astral-sh/pubgrub;388685a8711092971930986644cfed152d1a1f6c;pubgrub-%commit%'
12+
[reqwest-middleware]='https://github.com/astral-sh/reqwest-middleware;5e3eaf254b5bd481c75d2710eed055f95b756913;reqwest-middleware-%commit%/reqwest-middleware'
13+
[reqwest-retry]='https://github.com/astral-sh/reqwest-middleware;5e3eaf254b5bd481c75d2710eed055f95b756913;reqwest-middleware-%commit%/reqwest-retry'
14+
[tl]='https://github.com/charliermarsh/tl;6e25b2ee2513d75385101a8ff9f591ef51f314ec;tl-%commit%'
15+
)
16+
17+
inherit cargo check-reqs
18+
19+
CRATE_PV=0.4.14
20+
DESCRIPTION="A Python package installer and resolver, written in Rust"
21+
HOMEPAGE="
22+
https://github.com/astral-sh/uv/
23+
https://pypi.org/project/uv/
24+
"
25+
# pypi sdist misses scripts/, needed for tests
26+
SRC_URI="
27+
https://github.com/astral-sh/uv/archive/${PV}.tar.gz
28+
-> ${P}.gh.tar.gz
29+
${CARGO_CRATE_URIS}
30+
"
31+
if [[ ${PKGBUMPING} != ${PVR} ]]; then
32+
SRC_URI+="
33+
https://dev.gentoo.org/~mgorny/dist/uv-${CRATE_PV}-crates.tar.xz
34+
"
35+
fi
36+
37+
# most of the code
38+
LICENSE="|| ( Apache-2.0 MIT )"
39+
# crates/pep508-rs is || ( Apache-2.0 BSD-2 ) which is covered below
40+
# Dependent crate licenses
41+
LICENSE+="
42+
0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD-2 BSD ISC MIT
43+
MPL-2.0 Unicode-DFS-2016
44+
"
45+
# ring crate
46+
LICENSE+=" openssl"
47+
SLOT="0"
48+
KEYWORDS="amd64 arm arm64 x86"
49+
IUSE="test"
50+
RESTRICT="test"
51+
PROPERTIES="test_network"
52+
53+
DEPEND="
54+
app-arch/bzip2:=
55+
app-arch/xz-utils:=
56+
app-arch/zstd:=
57+
"
58+
RDEPEND="
59+
${DEPEND}
60+
"
61+
BDEPEND="
62+
>=virtual/rust-1.80
63+
test? (
64+
dev-lang/python:3.8
65+
dev-lang/python:3.9
66+
dev-lang/python:3.10
67+
dev-lang/python:3.11
68+
dev-lang/python:3.12
69+
)
70+
"
71+
72+
QA_FLAGS_IGNORED="usr/bin/.*"
73+
74+
check_space() {
75+
local CHECKREQS_DISK_BUILD=3G
76+
use debug && CHECKREQS_DISK_BUILD=9G
77+
check-reqs_pkg_setup
78+
}
79+
80+
pkg_pretend() {
81+
check_space
82+
}
83+
84+
pkg_setup() {
85+
check_space
86+
}
87+
88+
src_prepare() {
89+
default
90+
91+
# remove patch.* that breaks GIT_CRATES
92+
local reqmw=${GIT_CRATES[reqwest-middleware]}
93+
reqmw=${reqmw#*;}
94+
reqmw=${reqmw%;*}
95+
sed -i -e "/^\[patch/,\$s@^\(reqwest-middleware = \).*@\1 { path = \"${WORKDIR}/reqwest-middleware-${reqmw}/reqwest-middleware\" }@" Cargo.toml || die
96+
97+
# enable system libraries where supported
98+
export ZSTD_SYS_USE_PKG_CONFIG=1
99+
sed -i -e 's:"static"::' crates/uv-extract/Cargo.toml || die
100+
# TODO: unbundle libz-ng-sys, tikv-jemalloc-sys?
101+
102+
# remove unbundled sources, just in case
103+
find "${ECARGO_VENDOR}"/{bzip2,lzma,zstd}-sys-*/ -name '*.c' -delete || die
104+
105+
# bzip2-sys requires a pkg-config file
106+
# https://github.com/alexcrichton/bzip2-rs/issues/104
107+
mkdir "${T}/pkg-config" || die
108+
export PKG_CONFIG_PATH=${T}/pkg-config${PKG_CONFIG_PATH+:${PKG_CONFIG_PATH}}
109+
cat >> "${T}/pkg-config/bzip2.pc" <<-EOF || die
110+
Name: bzip2
111+
Version: 9999
112+
Description:
113+
Libs: -lbz2
114+
EOF
115+
}
116+
117+
src_compile() {
118+
cd crates/uv || die
119+
cargo_src_compile
120+
}
121+
122+
src_test() {
123+
# work around https://github.com/astral-sh/uv/issues/4376
124+
local -x PATH=${BROOT}/usr/lib/python-exec/python3.12:${PATH}
125+
local -x COLUMNS=100
126+
local -x PYTHONDONTWRITEBYTECODE=
127+
128+
cd crates/uv || die
129+
cargo_src_test --no-fail-fast
130+
}
131+
132+
src_install() {
133+
cd crates/uv || die
134+
cargo_src_install
135+
}

0 commit comments

Comments
 (0)