Skip to content

Commit 805195a

Browse files
committed
feat: v1.2.2 will be the last version of okama supporting legacy Python 3.7
1 parent 63a7b8b commit 805195a

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

main.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
import okama as ok
22

3-
x = ok.AssetList(["SPY.US", "BND.US", "GLD.US"], inflation=False)
4-
print(x.assets_last_dates)
3+
print(ok.__version__)

okama/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919
- Matplotlib visualization scripts for the Efficient Frontier, Transition map and assets risk / return performance
2020
2121
"""
22-
from importlib_metadata import version
23-
2422
from okama.asset import Asset
2523
from okama.asset_list import AssetList
2624
from okama.portfolio import Portfolio
@@ -39,4 +37,4 @@
3937
from okama.common.helpers.helpers import Float, Frame, Rebalance, Date
4038
import okama.settings
4139

42-
__version__ = version("okama")
40+
__version__ = "1.2.2"

pyproject.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "okama"
3-
version = "1.2.1"
3+
version = "1.2.2"
44
description = "Investment portfolio analyzing & optimization tools"
55
authors = ["Sergey Kikevich <chilango74@gmail.com>"]
66
license = "MIT"
@@ -31,8 +31,6 @@ pandas = ">=1.0.0"
3131
scipy = ">=0.14.0"
3232
matplotlib = "^3.5.1"
3333
requests = "^2.27.1"
34-
# required for python 3.7 only for 3.8+ can use `from importlib.metadata import version`
35-
importlib-metadata = "^4.11.1"
3634
joblib = "^1.1.0"
3735

3836
[tool.poetry.dev-dependencies]

0 commit comments

Comments
 (0)