gecko-dev/third_party/python/mozilla-version
..
mozilla_version
LICENSE
MANIFEST.in
PKG-INFO
README.md
requirements-coveralls.txt
requirements-docs.txt
requirements-test.txt
requirements.txt
requirements.txt.in
setup.cfg
setup.py
version.txt

README.md

mozilla-version

Build Status Coverage StatusDocumentation Status

Process Firefox versions numbers. Tell whether they are valid or not, whether they are nightlies or regular releases, whether this version precedes that other.

Documentation

https://mozilla-version.readthedocs.io/en/latest/

Get the code

Just install it from pip:

pip install mozilla-version

Hack on the code

virtualenv venv         # create the virtualenv in ./venv
. venv/bin/activate    # activate it
git clone https://github.com/mozilla-releng/mozilla-version
cd mozilla-version
pip install mozilla-version