HEX
Server: Apache
System: Linux server.enlacediseno.com 4.18.0-553.62.1.el8_10.x86_64 #1 SMP Wed Jul 16 04:08:25 EDT 2025 x86_64
User: maor (1069)
PHP: 7.3.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //opt/saltstack/salt/lib/python3.10/site-packages/rpm_vercmp-0.1.2.dist-info/METADATA
Metadata-Version: 2.4
Name: rpm_vercmp
Version: 0.1.2
Summary: Pure Python implementation of rpmvercmp
Author: Mihai Ibanescu
Author-email: Mihai.Ibanescu@sas.com
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Information Technology
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: Unix
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Topic :: Software Development :: Build Tools
Classifier: Topic :: System :: Archiving :: Packaging
License-File: LICENSE
License-File: AUTHORS
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: license-file
Dynamic: summary

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