<commit_before>
'''
setup.py for rhaptos2

'''

from distutils.core import setup
import os, glob

def get_version():

    '''return version from fixed always must exist file

       Making very broad assumptions about the 
       existence of files '''
    
    v = open('rhaptos2/user/version.txt').read().strip()
    return v




def main():

    setup(name='rhaptos2.user',
          version=get_version(),
          packages=['rhaptos2.user',
                   ],
          namespace_packages = ['rhaptos2'],
          author='See AUTHORS.txt',
          author_email='<EMAIL>',
          url='https://github.com/Connexions/rhaptos2.user',
          license='LICENSE.txt',
          description='User functions for rhaptos2',
          long_description='see description',
          install_requires=[
              "flask >= 0.8"
              ,"statsd"
              ,"requests"
              ,"pylint"
              ,"python-memcached"
              ,"nose"
              ,"rhaptos2.common"
              ,"unittest-xml-reporting"
              ,"mikado.oss.doctest_additions"
                           ],
          scripts=glob.glob('scripts/*'),

          package_data={'rhaptos2.user': ['templates/*.*', 
                                          'static/*.*', 
                                           'version.txt', 
                                           'tests/*.*'],
                        },

         

          
          )
<commit_msg>version fix - same as rhaptos2.repo pull #55<commit_after>
'''
setup.py for rhaptos2

'''

from setuptools import setup, find_packages
import os, glob

def get_version():
    """ return a version number, or error string.
    
    We are assuming a file version.txt always exists. By convention
    populate that file with output of git describe
    """

    try:
        v = open("version.txt").read().strip()
    except:
        v = "UNABLE_TO_FIND_RELEASE_VERSION_FILE"
    return v






def main():

    setup(name='rhaptos2.user',
          version=get_version(),
          packages=['rhaptos2.user',
                   ],
          namespace_packages = ['rhaptos2'],
          author='See AUTHORS.txt',
          author_email='<EMAIL>.org',
          url='https://github.com/Connexions/rhaptos2.user',
          license='LICENSE.txt',
          description='User functions for rhaptos2',
          long_description='see description',
          install_requires=[
              "flask >= 0.8"
              ,"statsd"
              ,"requests"
              ,"pylint"
              ,"python-memcached"
              ,"nose"
              ,"rhaptos2.common"
              ,"unittest-xml-reporting"
              ,"mikado.oss.doctest_additions"
                           ],
          scripts=glob.glob('scripts/*'),
          package_data={'rhaptos2.user': ['templates/*.*', 
                                          'static/*.*', 
                                           'tests/*.*'],
                        },
    entry_points = """\
[console_scripts]
run_rhaptos2user.py = rhaptos2.user.run:main
"""

          )

{'fraction_non_alphanumeric': 0.12435233160621761, 'fraction_numerical': 0.008419689119170985, 'mean_word_length': 1.4303697875688435, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3881909', 'n_tokens_mistral': 843, 'n_tokens_neox': 812, 'n_words': 160}