Add support for python3

This commit is contained in:
Victor Cabello
2019-05-07 00:27:25 -05:00
parent db22fbfa34
commit 70ece88089
4 changed files with 92 additions and 71 deletions
+27 -29
View File
@@ -1,44 +1,42 @@
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 ''
return ""
setup(
name = 'markdown-server',
version = '0.1.3',
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',
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'
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",
]
},
)