43 lines
1.2 KiB
Python
43 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.4",
|
|
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",
|
|
"Programming Language :: Python :: 3",
|
|
],
|
|
packages=find_packages(),
|
|
include_package_data=True,
|
|
keywords=["web", "markdown"],
|
|
license="MIT License",
|
|
install_requires=["bottle", "Markdown==2.6.11", "Pygments", "py-gfm"],
|
|
entry_points={
|
|
"console_scripts": [
|
|
"markdownserver=markdownserver:main",
|
|
"convert=markdownserver.markdown_converter:main",
|
|
]
|
|
},
|
|
)
|