From patchwork Fri Apr 4 19:17:04 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Graves X-Patchwork-Id: 41309 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 9BEBE27BBE9; Fri, 4 Apr 2025 20:20:16 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 348BB27BBE2 for ; Fri, 4 Apr 2025 20:20:16 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1u0mZO-0007Jr-Rb; Fri, 04 Apr 2025 15:19:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1u0mZI-0007CO-96 for guix-patches@gnu.org; Fri, 04 Apr 2025 15:19:08 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1u0mZH-0007xZ-Pk for guix-patches@gnu.org; Fri, 04 Apr 2025 15:19:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=SA+A6hy6T8OpCxqcJaJxpB3ESyUhRDVW0x0G0PhMnEk=; b=ddrjET+/ncnqJjoHbR7/qseslZeuv1Dopj0uoeQjqvZBjWyLuRR601gnzv0HuOUHVK9H4QDVBJ73eKABEM8GZloH/42H8wAe7X3Czd/9bQAbx7WNVJNUrcsXfNCOoD4KQHiWoKIIFau4dF6OYC/6jBz1eYbbE0HO0u6EYG+fD88Rh7ILcho71C5n3giLfGileNnrfK7aUH4/Mdr3Z6u0+YcXjp+yLrrfgOOjqlm5mmQg6TM1KT9aqNve9jDDaOiYEoxdx8LxPGgE5jFZr/Yi6FGqOz3jQQ4Gu3S3tUiGepA+jSt+FO0CreL20Kpqu69EEwy7f6j8VJk3pSECs3axSQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1u0mZH-0007Rx-Iq for guix-patches@gnu.org; Fri, 04 Apr 2025 15:19:07 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#77541] [PATCH 32/38] gnu: python-rq-scheduler: Update to 0.14. Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 04 Apr 2025 19:19:07 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 77541 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 77541@debbugs.gnu.org Cc: Nicolas Graves Received: via spool by 77541-submit@debbugs.gnu.org id=B77541.174379431828454 (code B ref 77541); Fri, 04 Apr 2025 19:19:07 +0000 Received: (at 77541) by debbugs.gnu.org; 4 Apr 2025 19:18:38 +0000 Received: from localhost ([127.0.0.1]:40130 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1u0mYn-0007Oq-Dt for submit@debbugs.gnu.org; Fri, 04 Apr 2025 15:18:37 -0400 Received: from 7.mo562.mail-out.ovh.net ([46.105.55.234]:43067) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1u0mY2-0007I0-Ur for 77541@debbugs.gnu.org; Fri, 04 Apr 2025 15:17:51 -0400 Received: from director2.derp.mail-out.ovh.net (director2.derp.mail-out.ovh.net [79.137.60.36]) by mo562.mail-out.ovh.net (Postfix) with ESMTPS id 4ZTpK96W0Zz1YGT; Fri, 4 Apr 2025 19:17:49 +0000 (UTC) Received: from director2.derp.mail-out.ovh.net (director2.derp.mail-out.ovh.net. [127.0.0.1]) by director2.derp.mail-out.ovh.net (inspect_sender_mail_agent) with SMTP for <77541@debbugs.gnu.org>; Fri, 4 Apr 2025 19:17:49 +0000 (UTC) Received: from mta3.priv.ovhmail-u1.ea.mail.ovh.net (unknown [10.109.148.152]) by director2.derp.mail-out.ovh.net (Postfix) with ESMTPS id 4ZTpK95wNXzy9b; Fri, 4 Apr 2025 19:17:49 +0000 (UTC) Received: from ngraves.fr (unknown [10.1.6.4]) by mta3.priv.ovhmail-u1.ea.mail.ovh.net (Postfix) with ESMTPSA id 59C833A3EA6; Fri, 4 Apr 2025 19:17:49 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-108S00250fd5c91-9014-40d1-9028-afe5b74d9542, 5C763BAE2B049B0552D0CEA89988AE409CD35AAA) smtp.auth=ngraves@ngraves.fr X-OVh-ClientIp: 90.92.117.144 Date: Fri, 4 Apr 2025 21:17:04 +0200 Message-ID: <20250404191717.32747-32-ngraves@ngraves.fr> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250404191717.32747-1-ngraves@ngraves.fr> References: <20250404191717.32747-1-ngraves@ngraves.fr> MIME-Version: 1.0 X-Ovh-Tracer-Id: 3484941689133130466 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdduledvvdeiucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefpihgtohhlrghsucfirhgrvhgvshcuoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqnecuggftrfgrthhtvghrnhepvdehleeiffehtedvlefhffffjeefgfduhfetkeevheeiteduiedugfekuedtheejnecuffhomhgrihhnpehgihhthhhusgdrtghomhenucfkphepuddvjedrtddrtddruddpledtrdelvddruddujedrudeggeenucevlhhushhtvghrufhiiigvpeegnecurfgrrhgrmhepihhnvghtpeduvdejrddtrddtrddupdhmrghilhhfrhhomhepnhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrpdhnsggprhgtphhtthhopedvpdhrtghpthhtohepjeejheegudesuggvsggsuhhgshdrghhnuhdrohhrghdprhgtphhtthhopehnghhrrghvvghssehnghhrrghvvghsrdhfrhdpoffvtefjohhsthepmhhoheeivdgmpdhmohguvgepshhmthhpohhuth DKIM-Signature: a=rsa-sha256; bh=SA+A6hy6T8OpCxqcJaJxpB3ESyUhRDVW0x0G0PhMnEk=; c=relaxed/relaxed; d=ngraves.fr; h=From; s=ovhmo4487190-selector1; t=1743794270; v=1; b=2ocjfeb2ka+F1Hj8iX7+WnqXezqluYEwhVuDayEADIiuatpvYJRBUzqKWIyJ/JUxG+QnAVmh hyQx8EV/G6forosXbkowB56XDD/8+jV4Q9+BO5tu79D4YJyO+uf0PvrLQzxE+3G/c2Efi5YqDw8 tgxGhs2oKeWAuit6IklM5ULXw58Es+SZUX6RfchsdIEh8dIgaOf8as45ixcOHar3opT2+aYiXOE kSK2RXC4SgslLrSpbc+rqyn8/3gzuK7GjX1qPZwWMxL0sF73lx+cwRAoY9OefJZ/naRQwbiSyu9 0zFcd77RUUqbeR/82g4vUfyWRHj9e9mwi5eQvoUUgwB1A== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Nicolas Graves X-ACL-Warn: , Nicolas Graves via Guix-patches X-Patchwork-Original-From: Nicolas Graves via Guix-patches via From: Nicolas Graves Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/databases.scm (python-rq-scheduler): Update to 0.14. [build-system]: Switch to pyproject. [arguments]{test-flags}: Ignore failing tests. They fail because of mcron's requirements to be run with root when -u flag is used. {phases}: Remove 'check phase replacement. [native-inputs]: Add python-crontab, python-freezegun, python-pytest, python-setuptools, python-wheel. Remove which. --- gnu/packages/databases.scm | 37 +++++++++++++++++++++++-------------- 1 file changed, 23 insertions(+), 14 deletions(-) diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm index 4ecf237115..1aebf982ae 100644 --- a/gnu/packages/databases.scm +++ b/gnu/packages/databases.scm @@ -4647,7 +4647,7 @@ (define-public python-rq (define-public python-rq-scheduler (package (name "python-rq-scheduler") - (version "0.10.0") + (version "0.14") (home-page "https://github.com/rq/rq-scheduler") (source (origin (method git-fetch) @@ -4657,21 +4657,30 @@ (define-public python-rq-scheduler (file-name (git-file-name name version)) (sha256 (base32 - "0xg6yazqs5kbr2ayvhvljs1h5vgx5k5dds613fmhswln7gglf9hk")))) - (build-system python-build-system) + "09fh9m2vcl1jndq35xp1x0j8ih009r71qmhn2pkl93fykrqfavyn")))) + (build-system pyproject-build-system) (arguments - '(#:phases (modify-phases %standard-phases - (add-before 'check 'start-redis - (lambda _ - (invoke "redis-server" "--daemonize" "yes"))) - (replace 'check - (lambda _ - (substitute* "run_tests.py" - (("/usr/bin/env") - (which "env"))) - (invoke "./run_tests.py")))))) + (list + #:test-flags + #~(list "-k" (string-append "not test_cron" + " and not test_job_creation_with" + " and not test_job_with_crontab")) + #:phases #~(modify-phases %standard-phases + (add-before 'check 'start-redis + (lambda _ + (invoke "redis-server" "--daemonize" "yes"))) + (add-after 'unpack 'loosen-requirements + (lambda _ + (substitute* "setup.py" + (("crontab>=[0-9.]*") + "python-crontab"))))))) (native-inputs - (list redis which)) + (list python-crontab + python-freezegun + python-pytest + python-setuptools + python-wheel + redis)) (propagated-inputs (list python-croniter python-rq)) (synopsis "Job scheduling capabilities for RQ (Redis Queue)")