Skip to content

Commit

Permalink
chore: change runtime python version to 3.8
Browse files Browse the repository at this point in the history
Stop supporting Python 3.7
  • Loading branch information
chilango74 committed Aug 10, 2022
1 parent 5082b3c commit 25a7815
Show file tree
Hide file tree
Showing 5 changed files with 74 additions and 148 deletions.
5 changes: 4 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import okama as ok
from importlib import metadata

print(ok.__version__)
print(metadata.version('okama'))

# print(ok.__version__)
4 changes: 3 additions & 1 deletion okama/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
- Matplotlib visualization scripts for the Efficient Frontier, Transition map and assets risk / return performance
"""
from importlib.metadata import version

from okama.asset import Asset
from okama.asset_list import AssetList
from okama.portfolio import Portfolio
Expand All @@ -37,4 +39,4 @@
from okama.common.helpers.helpers import Float, Frame, Rebalance, Date
import okama.settings

__version__ = "1.2.2"
__version__ = version("okama")
Loading

0 comments on commit 25a7815

Please sign in to comment.