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=-18.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,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 457AFC43461 for ; Mon, 3 May 2021 21:53:36 +0000 (UTC) Received: by mail.kernel.org (Postfix) id 24A4B611CD; Mon, 3 May 2021 21:53:36 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id DD25861165 for ; Mon, 3 May 2021 21:53:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620078816; bh=Vmm55mMcWLxAtIzDYTsJKQCTcyJqRNNdmLFwpp/Bb5o=; h=From:List-Id:To:Subject:Date:In-Reply-To:References:From; b=Z0TNy8l8lM32JK9a/fGgfgHDT0cFpb7utaNOnzBvC4GCKA60dUyRJdyl6zxlZ3Nfn RPXxyoNYqf/ssPKMHjyr5y47lDJ6h+fWKLf+Y0SuhxyVVucLgw29/+hI2rUWtsFlmO nadqwyy889X+QmHKH3Fa1u0VP6jyjkMa/4WOSLXw= 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 17:53:33 -0400 Message-Id: <20210503215333.141462-4-konstantin@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210503215333.141462-1-konstantin@linuxfoundation.org> References: <20210503215333.141462-1-konstantin@linuxfoundation.org> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; i=konstantin@linuxfoundation.org; h=from:subject; l=1255; bh=JuXOzYrslPRPqOGLA5Inup7FYrNl9E5+FcL9qi9JT1U=; b=owGbwMvMwCG27YjM47CUmTmMp9WSGBImFKz2z2++wh//3//3uTt3F0dNXMOu7si1Lzv2YljfiylZ pWJcHaUsDGIcDLJiiixl+2I3BRU+9JBL7zGFmcPKBDKEgYtTACZSconhJ+Mm3yLlsl83qnw9jlp+lZ xjzOP8ZPGEgL8XDj9v35f8dBIjw62CzbICCodYKy0mfau8lhseev/TtEfF/A3XHUPNuFp1GQE= 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.30.2