From 5a3297edc27927d58b1d0b7764b21ec1da692125 Mon Sep 17 00:00:00 2001 From: pmaryska Date: Fri, 4 Oct 2024 10:22:41 +0200 Subject: [PATCH] Fixed missing pyproject.toml file --- gopay/utils.py | 13 ++----------- pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 12 deletions(-) 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"