diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-03-04 23:43:21 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-03-04 23:43:21 +0000 |
commit | a45eaba8b74340f1b166bb2ba96d61d41fc11fad (patch) | |
tree | a8e2641871efc53332f6cdbe36e9ede8d2770050 /dev-python/uv | |
parent | d0fafa709f2b77dc0e70c99118520000965e4b5a (diff) |
gentoo auto-resync : 04:03:2024 - 23:43:21
Diffstat (limited to 'dev-python/uv')
-rw-r--r-- | dev-python/uv/Manifest | 7 | ||||
-rw-r--r-- | dev-python/uv/files/uv-0.1.13-skip-tests.patch | 48 | ||||
-rw-r--r-- | dev-python/uv/metadata.xml | 11 | ||||
-rw-r--r-- | dev-python/uv/uv-0.1.13.ebuild | 96 |
4 files changed, 162 insertions, 0 deletions
diff --git a/dev-python/uv/Manifest b/dev-python/uv/Manifest new file mode 100644 index 000000000000..782826400f36 --- /dev/null +++ b/dev-python/uv/Manifest @@ -0,0 +1,7 @@ +AUX uv-0.1.13-skip-tests.patch 1948 BLAKE2B e155d96cade60daca9ef5438b1bf30134f2aeb3ff5ceb81ec72ef30b520d52f0f1bc0e39951f58ec7df10c1ab0f85aace80a72586ad7d167115c2634bd96ed4d SHA512 4ccea4023be89433726f33aac77bb8832aaa5a0f8e3cd2865023564d40e33b2ceec6b0f2a93e8a40f7ed345ba89cb67723d41cc680ccfb43d43e23b9ba5a201d +DIST pubgrub-aab132a3d4d444dd8dd41d8c4e605abd69dacfe1.gh.tar.gz 73856 BLAKE2B 9e30babd5159de0f80a69de082e990cade3768a4f62c64ecec46253b1c8a3da56a61d096f0cd2e74da436cbabb444c5acbfe27cc55160a5c0c99205c0317612a SHA512 f49c63df7394fcd4ce6a616e3c8d7893274f4bbe4d451f3fb46eed80a3e03eb345818c5ff87e9d3ac23c80ea7ffee5de01237a5dfff40f740f88a6d61eab5f81 +DIST rs-async-zip-d76801da0943de985254fc6255c0e476b57c5836.gh.tar.gz 95906 BLAKE2B a5a0e4d20926d637cbfa25cb486580de6682365c588a9653c873622424ec28ac8c7380d1c99ec260cd342b214aacd5124b51fc5e5646f15f76db4148aada2f41 SHA512 dd5b61bfc913a94822d74f1dac3b30f7a3979a641c3b08ccb5fa84cfbb2bfd8c0f807a30cc4ae0abfe5df7079011c20e1f8a642fd439ce6ba2c404ddee06baf5 +DIST uv-0.1.13-crates.tar.xz 47903460 BLAKE2B da7a2f023054197820cd1bcd13c6e4ff6d4c4bc4780fa109b2c5b796830333f21bc4c7f426052f7ed31a6c02f4e28694cfd94b1aa9d3044ebde49570e565c04b SHA512 cce73590c12a082fed36092bada42b878437cc44137f47c47b4e0e6fae214295867fbda90576d8ed47b025d873dc5655ab74c9914d6ccbaf6cea994b793800d5 +DIST uv-0.1.13.gh.tar.gz 1860446 BLAKE2B e5c209e11ea10a0aa8a88d4d40b40fe84cdd764cab1e852b49a52d8ff8749aac59d62234626fa768e6b1c304ee7b7a54cf99f5af4ecf21b368a1b521a8f903df SHA512 dc00cc26bc3b8e30edcc619bd49ff44962180623be8d1e2d7dc7c2b1c29969c8b393eda31b1392d90f0d72c15f2cb19af489e1e44f857225e461393c4b4b96c1 +EBUILD uv-0.1.13.ebuild 1968 BLAKE2B f282ab87c5307d6b3f93bbd2c62874b049673959cb911aec72f3b7a2327e0b8c8078fc93905c0d8f0a298ca8f83feabd92246d93e611c25bb32eed8cc2b97702 SHA512 1c24142c9bd6538fe1eb078a462f4ccfbcc0bf6d2cfe984ee93e7458241b90b8387eee9f757a8c93b70d0d8933769b2cd96165006da8f20d741e317c78458698 +MISC metadata.xml 336 BLAKE2B 4b5933e24e3e9450dde5da099185dcdf3afb5916b55cffa7c2f3f6fac77e439197cbe4ba529a87f83442d8f87d238e8abef06dc052ce9a62659060ffea9fdb47 SHA512 9910fd10ebbc395b9c330774b74798c9ffdba3bb368347658380a22e01d6dc9d1961ea50fbfb4a904c9db84b94c713c054e418a7294425b86ff41a607fd3e310 diff --git a/dev-python/uv/files/uv-0.1.13-skip-tests.patch b/dev-python/uv/files/uv-0.1.13-skip-tests.patch new file mode 100644 index 000000000000..5dccfe525f81 --- /dev/null +++ b/dev-python/uv/files/uv-0.1.13-skip-tests.patch @@ -0,0 +1,48 @@ +diff --git a/crates/uv/tests/pip_compile_scenarios.rs b/crates/uv/tests/pip_compile_scenarios.rs +index 2cbece6d..9b785300 100644 +--- a/crates/uv/tests/pip_compile_scenarios.rs ++++ b/crates/uv/tests/pip_compile_scenarios.rs +@@ -118,3 +118,2 @@ fn requires_incompatible_python_version_compatible_override() -> Result<()> { + /// ``` +-#[test] + fn requires_compatible_python_version_incompatible_override() -> Result<()> { +diff --git a/crates/uv/tests/pip_install_scenarios.rs b/crates/uv/tests/pip_install_scenarios.rs +index e0ad34ec..87bff298 100644 +--- a/crates/uv/tests/pip_install_scenarios.rs ++++ b/crates/uv/tests/pip_install_scenarios.rs +@@ -2369,3 +2369,2 @@ fn requires_python_version_greater_than_current() { + /// ``` +-#[test] + fn requires_python_version_greater_than_current_patch() { +diff --git a/crates/uv/tests/pip_list.rs b/crates/uv/tests/pip_list.rs +index 71bdf344..b80fea5f 100644 +--- a/crates/uv/tests/pip_list.rs ++++ b/crates/uv/tests/pip_list.rs +@@ -95,3 +95,2 @@ fn single_no_editable() -> Result<()> { + +-#[test] + fn editable() -> Result<()> { +@@ -197,3 +196,2 @@ fn editable() -> Result<()> { + +-#[test] + fn editable_only() -> Result<()> { +@@ -328,3 +326,2 @@ fn editable_only() -> Result<()> { + +-#[test] + fn exclude() -> Result<()> { +diff --git a/crates/uv/tests/pip_sync.rs b/crates/uv/tests/pip_sync.rs +index bcb1fd55..b68787db 100644 +--- a/crates/uv/tests/pip_sync.rs ++++ b/crates/uv/tests/pip_sync.rs +@@ -1440,3 +1440,2 @@ fn install_git_source_dist_cached() -> Result<()> { + /// Check that we show the right messages on cached, registry source distribution installs. +-#[test] + fn install_registry_source_dist_cached() -> Result<()> { +diff --git a/crates/uv/tests/venv.rs b/crates/uv/tests/venv.rs +index ea3c213f..c6ed2233 100644 +--- a/crates/uv/tests/venv.rs ++++ b/crates/uv/tests/venv.rs +@@ -340,3 +340,2 @@ fn create_venv_unknown_python_patch() -> Result<()> { + +-#[test] + fn create_venv_python_patch() -> Result<()> { diff --git a/dev-python/uv/metadata.xml b/dev-python/uv/metadata.xml new file mode 100644 index 000000000000..0aedc2ee9faa --- /dev/null +++ b/dev-python/uv/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + </maintainer> + <upstream> + <remote-id type="github">astral-sh/uv</remote-id> + <remote-id type="pypi">uv</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/uv/uv-0.1.13.ebuild b/dev-python/uv/uv-0.1.13.ebuild new file mode 100644 index 000000000000..11c9289c98f5 --- /dev/null +++ b/dev-python/uv/uv-0.1.13.ebuild @@ -0,0 +1,96 @@ +# 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;d76801da0943de985254fc6255c0e476b57c5836;rs-async-zip-%commit%' + [pubgrub]='https://github.com/zanieb/pubgrub;aab132a3d4d444dd8dd41d8c4e605abd69dacfe1;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 + SRC_URI+=" + https://dev.gentoo.org/~mgorny/dist/${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" +IUSE="test" +RESTRICT="test" +PROPERTIES="test_network" + +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 + ) +" + +PATCHES=( + # skip broken tests: + # - requiring pinned CPython versions (3.8.12, 3.11.7, 3.12.1) + # - requiring specific terminal width (COLUMNS don't seem to work) + # - other (perhaps failing because of other skipped tests?) + "${FILESDIR}/uv-0.1.13-skip-tests.patch" +) + +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_compile() { + cd crates/uv || die + cargo_src_compile +} + +src_test() { + cd crates/uv || die + cargo_src_test +} + +src_install() { + cd crates/uv || die + cargo_src_install +} |