Use readme as long description in setup.py.

This commit is contained in:
cfreksen 2017-10-31 17:35:50 +01:00
parent 7e577886a0
commit 072d704439
No known key found for this signature in database
GPG Key ID: EAC13EE101008978
1 changed files with 12 additions and 1 deletions

View File

@ -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',