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:
9
setup.py
9
setup.py
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user