Skip to content

Commit 147a27c

Browse files
committed
Use version from __init__
1 parent c6a5864 commit 147a27c

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

leakix/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@
33
from leakix.plugin import *
44
from leakix.query import *
55
from leakix.response import *
6+
7+
__VERSION__ = "0.1.2"

leakix/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
from leakix.query import *
1111
from leakix.plugin import *
1212
from leakix.field import *
13+
from leakix import __VERSION__
1314

1415

1516
class Scope(Enum):
@@ -24,13 +25,12 @@ class HostResult(Model):
2425

2526
class Client:
2627
BASE_URL = "https://leakix.net"
27-
VERSION = "0.1.0"
2828

2929
def __init__(self, api_key: Optional[str] = None):
3030
self.api_key = api_key
3131
self.headers = {
3232
"Accept": "application/json",
33-
"User-agent": "LeakIX-client-python/%s" % self.VERSION,
33+
"User-agent": "leakix-client-python/%s" % __VERSION__,
3434
}
3535
if api_key:
3636
self.headers["api-key"] = api_key

0 commit comments

Comments
 (0)