From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7773115800F for ; Thu, 5 Jan 2023 08:22:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9EDADE07E1; Thu, 5 Jan 2023 08:22:58 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 83324E07E1 for ; Thu, 5 Jan 2023 08:22:58 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 78B2C335D85 for ; Thu, 5 Jan 2023 08:22:57 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C5F8A75E for ; Thu, 5 Jan 2023 08:22:55 +0000 (UTC) From: "Horea Christian" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Horea Christian" Message-ID: <1672906960.3da8f1465cde6519b25f7553b97d885b7cdcc913.chymera@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: dev-python/looseversion/ X-VCS-Repository: proj/sci X-VCS-Files: dev-python/looseversion/looseversion-1.0.2.ebuild dev-python/looseversion/metadata.xml X-VCS-Directories: dev-python/looseversion/ X-VCS-Committer: chymera X-VCS-Committer-Name: Horea Christian X-VCS-Revision: 3da8f1465cde6519b25f7553b97d885b7cdcc913 X-VCS-Branch: master Date: Thu, 5 Jan 2023 08:22:55 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 62496df1-68e3-4c21-9829-d5d44ed1a722 X-Archives-Hash: 2555ff18ab926f9d4fe45f496168e1e7 commit: 3da8f1465cde6519b25f7553b97d885b7cdcc913 Author: Horea Christian chymera eu> AuthorDate: Thu Jan 5 08:22:40 2023 +0000 Commit: Horea Christian gmail com> CommitDate: Thu Jan 5 08:22:40 2023 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=3da8f146 dev-python/looseversion: new package, add 1.0.2 Signed-off-by: Horea Christian chymera.eu> dev-python/looseversion/looseversion-1.0.2.ebuild | 31 +++++++++++++++++++++++ dev-python/looseversion/metadata.xml | 25 ++++++++++++++++++ 2 files changed, 56 insertions(+) diff --git a/dev-python/looseversion/looseversion-1.0.2.ebuild b/dev-python/looseversion/looseversion-1.0.2.ebuild new file mode 100644 index 000000000..8b3f667f8 --- /dev/null +++ b/dev-python/looseversion/looseversion-1.0.2.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..11} ) +inherit distutils-r1 + +DESCRIPTION="A backwards/forwards-compatible fork of distutils' LooseVersion" +HOMEPAGE="https://github.com/effigies/looseversion" +SRC_URI="https://github.com/effigies/looseversion/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="PSF-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +RDEPEND="" +BEPEND="" + +#EPYTEST_DESELECT=( +# # Reported upstream: https://github.com/datalad/datalad/issues/6870 +# datalad/local/tests/test_gitcredential.py::test_datalad_credential_helper +#) + +distutils_enable_tests pytest + +python_test() { + epytest tests.py +} diff --git a/dev-python/looseversion/metadata.xml b/dev-python/looseversion/metadata.xml new file mode 100644 index 000000000..20b71d2b7 --- /dev/null +++ b/dev-python/looseversion/metadata.xml @@ -0,0 +1,25 @@ + + + + + gentoo@chymera.eu + Horea Christian + + + sci@gentoo.org + Gentoo Science Project + + + A backwards/forwards-compatible fork of distutils.version.LooseVersion, for times + when PEP-440 isn't what you need. The goal of this package is to be a drop-in + replacement for the original LooseVersion. It implements an identical interface + and comparison logic to LooseVersion. The only major change is that a + looseversion.LooseVersion is comparable to a distutils.version.LooseVersion, + which means tools should not need to worry whether all dependencies that use + LooseVersion have migrated. + + + effigies/looseversion + looseversion + +