diff --git a/setup.py b/setup.py index c3b9800..1b39c24 100644 --- a/setup.py +++ b/setup.py @@ -11,11 +11,22 @@ from setuptools import setup packages = ['llvm_emulator'] +with open('README') as f: + long_description = f.read() +try: + # Look for a org mode header within the first 200 chars. If + # nothing is found, we just use the entire readme file as the + # description, by not updating long_description + start_index = long_description.index('\n*', 0, 200) + 1 + long_description = long_description[start_index:] +except: + pass + setup( name='llvm--emulator', version='1.0.0', description='A simple hacky emulator/debugger for LLVM--', - long_description='TODO', + long_description=long_description, url='https://gitlab.com/cfreksen/llvm--emulator', author='Casper Freksen', author_email='cfreksen@cs.au.dk',