Added README.rst

This commit is contained in:
Sheng
2018-04-27 01:11:16 +08:00
parent 53762f6035
commit 7e238b6ffb
3 changed files with 93 additions and 14 deletions

View File

@@ -3,17 +3,8 @@ from setuptools import setup
from webssh._version import __version__ as version
starts = [u'### Preview', u'![Login]', u'![Terminal]']
def starts_with(line):
for start in starts:
if line.startswith(start):
return True
with codecs.open('README.md', encoding='utf-8') as f:
long_description = ''.join(line for line in f if not starts_with(line))
with codecs.open('README.rst', encoding='utf-8') as f:
long_description = f.read()
setup(
@@ -21,7 +12,6 @@ setup(
version=version,
description='Web based ssh client',
long_description=long_description,
long_description_content_type='text/markdown',
author='Shengdun Hua',
author_email='webmaster0115@gmail.com',
url='https://github.com/huashengdun/webssh',