From 2d379e211b1bab9fc0f9114fbd87591a4264ec9e Mon Sep 17 00:00:00 2001 From: debugtalk Date: Mon, 6 Nov 2017 14:49:54 +0800 Subject: [PATCH] setup long description read from README --- setup.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index fcb49740..296f7051 100644 --- a/setup.py +++ b/setup.py @@ -1,17 +1,22 @@ #encoding: utf-8 +import io import os import re -from setuptools import setup, find_packages + +from setuptools import find_packages, setup # parse version from ate/__init__.py with open(os.path.join(os.path.dirname(__file__), 'ate', '__init__.py')) as f: version = re.compile(r"__version__\s+=\s+'(.*)'", re.I).match(f.read()).group(1) +with io.open("README.md", encoding='utf-8') as f: + long_description = f.read() + setup( name='HttpRunner', version=version, description='HTTP test runner, not just about api test and load test.', - long_description="HTTP test runner, not just about api test and load test.", + long_description=long_description, author='Leo Lee', author_email='mail@debugtalk.com', url='https://github.com/debugtalk/HttpRunner',