diff --git a/CHANGELOG.md b/CHANGELOG.md index 40c4551..a363b01 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +# 1.0.8版本 + +1. 使用zoneinfo替换pytz库 +2. 调整安装脚本setup.cfg,添加Python版本限制 + # 1.0.7版本 1. 移除反向合约支持 diff --git a/README.md b/README.md index e53d6f5..e084dc9 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@
- + @@ -17,7 +17,7 @@ ## 安装 -安装环境推荐基于3.0.0版本以上的【[**VeighNa Studio**](https://www.vnpy.com)】。 +安装环境推荐基于3.3.0版本以上的【[**VeighNa Studio**](https://www.vnpy.com)】。 直接使用pip命令: diff --git a/setup.cfg b/setup.cfg index 0f9adf1..5e81c7c 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = vnpy_ctabacktester -version = 1.0.7 +version = 1.0.8 url = https://www.vnpy.com license = MIT author = Xiaoyou Chen @@ -30,6 +30,7 @@ classifiers = [options] packages = find: zip_safe = False +python_requires = >=3.7 install_requires = vnpy_ctastrategy diff --git a/vnpy_ctabacktester/ui/widget.py b/vnpy_ctabacktester/ui/widget.py index d681a20..07bde3d 100644 --- a/vnpy_ctabacktester/ui/widget.py +++ b/vnpy_ctabacktester/ui/widget.py @@ -438,7 +438,7 @@ def start_downloading(self) -> None: start_date.month(), start_date.day(), ) - start: datetime = DB_TZ.localize(start) + start: datetime = start.replace(tzinfo=DB_TZ) end: datetime = datetime( end_date.year(), @@ -448,7 +448,7 @@ def start_downloading(self) -> None: 59, 59, ) - end: datetime = DB_TZ.localize(end) + end: datetime = end.replace(tzinfo=DB_TZ) self.backtester_engine.start_downloading( vt_symbol,