1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-07-11 23:06:58 +08:00

solve VERSION.txt bug (#732)

* solve VERSION.txt bug

* back to main version

* change setup and init to follow pypi type

* add read function

* solve black format

Co-authored-by: DefangCui <170007807@pku.edu.cn>
This commit is contained in:
Arthur Cui
2021-12-12 12:02:20 +08:00
committed by GitHub
parent 5e69d089c0
commit 125922b77a
2 changed files with 17 additions and 7 deletions

View File

@@ -2,8 +2,7 @@
# Licensed under the MIT License.
from pathlib import Path
_version_path = Path(__file__).absolute().parent / "VERSION.txt" # This file is copyed from setup.py
__version__ = _version_path.read_text(encoding="utf-8").strip()
__version__ = "0.8.0.99"
__version__bak = __version__ # This version is backup for QlibConfig.reset_qlib_version
import os
from typing import Union