forked from aaren/notedown
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
40 lines (35 loc) · 1.23 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
36
37
38
39
40
from __future__ import absolute_import
import subprocess
from setuptools import setup
try:
pandoc = subprocess.Popen(['pandoc', 'README.md', '--to', 'rst'],
stdout=subprocess.PIPE)
readme = str(pandoc.communicate()[0])
except OSError:
with open('README.md') as f:
readme = f.read()
setup(
name="notedown",
version="1.4.5",
description="Convert markdown to IPython notebook.",
long_description=readme,
packages=['notedown'],
author="Aaron O'Leary",
author_email='dev@aaren.me',
license='BSD 2-Clause',
url='http://github.com/aaren/notedown',
# conda gets confused by ipython[nbconvert] so be explicit..
install_requires=['ipython >= 3.0, < 4.0',
'jinja2',
'mistune',
'pygments',
'jsonschema',
'markupsafe',
'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,
)