Skip to content

Commit 2eb05c3

Browse files
committed
include version
1 parent 7467291 commit 2eb05c3

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

absbox/client.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import json, urllib3, getpass, enum, os, pickle
1+
import json, getpass, enum, os, pickle
22
from importlib.metadata import version
33
from json.decoder import JSONDecodeError
44
from dataclasses import dataclass
@@ -23,7 +23,6 @@
2323
from .local.interface import mkTag, readAeson
2424

2525
VERSION_NUM = version("absbox")
26-
urllib3.disable_warnings()
2726
console = Console()
2827

2928
__all__ = ["API", "Endpoints", "RunReqType", "RunResp" , "EnginePath"]

absbox/tests/regression/test_main.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ def closeTo(a,b,r=2):
1818
def filterTxn(rs, f, rg):
1919
return [ r for r in rs if re.match(rg, r[f])]
2020

21+
def listCloseTo(a,b,r=2):
22+
assert len(a) == len(b), f"Length not match {len(a)} {len(b)}"
23+
assert all([ closeTo(x,y,r) for x,y in zip(a,b)]), f"List not match {a},{b}"
2124

2225
@pytest.fixture
2326
def setup_api():
@@ -261,4 +264,4 @@ def test_pac_03(setup_api):
261264
def test_pac_04(setup_api):
262265
r = setup_api.run(pac04 , read=True , runAssump = [])
263266
groupBals = readBondsCf(r['bonds']).xs('balance',axis=1,level=2)[[("A","A1"),("A","A2")]].sum(axis=1).loc["2021-07-26":"2021-12-20"].to_list()
264-
assert groupBals == [1050.0, 980.0, 915.0, 880.0, 850.0, 773.73]
267+
assert groupBals == [1050.0, 980.0, 915.0, 880.0, 850.0, 773.73], "Got"+str(groupBals)

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ dependencies = [
3939
"xlsxwriter"
4040
]
4141

42+
[tool.setuptools.dynamic]
43+
version = {attr = "absbox.__version__"}
44+
4245
keywords = ["cashflow", "abs", "mbs", "cashflow model", "rmbs" ,"clo", "cashflow engine","structuring", "srt"]
4346

4447
[tool.setuptools.dynamic]

0 commit comments

Comments
 (0)