-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
51 lines (45 loc) · 1.59 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
#!/usr/bin/env python
import os
from setuptools import setup
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def get_version(filename):
"""Extract __version__ from file by parsing it."""
with open(filename) as fp:
for line in fp:
if line.startswith('__version__'):
exec(line,globals())
return __version__
setup(
name='mdview',
version=get_version('mdview/__init__.py'),
description='Markdown viewer',
url='https://github.com/guyru/mdview',
author='Guy Rutenberg',
author_email='[email protected]',
license = 'GPLv3+',
packages=['mdview'],
entry_points = {
'console_scripts': [
'mdview = mdview:run',
]
},
long_description=read('README.md'),
long_description_content_type="text/markdown",
package_data={'mdview': ['static/*.js', 'static/*.css', 'templates/*.html']},
install_requires = ['markdown', 'flask', 'Pygments'],
setup_requires = ['wheel'],
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'Intended Audience :: End Users/Desktop',
'License :: OSI Approved :: GNU General Public License (GPL)',
'Operating System :: OS Independent',
'Framework :: Flask',
],
)