#!/usr/bin/env python

from gratelpy.tests import runtests
import networkx
import sys

def main():
    print('\nGraTeLPy Copyright (C) 2013  Georg R Walther, Matthew Hartley.\n'
          'This program comes with ABSOLUTELY NO WARRANTY.\n'
          'This is free software, and you are welcome to redistribute it '
          'under certain conditions.\n'
          'For details visit https://github.com/gratelpy/gratelpy and '
          'read our LICENSE or contact the author at gratelpy@gmail.com.\n')

    py_v = sys.version_info
    py_v_str = '.'.join('%s' % i for i in py_v[:2])

    print('Your Python version is %s.' % py_v_str)
    print('Your NetworkX version is %s.' % str(networkx.__version__))
    print('')

    runtests()

if __name__ == '__main__':
    main()
else:
    print 'Run GraTeLPy Test from the Command Line'
