print PyUnitReport version

This commit is contained in:
httprunner
2017-11-06 19:38:41 +08:00
parent 23e23c9697
commit 8a16a7f123
2 changed files with 8 additions and 11 deletions

View File

@@ -1,20 +1,15 @@
#encoding: utf-8
import io
import os
import re
from ate import __version__
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,
version=__version__,
description='HTTP test runner, not just about api test and load test.',
long_description=long_description,
author='Leo Lee',