From patchwork Thu Feb 20 07:53:26 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Graves X-Patchwork-Id: 38865 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 AB1B127BBEA; Thu, 20 Feb 2025 08:09:11 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, 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 1EA8E27BBE2 for ; Thu, 20 Feb 2025 08:09:11 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tl1cH-0001mr-SU; Thu, 20 Feb 2025 03:09:05 -0500 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 1tl1cF-0001m5-GO for guix-patches@gnu.org; Thu, 20 Feb 2025 03:09:04 -0500 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 1tl1cF-00068m-7V for guix-patches@gnu.org; Thu, 20 Feb 2025 03:09:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:In-Reply-To:References:Subject; bh=TdR8qwgoFRV+wdarrJySKa3sdE1L/bRMeu44tMrNQ2I=; b=K4NqQgZrDlFO+EzIH6Q6UwVgAah1jE2c0IGnX2aKn/zZgtjGxk1G/rJA07xpbkC0CB+AOp2h6ziSO6I46LSa8PtTucytr7EfpHPKEIzxGtTt912e0qiD7lDcjqeWKOaZt0sasxSy5S1mL4Ih50z1k+UhM6dKtK4OAnyA0DimwS1+nI1WCzpxbbHMfBW/VrePFCXhJVaw4akEcGZz5a2EN88sHXVWPsfq85LGn87JpcBPSNTijILOT76BAxsDnksMDzc+AYcfrWcnQJp/OI8w0CwcCbtyO7PNG++NJje0VqAoTwuIGL9CHHkkIMhJY6pP29S8yCgpXZdoJ5WwP8t/rQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tl1cF-0003N0-0i for guix-patches@gnu.org; Thu, 20 Feb 2025 03:09:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#76436] [PATCH python-team 3/3] gnu: python-watchgod: Rename package to python-watchfiles. References: <87o6yxoxg8.fsf@ngraves.fr> In-Reply-To: <87o6yxoxg8.fsf@ngraves.fr> Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 20 Feb 2025 08:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 76436 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 76436@debbugs.gnu.org Received: via spool by 76436-submit@debbugs.gnu.org id=B76436.174003888412611 (code B ref 76436); Thu, 20 Feb 2025 08:09:02 +0000 Received: (at 76436) by debbugs.gnu.org; 20 Feb 2025 08:08:04 +0000 Received: from localhost ([127.0.0.1]:59372 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tl1bH-0003H1-0X for submit@debbugs.gnu.org; Thu, 20 Feb 2025 03:08:03 -0500 Received: from 4.mo576.mail-out.ovh.net ([46.105.42.102]:49797) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tl1bB-0003Fr-89 for 76436@debbugs.gnu.org; Thu, 20 Feb 2025 03:07:58 -0500 Received: from director8.ghost.mail-out.ovh.net (unknown [10.109.140.5]) by mo576.mail-out.ovh.net (Postfix) with ESMTP id 4Yz5V33zvtz270F for <76436@debbugs.gnu.org>; Thu, 20 Feb 2025 08:07:55 +0000 (UTC) Received: from ghost-submission-5b5ff79f4f-ns7pn (unknown [10.110.118.186]) by director8.ghost.mail-out.ovh.net (Postfix) with ESMTPS id 070431FEA0 for <76436@debbugs.gnu.org>; Thu, 20 Feb 2025 08:07:54 +0000 (UTC) Received: from ngraves.fr ([37.59.142.104]) by ghost-submission-5b5ff79f4f-ns7pn with ESMTPSA id yr/cL9ritmeNZxsAHWSBhQ (envelope-from ) for <76436@debbugs.gnu.org>; Thu, 20 Feb 2025 08:07:54 +0000 Authentication-Results: garm.ovh; auth=pass (GARM-104R005f35fcabb-40f1-4fec-81f9-1898b7562cd8, 3504AAD960A9D73423D68DF730709AC4C04CB632) smtp.auth=ngraves@ngraves.fr X-OVh-ClientIp: 90.92.117.144 Date: Thu, 20 Feb 2025 08:53:26 +0100 Message-ID: <87frk9ox7p.fsf@ngraves.fr> MIME-Version: 1.0 X-Ovh-Tracer-Id: 16346659276034728546 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdeiieeigecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecunecujfgurhephffvufffkfggtgesthdtredttddttdenucfhrhhomheppfhitgholhgrshcuifhrrghvvghsuceonhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrqeenucggtffrrghtthgvrhhnpeetfeeukeehledtffdvieeuleejkefhudeuhfdukefgtdevgeetgedtkeehueeivdenucffohhmrghinhepghhithhhuhgsrdgtohhmnecukfhppeduvdejrddtrddtrddupdeltddrledvrdduudejrddugeegpdefjedrheelrddugedvrddutdegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepuddvjedrtddrtddruddpmhgrihhlfhhrohhmpehnghhrrghvvghssehnghhrrghvvghsrdhfrhdpnhgspghrtghpthhtohepuddprhgtphhtthhopeejieegfeeiseguvggssghughhsrdhgnhhurdhorhhgpdfovfetjfhoshhtpehmohehjeeimgdpmhhouggvpehsmhhtphhouhht DKIM-Signature: a=rsa-sha256; bh=TdR8qwgoFRV+wdarrJySKa3sdE1L/bRMeu44tMrNQ2I=; c=relaxed/relaxed; d=ngraves.fr; h=From; s=ovhmo4487190-selector1; t=1740038875; v=1; b=iMW3XZ0WGH64bfdbUFZ1OG3rORaDZT3Nt20YbxXs3tsBoHDX9YfosIdQq07vE4rDXlbM2zSD sXWWDNxE0NiNlb/pYraN+hTJv7ibk1gfBiVQjrnxfBzLB00axTAzgFSmUv9nTt7WIFv6CrB3FDY 28/ibIVJIcJX5t9C2tIyrJowPBxuan1OY9sfjDbx5H1r1ruusr2OQ3hSWWyQOnHeBVioMOv5pZR hqpmtt5CCyihowt9R/AkROYW6p20EpM7mcIdxN4CBFMEz7TCttpcweAvAyjtyaYEnMo7+Fytkwx BkaPfptlzG+1oYM4lRe00mJ2xQV78UrR8W0YPiQNfd6cw== 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/python-xyz.scm (python-watchgod): Define in terms of 'deprecated-package'. [version]: Update to 1.0.4. [build-system]: Switch to cargo-build-system. [arguments]: Likewise. [native-inputs]: Add maturin, python-dirty-equals, python-pytest-timeout, python-wrapper. Remove python-pygments, python-pytest-sygar, python-setuptools and python-wheel. (python-watchfiles): New variable, formerly known as "python-watchgod". --- gnu/packages/python-xyz.scm | 58 +++++++++++++++++++++++++------------ 1 file changed, 40 insertions(+), 18 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index f738b2b00c..2d86cc010a 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -32455,37 +32455,56 @@ (define-public python-watchdog but portable.") (license license:asl2.0))) -(define-public python-watchgod +(define-public python-watchfiles (package - (name "python-watchgod") - (version "0.8.1") + (name "python-watchfiles") + (version "1.0.4") (source (origin ;; There are no tests in the PyPI tarball. (method git-fetch) (uri (git-reference - (url "https://github.com/samuelcolvin/watchgod") + (url "https://github.com/samuelcolvin/watchfiles") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0zm9xd2qf3d74l67yv8j3zhhhvi0vp25vhkg46l9d7flh9m04qrp")))) - (build-system pyproject-build-system) + (base32 "1kaxq0drjwlvcsg4in25w1bhjjgm1zlz06rr2macyi6s5x96g46h")))) + (build-system cargo-build-system) (arguments - (list #:test-flags '(list "-o" "asyncio_mode=auto" - ;; PytestUnraisableExceptionWarning - "-k" "not test_watch_log and not test_awatch") - #:phases #~(modify-phases %standard-phases - (delete 'sanity-check)))) + (list + #:install-source? #f + #:imported-modules `(,@%cargo-build-system-modules + ,@%pyproject-build-system-modules) + #:modules '((guix build cargo-build-system) + ((guix build pyproject-build-system) #:prefix py:) + (guix build utils)) + #:phases + #~(modify-phases %standard-phases + (replace 'build + (assoc-ref py:%standard-phases 'build)) + (add-after 'build 'install-rust-library + (lambda _ + (copy-file "target/release/lib_rust_notify.so" + "watchfiles/_rust_notify.so"))) + (replace 'check + (lambda* (#:key tests? test-flags #:allow-other-keys) + (if tests? + ;; Missing file in source. + (invoke "pytest" "-vv" "-k" "not test_docs_examples") + (format #t "test suite not run~%")))) + (replace 'install + (assoc-ref py:%standard-phases 'install))) + #:cargo-inputs + (list rust-crossbeam-channel-0.5 rust-notify-7 rust-pyo3-0.23))) (native-inputs - (list python-anyio - python-pygments + (list maturin + python-anyio + python-dirty-equals python-pytest - python-pytest-asyncio python-pytest-mock - python-pytest-sugar - python-setuptools - python-wheel)) - (home-page "https://github.com/samuelcolvin/watchgod") + python-pytest-timeout + python-wrapper)) + (home-page "https://github.com/samuelcolvin/watchfiles") (synopsis "Simple, modern file watching and code reload in Python") (description "Simple, modern file watching and code reload in Python inspired by @@ -32493,6 +32512,9 @@ (define-public python-watchgod operating systems and an elegant approach to concurrency using threading.") (license license:expat))) +(define-deprecated/alias python-watchgod python-watchfiles) +(export python-watchgod) + (define-public python-wget (package (name "python-wget")