diff --git a/gopay/utils.py b/gopay/utils.py index fc6ac76..8d62a71 100644 --- a/gopay/utils.py +++ b/gopay/utils.py @@ -1,11 +1,2 @@ -from pathlib import Path - -import tomli - -def get_project_version(): - pyproject_path = Path(__file__).resolve().parent.parent / 'pyproject.toml' - with open(pyproject_path, 'rb') as file: - pyproject_data = tomli.load(file) - return pyproject_data['tool']['poetry']['version'] - -DEFAULT_USER_AGENT = "GoPay Python " + get_project_version() \ No newline at end of file +VERSION = "2.2.3" +DEFAULT_USER_AGENT = "GoPay Python " + VERSION diff --git a/pyproject.toml b/pyproject.toml index 72a1baf..9e991c7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,7 +14,7 @@ name = "gopay" packages = [{include = "gopay"}] readme = "README.md" repository = "https://github.com/gopaycommunity/gopay-python-api" -version = "2.2.2" +version = "2.2.3" [tool.poetry.dependencies] deprecated = "^1.2.14"