<commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
from matplotlib import __version__
import sys
import os.path

if tuple([int(x) for x in __version__.split(".")[:3]]) < (0, 99, 1):
    print "The HTML5 Canvas Backend requires matplotlib 0.99.1.1 or newer. Your version (%s) appears older than this. Unable to continue..." % __version__
    sys.exit(0)

here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.rst')).read()
INSTALL = open(os.path.join(here, 'INSTALL.rst')).read()

setup (
    name="mplh5canvas",
    version="0.5",
    author="<NAME>, <NAME>",
    author_email="<EMAIL>, <EMAIL>",
    url="http://code.google.com/p/mplh5canvas/",
    description="A matplotlib backend based on HTML5 Canvas.",
    long_description=README + "\n\n" + INSTALL,
    license="BSD",
    classifiers=["Environment :: Console",
                 "Intended Audience :: Developers",
                 "Intended Audience :: End Users/Desktop",
                 "License :: OSI Approved :: BSD License",
                 "Operating System :: OS Independent",
                 "Programming Language :: Python :: 2",
                 "Topic :: Software Development :: Libraries :: Python Modules",
                ],
    packages = find_packages(),
    scripts = [],<commit_msg>Used the LooseVersion class of distutils to provide a more robust check of matplotlib version. Fixes issue 5.<commit_after>#!/usr/bin/env python
from setuptools import setup, find_packages
from distutils.version import LooseVersion
from matplotlib import __version__ as mpl_version
import sys
import os.path

if LooseVersion(mpl_version) < LooseVersion("0.99.1.1"):
    print "The HTML5 Canvas Backend requires matplotlib 0.99.1.1 or newer. " \
          "Your version (%s) appears older than this. Unable to continue..." % (mpl_version,)
    sys.exit(0)

here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.rst')).read()
INSTALL = open(os.path.join(here, 'INSTALL.rst')).read()

setup (
    name="mplh5canvas",
    version="0.5",
    author="<NAME>, <NAME>",
    author_email="<EMAIL>, <EMAIL>",
    url="http://code.google.com/p/mplh5canvas/",
    description="A matplotlib backend based on HTML5 Canvas.",
    long_description=README + "\n\n" + INSTALL,
    license="BSD",
    classifiers=["Environment :: Console",
                 "Intended Audience :: Developers",
                 "Intended Audience :: End Users/Desktop",
                 "License :: OSI Approved :: BSD License",
                 "Operating System :: OS Independent",
                 "Programming Language :: Python :: 2",
                 "Topic :: Software Development :: Libraries :: Python Modules",
                ],
    packages = find_packages(),
    scripts = [],
{'fraction_non_alphanumeric': 0.14026988636363635, 'fraction_numerical': 0.013139204545454546, 'mean_word_length': 2.962025316455696, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 3, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5839678', 'n_tokens_mistral': 862, 'n_tokens_neox': 832, 'n_words': 225}