Skip to content

Commit

Permalink
setup.py: pandoc README conv & update for PyPI listing
Browse files Browse the repository at this point in the history
  • Loading branch information
pklaus committed Dec 10, 2016
1 parent 9346323 commit 87537cb
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,22 @@
except ImportError:
from distutils.core import setup

try:
import pypandoc
LDESC = open('README.md', 'r').read()
LDESC = pypandoc.convert(LDESC, 'rst', format='md')
except (ImportError, IOError, RuntimeError) as e:
print("Could not create long description:")
print(str(e))
LDESC = ''

setup(name='brother_ql',
version = '0.6-dev',
description = 'Python package to talk to Brother QL label printers',
long_description = '',
long_description = LDESC,
author = 'Philipp Klaus',
author_email = 'philipp.l.klaus@web.de',
url = '',
url = 'https://github.com/pklaus/brother_ql',
license = 'GPL',
packages = ['brother_ql',
'brother_ql.backends'],
Expand Down

0 comments on commit 87537cb

Please sign in to comment.