Skip to content

Commit

Permalink
Added register script
Browse files Browse the repository at this point in the history
Trying to work round issues with pandoc and setup.py
  • Loading branch information
OiNutter committed Jan 14, 2013
1 parent ff044b6 commit 616d249
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
11 changes: 11 additions & 0 deletions register.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import pandoc

pandoc.core.PANDOC_PATH = "pandoc"

doc = pandoc.Document()
doc.markdown = open('README.md','r').read()
f = open('README.txt','w+')
f.write()
f.close()
os.system("setup.py register")
os.remove('README.txt')
11 changes: 6 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
from distutils.core import setup
import pandoc
import os

long_description = "Python tool for finding files in a set of paths. Based on the Hike ruby gem"
if os.path.exists('README.txt'):
long_description = open('README.txt').read()

pandoc.core.PANDOC_PATH = "pandoc"

doc = pandoc.Document()
doc.markdown = open('README.md','r').read()
setup(name='Crawl',
version='0.4',
url='https://github.com/OiNutter/crawl',
download_url='https://nodeload.github.com/OiNutter/crawl/legacy.tar.gz/master',
description='Python tool for finding files in a set of paths. Based on the Hike ruby gem',
long_description=doc.rst,
long_description=long_description,
author='Will McKenzie',
author_email='will@oinutter.co.uk',
packages=['crawl'],
Expand Down

0 comments on commit 616d249

Please sign in to comment.