Skip to content

Commit

Permalink
fix: get project version and description.
Browse files Browse the repository at this point in the history
this will be improved after poetry fixed issue python-poetry/poetry#144
  • Loading branch information
TanakitIntR committed Aug 20, 2031
1 parent 2339833 commit 1851dcd
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions httprunner/__init__.py
Original file line number Diff line number Diff line change
@@ -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__"]

0 comments on commit 1851dcd

Please sign in to comment.