diff --git a/README.md b/README.md index b385e32..32fcd62 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@

- + @@ -17,7 +17,7 @@ ## 安装 -安装需要基于2.4.0版本以上的[VN Studio](https://www.vnpy.com)。 +安装需要基于2.6.0版本以上的[VN Studio](https://www.vnpy.com)。 直接使用pip命令: diff --git a/setup.cfg b/setup.cfg index a96065e..b176663 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = vnpy_ctabacktester -version = 1.0.2 +version = 1.0.3 url = https://www.vnpy.com license = MIT author = Xiaoyou Chen diff --git a/vnpy_ctabacktester/__init__.py b/vnpy_ctabacktester/__init__.py index 089747e..238d758 100644 --- a/vnpy_ctabacktester/__init__.py +++ b/vnpy_ctabacktester/__init__.py @@ -23,11 +23,18 @@ from pathlib import Path +import importlib_metadata from vnpy.trader.app import BaseApp from .engine import BacktesterEngine, APP_NAME +try: + __version__ = importlib_metadata.version("vnpy_ctabacktester") +except importlib_metadata.PackageNotFoundError: + __version__ = "dev" + + class CtaBacktesterApp(BaseApp): """"""