Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,INCLUDES_CR_TRAILER,INCLUDES_PATCH,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7CB07C433B4 for ; Mon, 3 May 2021 15:48:51 +0000 (UTC) Received: by mail.kernel.org (Postfix) id 45129610C8; Mon, 3 May 2021 15:48:51 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id F1263600CC for ; Mon, 3 May 2021 15:48:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620056931; bh=ujjJ1hNHsoxJuwxQ4NQ3G/pDv57dSiBhAAEo073jYsk=; h=From:List-Id:To:Subject:Date:In-Reply-To:References:From; b=XpBywf833gG4okhRskR+h7/DjTs9bx2qPrm2KKM6KG0kWeHrVHUAVd80m+SaVv9Q9 +0vFvGeh4LiN09ymd8ZL6hxzamdN6A2uq6PZV6w5JiRSbjoIH+TBhlRrjwMlaBvHk4 SUwXRbBToiBAoAYVUQovY01CGBuOOJLfwGdUYFzQ= From: Konstantin Ryabitsev List-Id: To: signatures@kernel.org Subject: [PATCH 3/3] Loosen compatible release identifiers for install_requires Date: Mon, 3 May 2021 11:48:48 -0400 Message-Id: <20210503154848.28770-4-konstantin@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210503154848.28770-1-konstantin@linuxfoundation.org> References: <20210503154848.28770-1-konstantin@linuxfoundation.org> MIME-Version: 1.0 X-Developer-Signature: v=1; a=ed25519-sha256; i=konstantin@linuxfoundation.org; t=1620056902; h=from:subject; l=1255; bh=9XIT7Z/fBoLkRDYDLRZZsBz//NkKzFKImB3G8EThCRo=; b=oQRnZ8r5Z6YO7lFhTX0D6Qw7VIanV82p8+QCSrxbHUfPnYrtVufVghPU8CC9ZOtN1QEzUbxPSdpW WpXGrc1tD/+XRw0G+rmMmHFikFC9lnvyiigujGwuG63sKSVjO275 Content-Transfer-Encoding: 8bit From: Kyle Meyer The install_requires entries use a compatible release operator. As an example, "requests~=2.24.0" maps to a requirement of ">= 2.24.0 and == 2.24.*". With the current version of requests (2.25.1), this leads to a ContextualVersionConflict failure at runtime. Allowing only Z to tick in version X.Y.Z seems unnecessarily strict unless there are known problems with a particular release, and it makes it more difficult for distributions to package b4. Drop the trailing digit from all of the version identifiers, allowing both Y and Z to increase. Signed-off-by: Kyle Meyer Signed-off-by: Konstantin Ryabitsev --- setup.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 358e6a7..a21ec76 100644 --- a/setup.py +++ b/setup.py @@ -41,9 +41,9 @@ setup( data_files = [('share/man/man5', ['man/b4.5'])], keywords=['git', 'lore.kernel.org', 'patches'], install_requires=[ - 'requests~=2.24.0', - 'dkimpy~=1.0.5', - 'dnspython~=2.0.0', + 'requests~=2.24', + 'dkimpy~=1.0', + 'dnspython~=2.0', ], python_requires='>=3.6', entry_points={ -- 2.31.1