Fix github README file

Github doesn't support the "include" directive, so when we fixed the
readme for the PyPi package we broke the github readme.  Now it's only
presenting the demo.

To fix this we revert to having the whole readme in the README.rst file
and in setup.py we hardcode the removal of the demo section.
This commit is contained in:
Gorka Eguileor
2018-06-14 20:47:24 +02:00
parent b7cee8b9bd
commit 6310829f73
5 changed files with 187 additions and 187 deletions

View File

@@ -3,11 +3,14 @@
import setuptools
with open('readme_prefix.rst') as readme_file:
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('readme_postfix.rst') as readme_file:
readme += readme_file.read()
# Remove the demo for the PyPi package
start = readme.index('Demo\n----')
end = readme.index('Example\n-------')
readme = readme[:start] + readme[end:]
with open('HISTORY.rst') as history_file:
history = history_file.read()