BSD Ports

devel/py-looseversion 1.3.0nb1 NetBSD

Python extension for comparing version strings

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
License
python-software-foundation
Categories
devel, python
Package size
10.1 KiB, 33.8 KiB installed

Description

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.

If you are simply comparing versions of Python packages, consider moving to `packaging.version.Version', which follows PEP-440. `LooseVersion` is better suited to interacting with heterogeneous version schemes that do not follow PEP-440.

In the other systems

SystemPortVersion
NetBSDdevel/py-looseversion1.3.0nb1
FreeBSDdevel/py-looseversion1.3.0
OpenBSDdevel/py-looseversion1.3.0p0
DragonFlydevel/py-looseversion1.3.0
HardenedBSDdevel/py-looseversion1.3.0
GhostBSDdevel/py-looseversion1.3.0

Install

Binary package:

pkgin install py311-looseversion

From pkgsrc:

cd /usr/pkgsrc/devel/py-looseversion && make install clean

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

RepositoryVersion
NetBSD 10.1 x86_641.3.0nb1
NetBSD 10.1 aarch641.3.0nb1
SmartOS / illumos x86_641.3.0nb1
macOS 15 arm641.3.0nb1

Dependencies

Run dependencies 1

Configuration

No options to configure.

Service scripts
none
Flavors
py312-looseversion-1.3.0nb1, py313-looseversion-1.3.0nb1, py314-looseversion-1.3.0nb1