diff options
author | 2024-04-04 14:05:07 +0200 | |
---|---|---|
committer | 2024-04-04 20:08:03 +0200 | |
commit | 8c909cf3295bfebf5a8443c2ca7abf36e3041d90 (patch) | |
tree | 05e05651e58a320d4ed2d6966d121f202485f852 /dev-python/uv | |
parent | dev-python/numexpr: Bump to 2.10.0 (diff) | |
download | gentoo-8c909cf3295bfebf5a8443c2ca7abf36e3041d90.tar.gz gentoo-8c909cf3295bfebf5a8443c2ca7abf36e3041d90.tar.bz2 gentoo-8c909cf3295bfebf5a8443c2ca7abf36e3041d90.zip |
dev-python/uv: Bump to 0.1.28
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/uv')
-rw-r--r-- | dev-python/uv/Manifest | 3 | ||||
-rw-r--r-- | dev-python/uv/files/uv-0.1.28-skip-tests.patch | 144 | ||||
-rw-r--r-- | dev-python/uv/uv-0.1.28.ebuild | 108 |
3 files changed, 255 insertions, 0 deletions
diff --git a/dev-python/uv/Manifest b/dev-python/uv/Manifest index fb0c308b83a3..0d910430f3b8 100644 --- a/dev-python/uv/Manifest +++ b/dev-python/uv/Manifest @@ -1,7 +1,10 @@ DIST pubgrub-aab132a3d4d444dd8dd41d8c4e605abd69dacfe1.gh.tar.gz 73856 BLAKE2B 9e30babd5159de0f80a69de082e990cade3768a4f62c64ecec46253b1c8a3da56a61d096f0cd2e74da436cbabb444c5acbfe27cc55160a5c0c99205c0317612a SHA512 f49c63df7394fcd4ce6a616e3c8d7893274f4bbe4d451f3fb46eed80a3e03eb345818c5ff87e9d3ac23c80ea7ffee5de01237a5dfff40f740f88a6d61eab5f81 +DIST pubgrub-c26e485213e39582c6f2e4d45c0328422670e7a7.gh.tar.gz 86123 BLAKE2B 743bb61460903d276f467b23bb001313598b50cb54fd1a56bcadbc732dd606bafd48a2d9960add3424bd03222450b455f9f1bc8716a80933e5ed0cfb76dcc50a SHA512 9f9c8b58dd2ddeb3ed89abcd790641bd9b7b2cf4fc66dcc4d964a1b69d879adcdaf2775545631ca20f06a8ab5d6bc1df6b2eb272207d2642584c269b358f4d76 DIST pubgrub-e981e4dfe315582e84e2fd724832fb0e0c50b7aa.gh.tar.gz 76914 BLAKE2B e7039f3b2fdc2a702f4824ff99acba9549e916c211290b79ec710060369b2c76e518c210c109103bf5ba50cbb373d0a4e3185df09935d7e47241ec25da259776 SHA512 94cfc88b6736ffd78bcbcc3f4cd9940d27c902bf2dfca38dddb470b8a6a0bb3a8e4a61dd1b2654e49327c9386c3ac2a7f090f9a6c2426b19ecf00d9f9716d400 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 DIST uv-0.1.24-crates.tar.xz 64420840 BLAKE2B 7324461092a07c86aadaddf051aaa7454ec08085940f34d07d8a8dc7171abcbf94409df5cd8afd71f1022adb2e76c0aeb1eabe9190598cad4d06e390ccd612f4 SHA512 6701a768a8a1d48ac43038e5161b578b684abed1c2055cc4b7fb5656ec40118287893ee2674b7161292ce7c3e4c062c32ff0038f1548c8f79f4df473d8d26f30 DIST uv-0.1.24.gh.tar.gz 899637 BLAKE2B fab26ba9934fc5f586505b5ac1fa386c11f07e51ca2bb2a79f46d5dec9475ba8d75ad8587223d5149df5f2a225146d020a49b7ff81ed26b949cff55892738c2d SHA512 520b47a096b50fce9e7b7af5bca203df9bf4c2d0aafbe28a3dcfe0592d8ddcaa7b58d52300c67454f6aeecfd196f1592be18e45c95b7c67257361917cdb0154d +DIST uv-0.1.28-crates.tar.xz 64374368 BLAKE2B 6eceb9eba6d746007eb983ae704fc96496e29e86d219af19af01cafdb230bf2e5f572d07fac2ee5cdb42e5e553dbc266233425084acd98d73039a761c5e2907e SHA512 0966ece30f0ac1111ac6eb0d3f5aeea3a3a443962e0a477c66b62dae09374f1dccf1a0ac355d5c684e76759f64b6921ed192de8d0363682d0aafe1de31c019be +DIST uv-0.1.28.gh.tar.gz 925800 BLAKE2B 5e30573a198057261fe7716dc6dc5d8b7bd8700fabc4f061129d5e15475eeee96ea6424fc7321425348103796a2a6278118cc1c3399f8c3858c3816450e068c7 SHA512 3de0df5ca3c69bedc30d20c199251060a35d82ede8fa9f7f4907eee8e0bd55c7f10fbee0e870e1145c88c8526ab4729af4be393bc2a6508fa008050691ccf06a diff --git a/dev-python/uv/files/uv-0.1.28-skip-tests.patch b/dev-python/uv/files/uv-0.1.28-skip-tests.patch new file mode 100644 index 000000000000..037ac6addb99 --- /dev/null +++ b/dev-python/uv/files/uv-0.1.28-skip-tests.patch @@ -0,0 +1,144 @@ +diff --git a/crates/uv/tests/pip_compile.rs b/crates/uv/tests/pip_compile.rs +index 281c8b7f..19df83c2 100644 +--- a/crates/uv/tests/pip_compile.rs ++++ b/crates/uv/tests/pip_compile.rs +@@ -5509,3 +5509,2 @@ fn expand_env_var_requirements_txt() -> Result<()> { + /// Raise an error when an editable's `Requires-Python` constraint is not met. +-#[test] + fn requires_python_editable() -> Result<()> { +@@ -5763,3 +5762,2 @@ fn no_stream() -> Result<()> { + /// Raise an error when a direct URL dependency's `Requires-Python` constraint is not met. +-#[test] + fn requires_python_direct_url() -> Result<()> { +diff --git a/crates/uv/tests/pip_install.rs b/crates/uv/tests/pip_install.rs +index ee987fb0..a73e2f25 100644 +--- a/crates/uv/tests/pip_install.rs ++++ b/crates/uv/tests/pip_install.rs +@@ -952,3 +952,2 @@ fn install_no_index_version() { + /// Ref: <https://github.com/astral-sh/uv/issues/1600> +-#[test] + fn install_extra_index_url_has_priority() { +@@ -2362,3 +2361,2 @@ requires-python = ">=3.11,<3.13" + /// Raise an error when an editable's `Requires-Python` constraint is not met. +-#[test] + fn requires_python_editable() -> Result<()> { +@@ -2811,3 +2809,2 @@ fn dry_run_install_then_upgrade() -> std::result::Result<(), Box<dyn std::error: + /// Raise an error when a direct URL's `Requires-Python` constraint is not met. +-#[test] + fn requires_python_direct_url() -> Result<()> { +diff --git a/crates/uv/tests/pip_install_scenarios.rs b/crates/uv/tests/pip_install_scenarios.rs +index e9e85a94..353b3c62 100644 +--- a/crates/uv/tests/pip_install_scenarios.rs ++++ b/crates/uv/tests/pip_install_scenarios.rs +@@ -2246,3 +2246,2 @@ fn post_greater_than_or_equal_post() { + /// ``` +-#[test] + fn post_less_than_or_equal() { +@@ -2285,3 +2284,2 @@ fn post_less_than_or_equal() { + /// ``` +-#[test] + fn post_less_than() { +@@ -2322,3 +2320,2 @@ fn post_less_than() { + /// ``` +-#[test] + fn post_local_greater_than() { +@@ -2363,3 +2360,2 @@ fn post_local_greater_than() { + /// ``` +-#[test] + fn post_local_greater_than_post() { +@@ -2531,3 +2527,2 @@ fn post_greater_than_post_not_available() { + /// ``` +-#[test] + fn package_only_prereleases() { +@@ -3654,3 +3649,2 @@ fn package_prereleases_specifier_boundary() { + /// ``` +-#[test] + fn python_version_does_not_exist() { +@@ -3696,3 +3690,2 @@ fn python_version_does_not_exist() { + /// ``` +-#[test] + fn python_less_than_current() { +@@ -3738,3 +3731,2 @@ fn python_less_than_current() { + /// ``` +-#[test] + fn python_greater_than_current() { +@@ -3780,3 +3772,2 @@ fn python_greater_than_current() { + /// ``` +-#[test] + fn python_greater_than_current_patch() { +@@ -3944,3 +3935,2 @@ fn python_greater_than_current_backtrack() { + /// ``` +-#[test] + fn python_greater_than_current_excluded() { +diff --git a/crates/uv/tests/pip_list.rs b/crates/uv/tests/pip_list.rs +index 9b545ee2..5b202b9c 100644 +--- a/crates/uv/tests/pip_list.rs ++++ b/crates/uv/tests/pip_list.rs +@@ -101,3 +101,2 @@ fn list_single_no_editable() -> Result<()> { + +-#[test] + fn list_editable() { +@@ -153,3 +152,2 @@ fn list_editable() { + +-#[test] + fn list_editable_only() { +@@ -241,3 +239,2 @@ fn list_editable_only() { + +-#[test] + fn list_exclude() { +diff --git a/crates/uv/tests/pip_sync.rs b/crates/uv/tests/pip_sync.rs +index 7964d2cc..e0a14a91 100644 +--- a/crates/uv/tests/pip_sync.rs ++++ b/crates/uv/tests/pip_sync.rs +@@ -1423,3 +1423,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<()> { +@@ -2920,3 +2919,2 @@ fn compile_invalid_pyc_invalidation_mode() -> Result<()> { + /// Raise an error when an editable's `Requires-Python` constraint is not met. +-#[test] + fn requires_python_editable() -> Result<()> { +@@ -2988,3 +2986,2 @@ fn no_stream() -> Result<()> { + /// Raise an error when a direct URL dependency's `Requires-Python` constraint is not met. +-#[test] + fn requires_python_direct_url() -> Result<()> { +diff --git a/crates/uv/tests/venv.rs b/crates/uv/tests/venv.rs +index 94e79ae7..f79ea4e6 100644 +--- a/crates/uv/tests/venv.rs ++++ b/crates/uv/tests/venv.rs +@@ -76,3 +76,2 @@ impl VenvTestContext { + +-#[test] + fn create_venv() { +@@ -118,3 +117,2 @@ fn create_venv() { + +-#[test] + fn create_venv_defaults_to_cwd() { +@@ -139,3 +137,2 @@ fn create_venv_defaults_to_cwd() { + +-#[test] + fn seed() { +@@ -163,3 +160,2 @@ fn seed() { + +-#[test] + fn seed_older_python_version() { +@@ -255,3 +251,2 @@ fn create_venv_unknown_python_patch() { + +-#[test] + fn create_venv_python_patch() { +@@ -278,3 +273,2 @@ fn create_venv_python_patch() { + +-#[test] + fn file_exists() -> Result<()> { +@@ -307,3 +301,2 @@ fn file_exists() -> Result<()> { + +-#[test] + fn empty_dir_exists() -> Result<()> { +@@ -334,3 +327,2 @@ fn empty_dir_exists() -> Result<()> { + +-#[test] + fn non_empty_dir_exists() -> Result<()> { +@@ -408,3 +400,2 @@ fn windows_shims() -> Result<()> { + +-#[test] + fn virtualenv_compatibility() { diff --git a/dev-python/uv/uv-0.1.28.ebuild b/dev-python/uv/uv-0.1.28.ebuild new file mode 100644 index 000000000000..5a2ad8fdce77 --- /dev/null +++ b/dev-python/uv/uv-0.1.28.ebuild @@ -0,0 +1,108 @@ +# 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/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 + 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 ~arm ~arm64 ~ppc64 ~riscv ~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_prepare() { + local 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.28-skip-tests.patch" + ) + + rm crates/uv/tests/pip_compile_scenarios.rs || die + default +} + +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 +} |