mirror of
https://github.com/huashengdun/webssh.git
synced 2026-05-06 01:17:15 +00:00
Added README.rst
This commit is contained in:
14
setup.py
14
setup.py
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user