mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-13 04:30:41 +08:00
fix: get project version and description.
this will be improved after poetry fixed issue https://github.com/sdispater/poetry/issues/144
This commit is contained in:
@@ -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__"]
|
||||
|
||||
Reference in New Issue
Block a user