dev-python/uv: new package, add 0.1.35
Closes: #3349 Signed-off-by: Andreas Billmeier <b@edevau.net>
This commit is contained in:
parent
8e88b2baa5
commit
548f28fdde
@ -606,12 +606,12 @@ A daily compile test is run at Github with Python 3.9 to catch general faults. E
|
|||||||
|
|
||||||
## Licenses
|
## Licenses
|
||||||
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.
|
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.
|
||||||
There are 1824 Ebuilds in total, 1813 of them have in total 1833 (42 different) licenses assigned.
|
There are 1828 Ebuilds in total, 1817 of them have in total 1838 (42 different) licenses assigned.
|
||||||
|
|
||||||
|License| Ebuilds using it|
|
|License| Ebuilds using it|
|
||||||
|-------|-----|
|
|-------|-----|
|
||||||
|MIT|1048|
|
|MIT|1049|
|
||||||
|Apache-2.0|399|
|
|Apache-2.0|403|
|
||||||
|GPL-3|107|
|
|GPL-3|107|
|
||||||
|BSD|106|
|
|BSD|106|
|
||||||
|LGPL-3|25|
|
|LGPL-3|25|
|
||||||
|
6
dev-python/uv/Manifest
Normal file
6
dev-python/uv/Manifest
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
DIST pubgrub-c26e485213e39582c6f2e4d45c0328422670e7a7.gh.tar.gz 86123 BLAKE2B 743bb61460903d276f467b23bb001313598b50cb54fd1a56bcadbc732dd606bafd48a2d9960add3424bd03222450b455f9f1bc8716a80933e5ed0cfb76dcc50a SHA512 9f9c8b58dd2ddeb3ed89abcd790641bd9b7b2cf4fc66dcc4d964a1b69d879adcdaf2775545631ca20f06a8ab5d6bc1df6b2eb272207d2642584c269b358f4d76
|
||||||
|
DIST rs-async-zip-1dcb40cfe1bf5325a6fd4bfcf9894db40241f585.gh.tar.gz 96766 BLAKE2B f9efab73c65394e33e090a6292875ebf35e6669b15c356f102eb109784a4503606ae39106cd0ebe3d7d479cb0b30806d7baaaebf22d826836a24f7ed49100934 SHA512 3b845b05d97c5ab5cea286a7c11846838b40bb1fac98a51782600849a53231be8fa205094c6bdd00f6e193c807b10b28f947698696382be99cae0a8d681dabdc
|
||||||
|
DIST uv-0.1.35-crates.tar.xz 65640928 BLAKE2B 97135ce844dc7af3c424a9b8ea7419b4c392e44a87ab960e59401f0075308001287fc42acd9bc21b300fba3d73fa65e292b55e612b92db05cad183577866a7d8 SHA512 7d862992d2ea92acaa24758cb5425b3053941e1312db1f27ee318049ac68fcd64dc614ba7fa21521cdb9ad11545cc5e8dcc2a2781f0164297229f35768e0776e
|
||||||
|
DIST uv-0.1.35.gh.tar.gz 1010370 BLAKE2B 0b07f4de6d07969d8721f94b3d21e2797b8425f26db5744f7ee2a90ed3769f3d8245552d8b8db6d8716e45dc88461a9543419191a4b71497019862860d76e728 SHA512 08f224b317d5aa3d9941ee0add791340f41a01e70d2a4e1e9b986e501d666a40e1a04bdeb2120e178bbedb2a91501e608d240a9ac56f509021d6377c278fbfcc
|
||||||
|
EBUILD uv-0.1.35.ebuild 2081 BLAKE2B 4963b8a889e4ea56cf2da3b5b43630e8daec220f7fd168b27b7f6aaba058a13abbc6a43b2ead54a7da50ec8f8fa0b20eca1d17c68ba92c525dafddbf76e08661 SHA512 56e08f64189e7535fcc4345a463d11613e8625a61a3fe97fce1c4680addd99b48610172ab59d68d066f18a209937d55327ba9e7d022293ff50d064185547e806
|
||||||
|
MISC metadata.xml 504 BLAKE2B f43087a5a4260082dec646a48af4f73eaa230c40d0cfcb263f3eaf4099c0427b98e280a5cc41ab9a19cbd99f4b4dec026108b5c64219a84615e0b9bed2d1c0fa SHA512 e6d457668a50867fd7103d6c8e1b5c15ca4f5229fabb65412054ac5e76f17ebd772be30219f83fc70b561a3432f6d003efa216f4df1be4a343339e494bcb990a
|
16
dev-python/uv/metadata.xml
Normal file
16
dev-python/uv/metadata.xml
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<maintainer type="project">
|
||||||
|
<email>b@edevau.net</email>
|
||||||
|
<name>Andreas Billmeier</name>
|
||||||
|
</maintainer>
|
||||||
|
<upstream>
|
||||||
|
<remote-id type="pypi">uv</remote-id>
|
||||||
|
<remote-id type="github">astral-sh/uv</remote-id>
|
||||||
|
<maintainer status="unknown">
|
||||||
|
<email>hey@astral.sh</email>
|
||||||
|
<name>"Astral Software Inc."</name>
|
||||||
|
</maintainer>
|
||||||
|
</upstream>
|
||||||
|
</pkgmetadata>
|
111
dev-python/uv/uv-0.1.35.ebuild
Normal file
111
dev-python/uv/uv-0.1.35.ebuild
Normal file
@ -0,0 +1,111 @@
|
|||||||
|
# Copyright 1999-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;c26e485213e39582c6f2e4d45c0328422670e7a7;pubgrub-%commit%'
|
||||||
|
)
|
||||||
|
|
||||||
|
inherit cargo check-reqs
|
||||||
|
|
||||||
|
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
|
||||||
|
CRATE_P=${P}
|
||||||
|
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 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_configure() {
|
||||||
|
local myfeatures=(
|
||||||
|
# from upstream defaults
|
||||||
|
flate2/zlib-ng
|
||||||
|
python
|
||||||
|
pypi
|
||||||
|
git
|
||||||
|
maturin
|
||||||
|
# skip tests that require specific patch version of the interpreter:
|
||||||
|
# python-patch
|
||||||
|
)
|
||||||
|
|
||||||
|
cargo_src_configure --no-default-features
|
||||||
|
}
|
||||||
|
|
||||||
|
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
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user