mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-05 23:51:25 +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
|
__version__ = "2.2.4"
|
||||||
import json
|
__description__ = "One-stop solution for HTTP(S) testing."
|
||||||
|
|
||||||
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"])
|
|
||||||
|
|
||||||
__all__ = ["__version__", "__description__"]
|
__all__ = ["__version__", "__description__"]
|
||||||
|
|||||||
Reference in New Issue
Block a user