git: fe2e9dee1f4a - main - devel/py-looseversion: add new port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 07 Jun 2023 12:11:26 UTC
The branch main has been updated by krion:
URL: https://cgit.FreeBSD.org/ports/commit/?id=fe2e9dee1f4a8abcb2bbe7b2d141124310b0b6b7
commit fe2e9dee1f4a8abcb2bbe7b2d141124310b0b6b7
Author: Kirill Ponomarev <krion@FreeBSD.org>
AuthorDate: 2023-06-07 12:10:23 +0000
Commit: Kirill Ponomarev <krion@FreeBSD.org>
CommitDate: 2023-06-07 12:10:23 +0000
devel/py-looseversion: add new port
Python extension for comparing version strings.
---
devel/Makefile | 1 +
devel/py-looseversion/Makefile | 18 ++++++++++++++++++
devel/py-looseversion/distinfo | 3 +++
devel/py-looseversion/pkg-descr | 8 ++++++++
4 files changed, 30 insertions(+)
diff --git a/devel/Makefile b/devel/Makefile
index e763a51839e0..c6fd4027e3db 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4903,6 +4903,7 @@
SUBDIR += py-loguru
SUBDIR += py-logutils
SUBDIR += py-logzero
+ SUBDIR += py-looseversion
SUBDIR += py-louie
SUBDIR += py-lru-dict
SUBDIR += py-lsprotocol
diff --git a/devel/py-looseversion/Makefile b/devel/py-looseversion/Makefile
new file mode 100644
index 000000000000..a285be089160
--- /dev/null
+++ b/devel/py-looseversion/Makefile
@@ -0,0 +1,18 @@
+PORTNAME= looseversion
+PORTVERSION= 1.1.2
+CATEGORIES= devel python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= krion@FreeBSD.org
+COMMENT= Python extension for comparing version strings
+WWW= https://pypi.org/project/looseversion/
+
+LICENSE= PSFL
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatchling>=0:devel/py-hatchling@${PY_FLAVOR}
+
+USES= cpe python:3.7+
+USE_PYTHON= autoplist concurrent pep517
+
+.include <bsd.port.mk>
diff --git a/devel/py-looseversion/distinfo b/devel/py-looseversion/distinfo
new file mode 100644
index 000000000000..4320bf3d9c41
--- /dev/null
+++ b/devel/py-looseversion/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1682157623
+SHA256 (looseversion-1.1.2.tar.gz) = 94d80bdbd0b6d57c11b886147ba1601f7d1531571621b81933b34537cbe469ad
+SIZE (looseversion-1.1.2.tar.gz) = 8393
diff --git a/devel/py-looseversion/pkg-descr b/devel/py-looseversion/pkg-descr
new file mode 100644
index 000000000000..3b77cbeaeaf6
--- /dev/null
+++ b/devel/py-looseversion/pkg-descr
@@ -0,0 +1,8 @@
+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.