From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/uv/, dev-python/uv/files/
Date: Thu, 21 Mar 2024 19:42:08 +0000 (UTC) [thread overview]
Message-ID: <1711050124.8e01db4711ed10e1be623ba773ff5b7782888a2d.mgorny@gentoo> (raw)
commit: 8e01db4711ed10e1be623ba773ff5b7782888a2d
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Mar 21 19:38:08 2024 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Mar 21 19:42:04 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e01db47
dev-python/uv: Update skipped tests
Now that Python 3.8 and 3.9 have been bumped, and there is a new
packaging release, more tests are failing, sigh.
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/uv/files/uv-0.1.13-skip-tests.patch | 34 +++++++++++++++++++-------
dev-python/uv/uv-0.1.13-r1.ebuild | 23 ++++++++++-------
2 files changed, 39 insertions(+), 18 deletions(-)
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
index 5dccfe525f81..440d78bddd01 100644
--- a/dev-python/uv/files/uv-0.1.13-skip-tests.patch
+++ b/dev-python/uv/files/uv-0.1.13-skip-tests.patch
@@ -1,19 +1,35 @@
-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<()> {
- /// ```
+diff --git a/crates/uv/tests/pip_install.rs b/crates/uv/tests/pip_install.rs
+index bb6f719e..e8628b4d 100644
+--- a/crates/uv/tests/pip_install.rs
++++ b/crates/uv/tests/pip_install.rs
+@@ -827,3 +827,2 @@ fn install_no_index_version() {
+ /// Ref: <https://github.com/astral-sh/uv/issues/1600>
-#[test]
- fn requires_compatible_python_version_incompatible_override() -> Result<()> {
+ fn install_extra_index_url_has_priority() {
diff --git a/crates/uv/tests/pip_install_scenarios.rs b/crates/uv/tests/pip_install_scenarios.rs
-index e0ad34ec..87bff298 100644
+index e0ad34ec..4e0c33c9 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() {
+@@ -2246,3 +2246,2 @@ fn package_prereleases_specifier_boundary() {
+ /// ```
+-#[test]
+ fn requires_python_version_does_not_exist() {
+@@ -2287,3 +2286,2 @@ fn requires_python_version_does_not_exist() {
+ /// ```
+-#[test]
+ fn requires_python_version_less_than_current() {
+@@ -2328,3 +2326,2 @@ fn requires_python_version_less_than_current() {
+ /// ```
+-#[test]
+ fn requires_python_version_greater_than_current() {
+@@ -2369,3 +2366,2 @@ fn requires_python_version_greater_than_current() {
/// ```
-#[test]
fn requires_python_version_greater_than_current_patch() {
+@@ -2529,3 +2525,2 @@ fn requires_python_version_greater_than_current_backtrack() {
+ /// ```
+-#[test]
+ fn requires_python_version_greater_than_current_excluded() {
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
diff --git a/dev-python/uv/uv-0.1.13-r1.ebuild b/dev-python/uv/uv-0.1.13-r1.ebuild
index 5e3cdac4d27a..b610be166f23 100644
--- a/dev-python/uv/uv-0.1.13-r1.ebuild
+++ b/dev-python/uv/uv-0.1.13-r1.ebuild
@@ -62,14 +62,6 @@ BDEPEND="
)
"
-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() {
@@ -86,6 +78,19 @@ 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.13-skip-tests.patch"
+ )
+
+ rm crates/uv/tests/pip_compile_scenarios.rs || die
+ default
+}
+
src_compile() {
cd crates/uv || die
cargo_src_compile
@@ -93,7 +98,7 @@ src_compile() {
src_test() {
cd crates/uv || die
- cargo_src_test
+ cargo_src_test --no-fail-fast
}
src_install() {
next reply other threads:[~2024-03-21 19:42 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-21 19:42 Michał Górny [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-03-28 16:46 [gentoo-commits] repo/gentoo:master commit in: dev-python/uv/, dev-python/uv/files/ Michał Górny
2024-04-13 13:58 Michał Górny
2024-04-16 6:46 Michał Górny
2024-04-24 14:14 Michał Górny
2024-05-14 5:48 Michał Górny
2024-08-27 7:39 Michał Górny
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1711050124.8e01db4711ed10e1be623ba773ff5b7782888a2d.mgorny@gentoo \
--to=mgorny@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox