Skip to content

Commit fe58381

Browse files
committed
dev-python/uv: add 0.1.43
Closes: https://git.edevau.net/onkelbeh/HomeAssistantRepository/issues/3527 Signed-off-by: Andreas Billmeier <b@edevau.net>
1 parent e2ad38d commit fe58381

5 files changed

Lines changed: 180 additions & 3 deletions

File tree

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 1949 Ebuilds in total, 1938 of them have in total 1961 (42 different) licenses assigned.
609+
There are 1950 Ebuilds in total, 1939 of them have in total 1963 (42 different) licenses assigned.
610610

611611
|License| Ebuilds using it|
612612
|-------|-----|
613-
|MIT|1121|
614-
|Apache-2.0|436|
613+
|MIT|1122|
614+
|Apache-2.0|437|
615615
|GPL-3|114|
616616
|BSD|111|
617617
|LGPL-3|25|

dev-python/uv/Manifest

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
1+
AUX tokio-tar-0.3.1-ppc.patch 794 BLAKE2B 2c1188d96310710fabe8d248be01ab5e4d30aa02fe2b4f812a79a6c9440052178227534485122643bf4ed7f32ce3bfea289d78398c53229dd825eef44de6e164 SHA512 869d98ddd3eef7f8d9a7643ec5f93c73fed7bd4f1fb73b54a9e640293e831d24ca59bdd63377b07656ae706b5bf9833dd731b0537b43e8476d8cae0f3b8ab439
2+
AUX uv-0.1.43-test.patch 582 BLAKE2B 247c4d5e31ac12d5da4063d0b696a993f5bf4175886209930313ff507ba9bfaf638581c2f290dfa5adc85a3bb360705977ebdcb0adb6a6196f4fbda1a0cb630e SHA512 88fddad804d9f4b042c207802ed6d7dbdaa6ee974635219b49e37d0e4a56644ca81d23afad08dde6f7bf90f2d202947d615d53eda6bb499c8b06b4661e858988
3+
DIST pubgrub-0e684a874c9fb8f74738cd8875524c80e3d4820b.gh.tar.gz 86899 BLAKE2B 51b8753a092deda12a35b501f34c16e800f2ed2c4c47b64622c752bcf8a52dd1fb9dc1ee69cd107b5b6ee48003c8ef804e20f7eed975a6e63615b94648e37890 SHA512 15e404590fb3b21b01fac318df9cbf81f598dc0506d6d5738ff566a5eb1075e6d7a096a8ad1567e27982662aac0ce2a889a0039ce5736ff140fa617ae8b3cb08
14
DIST pubgrub-c26e485213e39582c6f2e4d45c0328422670e7a7.gh.tar.gz 86123 BLAKE2B 743bb61460903d276f467b23bb001313598b50cb54fd1a56bcadbc732dd606bafd48a2d9960add3424bd03222450b455f9f1bc8716a80933e5ed0cfb76dcc50a SHA512 9f9c8b58dd2ddeb3ed89abcd790641bd9b7b2cf4fc66dcc4d964a1b69d879adcdaf2775545631ca20f06a8ab5d6bc1df6b2eb272207d2642584c269b358f4d76
25
DIST rs-async-zip-1dcb40cfe1bf5325a6fd4bfcf9894db40241f585.gh.tar.gz 96766 BLAKE2B f9efab73c65394e33e090a6292875ebf35e6669b15c356f102eb109784a4503606ae39106cd0ebe3d7d479cb0b30806d7baaaebf22d826836a24f7ed49100934 SHA512 3b845b05d97c5ab5cea286a7c11846838b40bb1fac98a51782600849a53231be8fa205094c6bdd00f6e193c807b10b28f947698696382be99cae0a8d681dabdc
36
DIST uv-0.1.35-crates.tar.xz 65640928 BLAKE2B 97135ce844dc7af3c424a9b8ea7419b4c392e44a87ab960e59401f0075308001287fc42acd9bc21b300fba3d73fa65e292b55e612b92db05cad183577866a7d8 SHA512 7d862992d2ea92acaa24758cb5425b3053941e1312db1f27ee318049ac68fcd64dc614ba7fa21521cdb9ad11545cc5e8dcc2a2781f0164297229f35768e0776e
47
DIST uv-0.1.35.gh.tar.gz 1010370 BLAKE2B 0b07f4de6d07969d8721f94b3d21e2797b8425f26db5744f7ee2a90ed3769f3d8245552d8b8db6d8716e45dc88461a9543419191a4b71497019862860d76e728 SHA512 08f224b317d5aa3d9941ee0add791340f41a01e70d2a4e1e9b986e501d666a40e1a04bdeb2120e178bbedb2a91501e608d240a9ac56f509021d6377c278fbfcc
8+
DIST uv-0.1.43-crates.tar.xz 58012188 BLAKE2B dd8ebb52d8ec9b21149047e0e4dcbd531b743feeefc8c7e8a9289b52474043e1ece0af1ea3e010d5b0a1cdbf57ac89664bc853ff776e800550175948a26c5e08 SHA512 5d5b8d7665af0a0a1920541c8310c772cdb5657a6ba62b8566ab09f8a38cc8a86a75ce7fddb4ea37be0b2e4511b2aba25e984efe4ce7bb11ff50ca072eb00277
9+
DIST uv-0.1.43.gh.tar.gz 1093053 BLAKE2B 7988799e9c978bce618ab66fd162a5995663f0da0d4f77fe0d8fb50bb1b535b8696d7fd4eb837e6b03703089aea883d0689d0e28bcda951655ee62bf92cfffd0 SHA512 3fd66d106fc09fdb616944a18dfeec33d0ecca5d985915b4efb09d77ceb0e3bff92577433c67d27ce3fb78cbc24ff8651639b5aceb6d39a72422481150a5adf3
510
EBUILD uv-0.1.35.ebuild 2081 BLAKE2B 4963b8a889e4ea56cf2da3b5b43630e8daec220f7fd168b27b7f6aaba058a13abbc6a43b2ead54a7da50ec8f8fa0b20eca1d17c68ba92c525dafddbf76e08661 SHA512 56e08f64189e7535fcc4345a463d11613e8625a61a3fe97fce1c4680addd99b48610172ab59d68d066f18a209937d55327ba9e7d022293ff50d064185547e806
11+
EBUILD uv-0.1.43.ebuild 2442 BLAKE2B 078944dc43e57a9443cb4d90274e78fe2d6e74564635feed8964f34c94eee4f4db446d2210fdf964eef289dcf01e77eacb774459ccab03670eedf46f3be2e0c2 SHA512 8e75e4921fc202d0f8908581a1e039d68b5bdc67b8da8995e68f87897e47531bf3b19e4e94c177d5edcb8f768f757b81bc9bf77075c680948c116b4f5aae64f2
612
MISC metadata.xml 504 BLAKE2B f43087a5a4260082dec646a48af4f73eaa230c40d0cfcb263f3eaf4099c0427b98e280a5cc41ab9a19cbd99f4b4dec026108b5c64219a84615e0b9bed2d1c0fa SHA512 e6d457668a50867fd7103d6c8e1b5c15ca4f5229fabb65412054ac5e76f17ebd772be30219f83fc70b561a3432f6d003efa216f4df1be4a343339e494bcb990a
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
diff --git a/src/archive.rs b/src/archive.rs
2+
index 63f4293..986a146 100644
3+
--- a/src/archive.rs
4+
+++ b/src/archive.rs
5+
@@ -3,12 +3,13 @@ use std::{
6+
collections::VecDeque,
7+
path::Path,
8+
pin::Pin,
9+
- sync::{
10+
- atomic::{AtomicU64, Ordering},
11+
- Arc,
12+
- },
13+
+ sync::Arc,
14+
task::{Context, Poll},
15+
};
16+
+use portable_atomic::{
17+
+ AtomicU64,
18+
+ Ordering,
19+
+};
20+
use tokio::{
21+
io::{self, AsyncRead as Read, AsyncReadExt},
22+
sync::Mutex,
23+
diff -dup a/Cargo.toml b/Cargo.toml
24+
--- a/Cargo.toml 2024-04-27 10:39:21.186708179 +0200
25+
+++ b/Cargo.toml 2024-04-27 10:39:37.940402613 +0200
26+
@@ -43,6 +43,9 @@ version = "0.2"
27+
[dependencies.futures-core]
28+
version = "0.3"
29+
30+
+[dependencies.portable-atomic]
31+
+version = "1"
32+
+
33+
[dependencies.tokio]
34+
version = "1"
35+
features = [
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/crates/uv/tests/pip_sync.rs b/crates/uv/tests/pip_sync.rs
2+
index 86193b40..4069fd8e 100644
3+
--- a/crates/uv/tests/pip_sync.rs
4+
+++ b/crates/uv/tests/pip_sync.rs
5+
@@ -1455,7 +1455,7 @@ fn install_registry_source_dist_cached() -> Result<()> {
6+
.collect()
7+
} else {
8+
// For some Linux distributions, like Gentoo, the number of files removed is different.
9+
- [("Removed 614 files", "Removed 616 files")]
10+
+ [("Removed 615 files", "Removed 617 files")]
11+
.into_iter()
12+
.chain(context.filters())
13+
.collect()

dev-python/uv/uv-0.1.43.ebuild

Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
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;1dcb40cfe1bf5325a6fd4bfcf9894db40241f585;rs-async-zip-%commit%'
11+
[pubgrub]='https://github.com/astral-sh/pubgrub;0e684a874c9fb8f74738cd8875524c80e3d4820b;pubgrub-%commit%'
12+
)
13+
14+
inherit cargo check-reqs
15+
16+
CRATE_P=${P}
17+
DESCRIPTION="A Python package installer and resolver, written in Rust"
18+
HOMEPAGE="
19+
https://github.com/astral-sh/uv/
20+
https://pypi.org/project/uv/
21+
"
22+
# pypi sdist misses scripts/, needed for tests
23+
SRC_URI="
24+
https://github.com/astral-sh/uv/archive/${PV}.tar.gz
25+
-> ${P}.gh.tar.gz
26+
${CARGO_CRATE_URIS}
27+
"
28+
if [[ ${PKGBUMPING} != ${PVR} ]]; then
29+
SRC_URI+="
30+
https://dev.gentoo.org/~mgorny/dist/${CRATE_P}-crates.tar.xz
31+
"
32+
fi
33+
34+
# most of the code
35+
LICENSE="|| ( Apache-2.0 MIT )"
36+
# crates/pep508-rs is || ( Apache-2.0 BSD-2 ) which is covered below
37+
# Dependent crate licenses
38+
LICENSE+="
39+
0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD-2 BSD ISC MIT
40+
MPL-2.0 Unicode-DFS-2016
41+
"
42+
# ring crate
43+
LICENSE+=" openssl"
44+
SLOT="0"
45+
KEYWORDS="amd64 arm arm64 x86"
46+
IUSE="test"
47+
RESTRICT="test"
48+
PROPERTIES="test_network"
49+
50+
DEPEND="
51+
dev-libs/libgit2:=
52+
"
53+
RDEPEND="
54+
${DEPEND}
55+
"
56+
BDEPEND="
57+
>=virtual/rust-1.77
58+
test? (
59+
dev-lang/python:3.8
60+
dev-lang/python:3.9
61+
dev-lang/python:3.10
62+
dev-lang/python:3.11
63+
dev-lang/python:3.12
64+
)
65+
"
66+
67+
QA_FLAGS_IGNORED="usr/bin/.*"
68+
69+
check_space() {
70+
local CHECKREQS_DISK_BUILD=3G
71+
use debug && CHECKREQS_DISK_BUILD=9G
72+
check-reqs_pkg_setup
73+
}
74+
75+
pkg_pretend() {
76+
check_space
77+
}
78+
79+
pkg_setup() {
80+
check_space
81+
}
82+
83+
src_prepare() {
84+
# https://github.com/astral-sh/uv/pull/3569
85+
eapply "${FILESDIR}/${P}-test.patch"
86+
default
87+
88+
# https://github.com/vorot93/tokio-tar/pull/23
89+
# (fortunately uv already depends on portable-atomic, so we don't
90+
# have to fight Cargo.lock)
91+
cd "${WORKDIR}/cargo_home/gentoo/tokio-tar-0.3.1" || die
92+
eapply "${FILESDIR}/tokio-tar-0.3.1-ppc.patch"
93+
}
94+
95+
src_configure() {
96+
local myfeatures=(
97+
# from upstream defaults
98+
flate2/zlib-ng
99+
python
100+
pypi
101+
git
102+
maturin
103+
# skip tests that require specific patch version of the interpreter:
104+
# python-patch
105+
)
106+
107+
cargo_src_configure --no-default-features
108+
}
109+
110+
src_compile() {
111+
cd crates/uv || die
112+
cargo_src_compile
113+
}
114+
115+
src_test() {
116+
cd crates/uv || die
117+
cargo_src_test --no-fail-fast
118+
}
119+
120+
src_install() {
121+
cd crates/uv || die
122+
cargo_src_install
123+
}

0 commit comments

Comments
 (0)