Files
markdown-server/setup.py
T
ohbarye 993c7cbad5 released 0.1.1.
enabled to use conversion function alone.
2015-05-04 10:24:29 +09:00

45 lines
1.2 KiB
Python

import os
from setuptools import setup, find_packages
def read_file(filename):
basepath = os.path.dirname(os.path.dirname(__file__))
filepath = os.path.join(basepath, filename)
if os.path.exists(filepath):
return open(filepath).read()
else:
return ''
setup(
name = 'markdown-server',
version = '0.1.1',
description = 'A simple markdown server.',
long_description = read_file('README.rst'),
author = 'Masato Ohba',
author_email = 'over.rye@gmail.com',
url = 'https://github.com/ohbarye/markdown-server',
classifiers = [
'Topic :: Utilities',
'Development Status :: 4 - Beta',
'Framework :: Bottle',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
],
packages = find_packages(),
include_package_data = True,
keywords = ['web', 'markdown'],
license = 'MIT License',
install_requires = [
'bottle',
'Markdown',
'Pygments',
'py-gfm',
],
entry_points = {
'console_scripts': [
'mdsvr = markdownserver:main',
'convert = markdownserver.markdown_converter:main'
]
},
)