-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
executable file
·48 lines (36 loc) · 1.36 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
41
42
43
44
45
46
47
48
#!/usr/bin/env python
from setuptools import setup, find_packages
long_desc = """
Usage
-----
::
rst2db <filename> [-e root_element] [-o output_file] [-t template_file]
or::
rst2md <filename>
Only the filename to process is required. All other settings are optional.
Settings:
-e root_element set the root element of the resulting docbook file. If this
is not specified, then 'section' will be used.
-o output_file set the output filename to write. If this is not specified,
then output will be sent to stdout.
-t template_file set a template file to use to dress the output. You must
have Jinja2 installed to use this feature.
Use {{data.root_element}} and {{data.contents}} to
represent the output of this script in your template.
"""
setup(name='rst2db',
description="""
A reStructuredText to MarkDown converter using Python's docutils.""",
version='1.1',
install_requires=['docutils>=0.12', 'lxml>=2.3'],
packages=find_packages(),
entry_points={
'console_scripts': [
'rst2db = abstrys.cmd_rst2db:run',
'rst2md = abstrys.cmd_rst2md:run',
],
},
author='Eron Hennessey',
author_email='[email protected]',
url='https://github.com/Abstrys/rst2db',
)