From 70b1c51fe8d7cd93208df93935031063d2a6a114 Mon Sep 17 00:00:00 2001 From: debugtalk Date: Thu, 18 Jul 2019 16:01:28 +0800 Subject: [PATCH] fix: get project version and description. this will be improved after poetry fixed issue https://github.com/sdispater/poetry/issues/144 --- httprunner/__init__.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/httprunner/__init__.py b/httprunner/__init__.py index 1516a0e9..8bf642e8 100644 --- a/httprunner/__init__.py +++ b/httprunner/__init__.py @@ -1,9 +1,4 @@ -import configparser -import json - -cf_parser = configparser.ConfigParser(allow_no_value=True) -cf_parser.read("pyproject.toml") -__version__ = json.loads(cf_parser["tool.poetry"]["version"]) -__description__ = json.loads(cf_parser["tool.poetry"]["description"]) +__version__ = "2.2.4" +__description__ = "One-stop solution for HTTP(S) testing." __all__ = ["__version__", "__description__"]