forked from tomduck/pandoc-comments
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
41 lines (33 loc) · 1.21 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
"""setup.py - install script for the pandoc-comments filter."""
import re
import io
from setuptools import setup
DESCRIPTION = """A pandoc filter for block comments in markdown documents."""
# From https://stackoverflow.com/a/39671214
__version__ = re.search(
r'__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
io.open('pandoc_comments.py', encoding='utf_8_sig').read()
).group(1)
setup(
name='pandoc-comments',
version=__version__,
author='Thomas J. Duck',
author_email='[email protected]',
description=DESCRIPTION,
long_description=DESCRIPTION,
license='GPL',
keywords='pandoc comments filter',
url='https://github.com/tomduck/pandoc-comments',
download_url='https://github.com/tomduck/pandoc-comments/tarball/' + \
__version__,
install_requires=['pandocfilters>=1.4.2,<2'],
py_modules=['pandoc_comments'],
entry_points={'console_scripts':['pandoc-comments = pandoc_comments:main']},
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: End Users/Desktop',
'Environment :: Console',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Programming Language :: Python'
],
)