commit: 3da8f1465cde6519b25f7553b97d885b7cdcc913
Author: Horea Christian <chr <AT> chymera <DOT> eu>
AuthorDate: Thu Jan 5 08:22:40 2023 +0000
Commit: Horea Christian <horea.christ <AT> gmail <DOT> 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 <chr <AT> 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 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>[email protected]</email>
+ <name>Horea Christian</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>[email protected]</email>
+ <name>Gentoo Science Project</name>
+ </maintainer>
+ <longdescription lang="en">
+ 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.
+ </longdescription>
+ <upstream>
+ <remote-id type="github">effigies/looseversion</remote-id>
+ <remote-id type="pypi">looseversion</remote-id>
+ </upstream>
+</pkgmetadata>