Skip to content

Commit 548f28f

Browse files
committed
dev-python/uv: new package, add 0.1.35
Closes: https://git.edevau.net/onkelbeh/HomeAssistantRepository/issues/3349 Signed-off-by: Andreas Billmeier <b@edevau.net>
1 parent 8e88b2b commit 548f28f

4 files changed

Lines changed: 136 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 1824 Ebuilds in total, 1813 of them have in total 1833 (42 different) licenses assigned.
609+
There are 1828 Ebuilds in total, 1817 of them have in total 1838 (42 different) licenses assigned.
610610

611611
|License| Ebuilds using it|
612612
|-------|-----|
613-
|MIT|1048|
614-
|Apache-2.0|399|
613+
|MIT|1049|
614+
|Apache-2.0|403|
615615
|GPL-3|107|
616616
|BSD|106|
617617
|LGPL-3|25|

dev-python/uv/Manifest

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
DIST pubgrub-c26e485213e39582c6f2e4d45c0328422670e7a7.gh.tar.gz 86123 BLAKE2B 743bb61460903d276f467b23bb001313598b50cb54fd1a56bcadbc732dd606bafd48a2d9960add3424bd03222450b455f9f1bc8716a80933e5ed0cfb76dcc50a SHA512 9f9c8b58dd2ddeb3ed89abcd790641bd9b7b2cf4fc66dcc4d964a1b69d879adcdaf2775545631ca20f06a8ab5d6bc1df6b2eb272207d2642584c269b358f4d76
2+
DIST rs-async-zip-1dcb40cfe1bf5325a6fd4bfcf9894db40241f585.gh.tar.gz 96766 BLAKE2B f9efab73c65394e33e090a6292875ebf35e6669b15c356f102eb109784a4503606ae39106cd0ebe3d7d479cb0b30806d7baaaebf22d826836a24f7ed49100934 SHA512 3b845b05d97c5ab5cea286a7c11846838b40bb1fac98a51782600849a53231be8fa205094c6bdd00f6e193c807b10b28f947698696382be99cae0a8d681dabdc
3+
DIST uv-0.1.35-crates.tar.xz 65640928 BLAKE2B 97135ce844dc7af3c424a9b8ea7419b4c392e44a87ab960e59401f0075308001287fc42acd9bc21b300fba3d73fa65e292b55e612b92db05cad183577866a7d8 SHA512 7d862992d2ea92acaa24758cb5425b3053941e1312db1f27ee318049ac68fcd64dc614ba7fa21521cdb9ad11545cc5e8dcc2a2781f0164297229f35768e0776e
4+
DIST uv-0.1.35.gh.tar.gz 1010370 BLAKE2B 0b07f4de6d07969d8721f94b3d21e2797b8425f26db5744f7ee2a90ed3769f3d8245552d8b8db6d8716e45dc88461a9543419191a4b71497019862860d76e728 SHA512 08f224b317d5aa3d9941ee0add791340f41a01e70d2a4e1e9b986e501d666a40e1a04bdeb2120e178bbedb2a91501e608d240a9ac56f509021d6377c278fbfcc
5+
EBUILD uv-0.1.35.ebuild 2081 BLAKE2B 4963b8a889e4ea56cf2da3b5b43630e8daec220f7fd168b27b7f6aaba058a13abbc6a43b2ead54a7da50ec8f8fa0b20eca1d17c68ba92c525dafddbf76e08661 SHA512 56e08f64189e7535fcc4345a463d11613e8625a61a3fe97fce1c4680addd99b48610172ab59d68d066f18a209937d55327ba9e7d022293ff50d064185547e806
6+
MISC metadata.xml 504 BLAKE2B f43087a5a4260082dec646a48af4f73eaa230c40d0cfcb263f3eaf4099c0427b98e280a5cc41ab9a19cbd99f4b4dec026108b5c64219a84615e0b9bed2d1c0fa SHA512 e6d457668a50867fd7103d6c8e1b5c15ca4f5229fabb65412054ac5e76f17ebd772be30219f83fc70b561a3432f6d003efa216f4df1be4a343339e494bcb990a

dev-python/uv/metadata.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version='1.0' encoding='UTF-8'?>
2+
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
3+
<pkgmetadata>
4+
<maintainer type="project">
5+
<email>b@edevau.net</email>
6+
<name>Andreas Billmeier</name>
7+
</maintainer>
8+
<upstream>
9+
<remote-id type="pypi">uv</remote-id>
10+
<remote-id type="github">astral-sh/uv</remote-id>
11+
<maintainer status="unknown">
12+
<email>hey@astral.sh</email>
13+
<name>"Astral Software Inc."</name>
14+
</maintainer>
15+
</upstream>
16+
</pkgmetadata>

dev-python/uv/uv-0.1.35.ebuild

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
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;c26e485213e39582c6f2e4d45c0328422670e7a7;pubgrub-%commit%'
12+
)
13+
14+
inherit cargo check-reqs
15+
16+
DESCRIPTION="A Python package installer and resolver, written in Rust"
17+
HOMEPAGE="
18+
https://github.com/astral-sh/uv/
19+
https://pypi.org/project/uv/
20+
"
21+
# pypi sdist misses scripts/, needed for tests
22+
SRC_URI="
23+
https://github.com/astral-sh/uv/archive/${PV}.tar.gz
24+
-> ${P}.gh.tar.gz
25+
${CARGO_CRATE_URIS}
26+
"
27+
if [[ ${PKGBUMPING} != ${PVR} ]]; then
28+
CRATE_P=${P}
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_configure() {
84+
local myfeatures=(
85+
# from upstream defaults
86+
flate2/zlib-ng
87+
python
88+
pypi
89+
git
90+
maturin
91+
# skip tests that require specific patch version of the interpreter:
92+
# python-patch
93+
)
94+
95+
cargo_src_configure --no-default-features
96+
}
97+
98+
src_compile() {
99+
cd crates/uv || die
100+
cargo_src_compile
101+
}
102+
103+
src_test() {
104+
cd crates/uv || die
105+
cargo_src_test --no-fail-fast
106+
}
107+
108+
src_install() {
109+
cd crates/uv || die
110+
cargo_src_install
111+
}

0 commit comments

Comments
 (0)