Subject: bug#77808: closed (Re: [bug#77808] [PATCH] gnu: python-twisted: Remove test artifacts)

From: [email-masked] (GNU bug Tracking System)
Date: Sun, 27 Apr 2025 12:52:03 +0000

Your bug report

#77808: [PATCH] gnu: python-twisted: Remove test artifacts

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
77808: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=77808
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [bug#77808] [PATCH] gnu: python-twisted: Remove test artifacts
From: Christopher Baines <[email-masked]>
To: Jakob Kirsch via Guix-patches via <[email-masked]>
Cc: Jakob Kirsch <[email-masked]>, [email-masked]
Date: Sun, 27 Apr 2025 13:51:52 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Jakob Kirsch via Guix-patches via <[email-masked]> writes:

> python-twisted seems to leave _trial_temp in the output directory
> after the tests so this patch takes care of that.  Should be applied
> onto the python-team branch.
>
> [2. text/plain; 0001-gnu-python-twisted-Remove-test-artifacts.patch]...

Thanks for the patch, QA has applied this to master and built the
dependents so I've gone ahead and pushed this to master as
06ec680418a722247af4f78f06da34a70af06462.

Chris

Subject: [PATCH] gnu: python-twisted: Remove test artifacts
From: Jakob Kirsch <[email-masked]>
To: [email-masked]
Date: Mon, 14 Apr 2025 21:20:58 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

python-twisted seems to leave _trial_temp in the output directory after the tests so this patch takes care of that.
Should be applied onto the python-team branch.
From 60b8bc7828b1900ca25a862e1ee241b9082951f6 Mon Sep 17 00:00:00 2001
Message-ID: <60b8[email-masked]>
From: Jakob Kirsch <[email-masked]>
Date: Mon, 14 Apr 2025 21:18:24 +0200
Subject: [PATCH] gnu: python-twisted: Remove test artifacts

* gnu/packages/python-xyz.scm (python-twisted): [arguments]: <phases>: Extend check phase to clean up test artifacts.

Change-Id: Ibbf04771dea4342fe66221a740a11ad9882b6038
---
 gnu/packages/python-xyz.scm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 01aaff8949..8937a7eed5 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -22838,7 +22838,8 @@ (define-public python-twisted
               (when tests?
                 (with-directory-excursion #$output
                   (setenv "HOME" (getcwd))
-                  (invoke "python3" "-m" "twisted.trial" "twisted"))))))))
+                  (invoke "python3" "-m" "twisted.trial" "twisted")
+                  (delete-file-recursively "_trial_temp"))))))))
     (propagated-inputs
      (list python-attrs
            python-automat

base-commit: 617f4766791d8818c12a0dbc46af429ee070879e
-- 
2.49.0