Skip to content

Commit

Permalink
Merge pull request #17 from noranhe/main
Browse files Browse the repository at this point in the history
[Mod] replace pytz + 更新版本号到1.0.8
  • Loading branch information
vnpy authored Aug 9, 2022
2 parents eeec57d + 0d28e2a commit a49fe56
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 1.0.8版本

1. 使用zoneinfo替换pytz库
2. 调整安装脚本setup.cfg,添加Python版本限制

# 1.0.7版本

1. 移除反向合约支持
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</p>

<p align="center">
<img src ="https://img.shields.io/badge/version-1.0.7-blueviolet.svg"/>
<img src ="https://img.shields.io/badge/version-1.0.8-blueviolet.svg"/>
<img src ="https://img.shields.io/badge/platform-windows|linux|macos-yellow.svg"/>
<img src ="https://img.shields.io/badge/python-3.7|3.8|3.9|3.10-blue.svg" />
<img src ="https://img.shields.io/github/license/vnpy/vnpy.svg?color=orange"/>
Expand All @@ -17,7 +17,7 @@

## 安装

安装环境推荐基于3.0.0版本以上的【[**VeighNa Studio**](https://www.vnpy.com)】。
安装环境推荐基于3.3.0版本以上的【[**VeighNa Studio**](https://www.vnpy.com)】。

直接使用pip命令:

Expand Down
3 changes: 2 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -30,6 +30,7 @@ classifiers =
[options]
packages = find:
zip_safe = False
python_requires = >=3.7
install_requires =
vnpy_ctastrategy

Expand Down
4 changes: 2 additions & 2 deletions vnpy_ctabacktester/ui/widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand All @@ -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,
Expand Down

0 comments on commit a49fe56

Please sign in to comment.