Skip to content

Commit

Permalink
Fix: Run Readme Generator
Browse files Browse the repository at this point in the history
  • Loading branch information
dgilling committed Jun 7, 2019
1 parent 8439d4d commit 8a3cde5
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
16 changes: 10 additions & 6 deletions register.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
import pandoc
import os

pandoc.core.PANDOC_PATH = '/usr/local/bin/pandoc'

doc = pandoc.Document()
doc.markdown = open('README.md').read()
f = open('README.rst','w+')
f.write(doc.rst)
f.close()
def run():
pandoc.core.PANDOC_PATH = '/usr/local/bin/pandoc'

doc = pandoc.Document()
doc.markdown = open('README.md').read()
f = open('README.rst','w+')
f.write(doc.rst)
f.close()

run()
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pyandoc
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@
# To use a consistent encoding
from codecs import open
from os import path
import register

here = path.abspath(path.dirname(__file__))

# Get the long description from the README file
register.run
long_description = ''
if path.exists('README.rst'):
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
Expand Down

0 comments on commit 8a3cde5

Please sign in to comment.