forked from aaren/notedown
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
35 lines (30 loc) · 1.03 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
from __future__ import absolute_import
import subprocess
from setuptools import setup
try:
pandoc = subprocess.Popen(['pandoc', 'README.md', '--to', 'rst'],
stdout=subprocess.PIPE)
readme = pandoc.communicate()[0].decode()
except OSError:
with open('README.md') as f:
readme = f.read()
setup(
name="notedown",
version="1.5.0",
description="Convert markdown to IPython notebook.",
long_description=readme,
packages=['notedown'],
author="Aaron O'Leary",
author_email='[email protected]',
license='BSD 2-Clause',
url='http://github.com/aaren/notedown',
install_requires=['nbformat',
'nbconvert',
'pandoc-attributes',
'six'],
entry_points={'console_scripts': ['notedown = notedown.main:app', ]},
package_dir={'notedown': 'notedown'},
package_data={'notedown': ['templates/markdown.tpl',
'templates/markdown_outputs.tpl']},
include_package_data=True,
)