Skip to content

Commit

Permalink
Merge pull request #39 from gopaycommunity/feature/pyproject-not-foun…
Browse files Browse the repository at this point in the history
…d-fix

Fixed missing pyproject.toml file
  • Loading branch information
pmaryska authored Oct 4, 2024
2 parents ff74f70 + 5a3297e commit f29255a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
13 changes: 2 additions & 11 deletions gopay/utils.py
Original file line number Diff line number Diff line change
@@ -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()
VERSION = "2.2.3"
DEFAULT_USER_AGENT = "GoPay Python " + VERSION
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit f29255a

Please sign in to comment.