mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-10 23:12:41 +08:00
setup long description read from README
This commit is contained in:
9
setup.py
9
setup.py
@@ -1,17 +1,22 @@
|
|||||||
#encoding: utf-8
|
#encoding: utf-8
|
||||||
|
import io
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
from setuptools import setup, find_packages
|
|
||||||
|
from setuptools import find_packages, setup
|
||||||
|
|
||||||
# parse version from ate/__init__.py
|
# parse version from ate/__init__.py
|
||||||
with open(os.path.join(os.path.dirname(__file__), 'ate', '__init__.py')) as f:
|
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)
|
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(
|
setup(
|
||||||
name='HttpRunner',
|
name='HttpRunner',
|
||||||
version=version,
|
version=version,
|
||||||
description='HTTP test runner, not just about api test and load test.',
|
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='Leo Lee',
|
||||||
author_email='mail@debugtalk.com',
|
author_email='mail@debugtalk.com',
|
||||||
url='https://github.com/debugtalk/HttpRunner',
|
url='https://github.com/debugtalk/HttpRunner',
|
||||||
|
|||||||
Reference in New Issue
Block a user