Skip to content

Commit

Permalink
[Mod] 优化版本号获取逻辑,更新版本号到2.0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
vnpy committed Dec 8, 2021
1 parent 13846b0 commit 8ce82a0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion 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-2.0.1.0-blueviolet.svg"/>
<img src ="https://img.shields.io/badge/version-2.0.1.1-blueviolet.svg"/>
<img src ="https://img.shields.io/badge/platform-windows-yellow.svg"/>
<img src ="https://img.shields.io/badge/python-3.7-blue.svg" />
<img src ="https://img.shields.io/github/license/vnpy/vnpy.svg?color=orange"/>
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = vnpy_ost
version = 2.0.1.0
version = 2.0.1.1
url = https://www.vnpy.com
license = MIT
author = Xiaoyou Chen
Expand Down
13 changes: 6 additions & 7 deletions vnpy_ost/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,12 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

try:
from .gateway import OstGateway
except ImportError:
pass


import importlib_metadata

from .gateway import OstGateway

__version__ = importlib_metadata.version("vnpy_ost")

try:
__version__ = importlib_metadata.version("vnpy_ost")
except importlib_metadata.PackageNotFoundError:
__version__ = "dev"

0 comments on commit 8ce82a0

Please sign in to comment.