Skip to main content

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

https://github.com/sassoftware/python-rpm-vercmp

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

Metadata

Release files for rpm-vercmp 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rpm-vercmp 0.1.2
File Size Uploaded Provenance Actions
rpm_vercmp-0.1.2.tar.gz 8.9 kB Without provenance Details for rpm_vercmp-0.1.2.tar.gz

Release files / rpm_vercmp-0.1.2.tar.gz

Download URL rpm_vercmp-0.1.2.tar.gz
Size 8.9 kB
Tags Source
SHA-256 checksum
How to use checksums
73dd583f1ff7a798faff62d39659d8a3e5183099972b2fc028bfadd70a43eda8
BLAKE2b-256 checksum
How to use checksums
0385322c80222742fd2ff810775e353265eb6b84cbc6ffa64c9ae5429853ed5c
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for rpm-vercmp 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.2 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page