From patchwork Thu May 9 22:53:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Graves X-Patchwork-Id: 64205 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 257AE27BBEA; Thu, 9 May 2024 23:57:50 +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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, 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 23C5B27BBE2 for ; Thu, 9 May 2024 23:57:49 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s5ChS-0005vX-KQ; Thu, 09 May 2024 18:57:18 -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 1s5ChH-0005qF-25 for guix-patches@gnu.org; Thu, 09 May 2024 18:57:07 -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 1s5ChG-0006QD-Ql for guix-patches@gnu.org; Thu, 09 May 2024 18:57:06 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s5ChF-0002eH-5L for guix-patches@gnu.org; Thu, 09 May 2024 18:57:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#70855] [PATCH 09/92] gnu: python-aionotify: Update to 0.3.0. Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 09 May 2024 22:57:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70855 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 70855@debbugs.gnu.org Cc: ngraves@ngraves.fr Received: via spool by 70855-submit@debbugs.gnu.org id=B70855.17152953729786 (code B ref 70855); Thu, 09 May 2024 22:57:05 +0000 Received: (at 70855) by debbugs.gnu.org; 9 May 2024 22:56:12 +0000 Received: from localhost ([127.0.0.1]:41048 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s5CgN-0002Xh-E9 for submit@debbugs.gnu.org; Thu, 09 May 2024 18:56:11 -0400 Received: from 12.mo550.mail-out.ovh.net ([87.98.162.229]:46785) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s5CgL-0002XN-37 for 70855@debbugs.gnu.org; Thu, 09 May 2024 18:56:10 -0400 Received: from director6.ghost.mail-out.ovh.net (unknown [10.109.139.228]) by mo550.mail-out.ovh.net (Postfix) with ESMTP id 4Vb6nP1Hkhz1Npl for <70855@debbugs.gnu.org>; Thu, 9 May 2024 22:56:09 +0000 (UTC) Received: from ghost-submission-6684bf9d7b-jghmk (unknown [10.111.182.101]) by director6.ghost.mail-out.ovh.net (Postfix) with ESMTPS id D6A021FD53; Thu, 9 May 2024 22:56:08 +0000 (UTC) Received: from ngraves.fr ([37.59.142.110]) by ghost-submission-6684bf9d7b-jghmk with ESMTPSA id K085LIhUPWYtwggAe7IgEQ (envelope-from ); Thu, 09 May 2024 22:56:08 +0000 Authentication-Results: garm.ovh; auth=pass (GARM-110S0049b1ae948-1660-4d93-a7f5-4db3d77235ea, E63BAB6C0A71DD4DA934779D5D345DF804807214) smtp.auth=ngraves@ngraves.fr X-OVh-ClientIp: 81.67.146.208 Date: Fri, 10 May 2024 00:53:04 +0200 Message-ID: <20240509225530.24649-9-ngraves@ngraves.fr> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240509225530.24649-1-ngraves@ngraves.fr> References: <20240509225530.24649-1-ngraves@ngraves.fr> MIME-Version: 1.0 X-Ovh-Tracer-Id: 6091399972925858530 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvledrvdeffedgudehucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefpihgtohhlrghsucfirhgrvhgvshcuoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqnecuggftrfgrthhtvghrnhepvdehleeiffehtedvlefhffffjeefgfduhfetkeevheeiteduiedugfekuedtheejnecuffhomhgrihhnpehgihhthhhusgdrtghomhenucfkphepuddvjedrtddrtddruddpkedurdeijedrudegiedrvddtkedpfeejrdehledrudegvddruddutdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduvdejrddtrddtrddupdhmrghilhhfrhhomhepnhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrpdhnsggprhgtphhtthhopedupdhrtghpthhtohepjedtkeehheesuggvsggsuhhgshdrghhnuhdrohhrghdpoffvtefjohhsthepmhhoheehtddpmhhouggvpehsmhhtphhouhht 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-aionotify): Update to 0.3.0. [build-system]: Move to pyproject-build-system. * gnu/packages/patches/python-aionotify-0.2.0-py3.8.patch : Remove patch. * gnu/local.mk: Remove patch. Change-Id: I9f13d6d71f69dd9877ac42e46b087989f23941e2 --- gnu/local.mk | 1 - .../python-aionotify-0.2.0-py3.8.patch | 48 ------------------- gnu/packages/python-xyz.scm | 13 +++-- 3 files changed, 6 insertions(+), 56 deletions(-) delete mode 100644 gnu/packages/patches/python-aionotify-0.2.0-py3.8.patch diff --git a/gnu/local.mk b/gnu/local.mk index 1f951d88ab1..9c61039239b 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -1920,7 +1920,6 @@ dist_patch_DATA = \ %D%/packages/patches/python-3-search-paths.patch \ %D%/packages/patches/python-3-fix-tests.patch \ %D%/packages/patches/python-3-hurd-configure.patch \ - %D%/packages/patches/python-aionotify-0.2.0-py3.8.patch \ %D%/packages/patches/python-cross-compile.patch \ %D%/packages/patches/python-configobj-setuptools.patch \ %D%/packages/patches/python-dateutil-pytest-compat.patch \ diff --git a/gnu/packages/patches/python-aionotify-0.2.0-py3.8.patch b/gnu/packages/patches/python-aionotify-0.2.0-py3.8.patch deleted file mode 100644 index ebeef34720a..00000000000 --- a/gnu/packages/patches/python-aionotify-0.2.0-py3.8.patch +++ /dev/null @@ -1,48 +0,0 @@ -Compatibility with Python 3.8, see upstream issue -https://github.com/rbarrois/aionotify/pull/15 - -diff --git a/setup.py b/setup.py -index 21a554f..094de64 100755 ---- a/setup.py -+++ b/setup.py -@@ -40,7 +40,7 @@ setup( - setup_requires=[ - ], - tests_require=[ -- 'asynctest', -+ 'asynctest; python_version<"3.8"', - ], - classifiers=[ - "Development Status :: 4 - Beta", -diff --git a/tests/test_usage.py b/tests/test_usage.py -index f156291..0476ff1 100644 ---- a/tests/test_usage.py -+++ b/tests/test_usage.py -@@ -8,7 +8,11 @@ import os.path - import tempfile - import unittest - --import asynctest -+try: -+ testBase = unittest.IsolatedAsyncioTestCase -+except AttributeError: -+ import asynctest -+ testBase = asynctest.TestCase - - import aionotify - -@@ -25,11 +29,13 @@ if AIODEBUG: - TESTDIR = os.environ.get('AIOTESTDIR') or os.path.join(os.path.dirname(__file__), 'testevents') - - --class AIONotifyTestCase(asynctest.TestCase): -+class AIONotifyTestCase(testBase): - forbid_get_event_loop = True - timeout = 3 - - def setUp(self): -+ if not getattr (self, 'loop', None): -+ self.loop = asyncio.get_event_loop() - if AIODEBUG: - self.loop.set_debug(True) - self.watcher = aionotify.Watcher() diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index a28e4e72f21..e1e8ef7caa0 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -30515,23 +30515,22 @@ (define-public python-cson (define-public python-aionotify (package (name "python-aionotify") - (version "0.2.0") + (version "0.3.0") (source (origin ;; Source tarball on PyPi lacks tests (method git-fetch) (uri (git-reference (url "https://github.com/rbarrois/aionotify") - (commit (string-append "v" version)))) + (commit version))) (file-name (git-file-name name version)) (sha256 - (base32 "1sk9i8czxgsbrswsf1nlb4c82vgnlzi8zrvrxdip92w2z8hqh43y")) - (patches (search-patches "python-aionotify-0.2.0-py3.8.patch")))) - (build-system python-build-system) + (base32 "0qkzwccv8k6mx1yvc0hmsgnzgb4vh8h97kq7i64ic6xzxkd57vkz")))) + (build-system pyproject-build-system) (home-page "https://github.com/rbarrois/aionotify") - (synopsis "Asyncio-powered inotify library") + (synopsis "inotify library for Python") (description - "@code{aionotify} is a simple, asyncio-based inotify library.") + "@code{python-aionotify} is a simple, asyncio-based inotify library.") (license license:bsd-3))) (define-public python-forbiddenfruit