From 072d704439b713015f0704be394bf3b348ab2134 Mon Sep 17 00:00:00 2001 From: cfreksen Date: Tue, 31 Oct 2017 17:35:50 +0100 Subject: [PATCH] Use readme as long description in setup.py. --- setup.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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',