2 parents ff74f70 + 5a3297e commit f29255aCopy full SHA for f29255a
2 files changed
gopay/utils.py
@@ -1,11 +1,2 @@
1
-from pathlib import Path
2
-
3
-import tomli
4
5
-def get_project_version():
6
- pyproject_path = Path(__file__).resolve().parent.parent / 'pyproject.toml'
7
- with open(pyproject_path, 'rb') as file:
8
- pyproject_data = tomli.load(file)
9
- return pyproject_data['tool']['poetry']['version']
10
11
-DEFAULT_USER_AGENT = "GoPay Python " + get_project_version()
+VERSION = "2.2.3"
+DEFAULT_USER_AGENT = "GoPay Python " + VERSION
pyproject.toml
@@ -14,7 +14,7 @@ name = "gopay"
14
packages = [{include = "gopay"}]
15
readme = "README.md"
16
repository = "https://github.com/gopaycommunity/gopay-python-api"
17
-version = "2.2.2"
+version = "2.2.3"
18
19
[tool.poetry.dependencies]
20
deprecated = "^1.2.14"
0 commit comments