forked from rst2beamer/rst2beamer
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
executable file
·51 lines (43 loc) · 1.42 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
49
50
51
#!/usr/bin/env python
"""Installer for rst2beamer."""
import ast
from setuptools import setup
def version():
"""Return version string."""
with open('rst2beamer.py') as input_file:
for line in input_file:
if line.startswith('__version__'):
return ast.parse(line).body[0].value.s
with open('README.rst') as readme:
with open('HISTORY.rst') as history:
DESCRIPTION = readme.read() + '\n' + history.read()
setup(
name='rst2beamer3k',
version=version(),
description='A docutils writer and script for converting restructured '
'text to the Beamer presentation format',
long_description=DESCRIPTION,
classifiers=[
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: GNU General Public License (GPL)',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Text Processing :: Markup',
'Topic :: Utilities',
'Topic :: Multimedia :: Graphics :: Presentation',
],
keywords='presentation docutils rst restructured-text',
url='https://github.com/myint/rst2beamer',
license='GPL',
py_modules=['rst2beamer'],
zip_safe=False,
install_requires=[
'docutils >= 0.11',
],
entry_points={
'console_scripts': [
'rst2beamer = rst2beamer:main',
]
}
)