Skip to content

Commit

Permalink
Update generator to fix package version retrieval
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-balitskyi committed Apr 3, 2024
1 parent 2311e96 commit dfae493
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"format": "poetry run black ."
},
"devDependencies": {
"@seamapi/nextlove-sdk-generator": "^1.7.4",
"@seamapi/nextlove-sdk-generator": "^1.7.5",
"@seamapi/types": "^1.149.0",
"prettier": "^3.2.5"
}
Expand Down
4 changes: 2 additions & 2 deletions seam/seam.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from .routes import Routes
import requests
import pkg_resources
from importlib.metadata import version
from typing import Optional, cast
from .types import AbstractSeam, SeamApiException

Expand Down Expand Up @@ -78,7 +78,7 @@ def make_request(self, method: str, path: str, **kwargs):
"""

url = self.api_url + path
sdk_version = pkg_resources.get_distribution("seam").version
sdk_version = version("seam")
headers = {
"Authorization": "Bearer " + self.api_key,
"Content-Type": "application/json",
Expand Down

0 comments on commit dfae493

Please sign in to comment.