Skip to content

Commit f29255a

Browse files
authored
Merge pull request #39 from gopaycommunity/feature/pyproject-not-found-fix
Fixed missing pyproject.toml file
2 parents ff74f70 + 5a3297e commit f29255a

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

gopay/utils.py

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -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()
1+
VERSION = "2.2.3"
2+
DEFAULT_USER_AGENT = "GoPay Python " + VERSION

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ name = "gopay"
1414
packages = [{include = "gopay"}]
1515
readme = "README.md"
1616
repository = "https://github.com/gopaycommunity/gopay-python-api"
17-
version = "2.2.2"
17+
version = "2.2.3"
1818

1919
[tool.poetry.dependencies]
2020
deprecated = "^1.2.14"

0 commit comments

Comments
 (0)