Skip to content

Commit

Permalink
bump version, strengthen rst->rmd conversion
Browse files Browse the repository at this point in the history
the bane.
  • Loading branch information
fitnr committed Feb 11, 2015
1 parent fb8ee0f commit 3aad6fb
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
from setuptools import setup

try:
from pypandoc import convert
read_md = lambda f: convert(f, 'rst')
except ImportError:
print("pypandoc module not found, could not convert Markdown to RST")
read_md = lambda f: open(f, 'r').read()
def read_md(f):
try:
try:
from pypandoc import convert
return convert(f, 'rst')

except ImportError:
print("pypandoc not found, could not convert Markdown to RST")
return open(f, 'r').read()

except (IOError, RuntimeError):
print("Could not read readme.md")
return ''

setup(
name='buoyant',

version='0.2.2',
version='0.2.3',

description="Wrapper for the NOAA National Data Buoy Center",

Expand Down

0 comments on commit 3aad6fb

Please sign in to comment.