Pure Python implementation of rpmvercmp
Project description
Pure Python implementation of rpmvercmp.
The RPM Package Manager (http://rpm.org) has a version comparision algorithm, implemented in its C library, which performs the comparison in a certain way.
In certain circumstances, where the C library is not installable (for example, on non-rpm based systems), or does not support the desired version of the python interpreter, the pure-python implementation may be useful.
Source Code
Installation
$ pip install rpm_vercmp
Usage
import rpm_vercmp assert rpm_vercmp.vercmp(“1.0”, “1.0”) == 0 assert rpm_vercmp.vercmp(“1.0”, “1.1”) == -1
Testing
The testsuite uses rpm’s test file in m4 format. The file cat be fetched from: https://raw.githubusercontent.com/rpm-software-management/rpm/master/tests/rpmvercmp.at
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file rpm_vercmp-0.1.1.tar.gz.
File metadata
- Download URL: rpm_vercmp-0.1.1.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.8.1 pkginfo/1.4.1 requests/2.18.4 setuptools/34.2.0 requests-toolbelt/0.7.1 clint/0.5.1 CPython/2.7.15 Linux/4.18.14-200.fc28.x86_64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9cc611eabd40f712f91c61032d8a101e84dee44db8fc8024e35803a221460c5f
|
|
| MD5 |
32bb3d1ef91c518a8e9c3931ba7872f8
|
|
| BLAKE2b-256 |
6227cef239e50df62e2282296367b19d8d05ef967a9a1bc8accb1080d426509f
|