Skip to content

Commit

Permalink
devel/py-looseversion: add new port
Browse files Browse the repository at this point in the history
Python extension for comparing version strings.
  • Loading branch information
krionbsd committed Jun 7, 2023
1 parent 6cb7fc4 commit fe2e9de
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions devel/Makefile
Expand Up @@ -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
Expand Down
18 changes: 18 additions & 0 deletions 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>
3 changes: 3 additions & 0 deletions 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
8 changes: 8 additions & 0 deletions 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.

0 comments on commit fe2e9de

Please sign in to comment.