From cd6da6cc0e80d6ff8c26eb4ec79726bfd3e236bc Mon Sep 17 00:00:00 2001 From: shoulinwei Date: Fri, 8 Dec 2023 22:11:46 +0800 Subject: [PATCH] fix ver --- setup.cfg | 4 ++-- setup.py | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/setup.cfg b/setup.cfg index f935ef5..79ae482 100644 --- a/setup.cfg +++ b/setup.cfg @@ -9,8 +9,8 @@ keywords = astronomy, astrophysics, cosmology, space, CSST url = https://csst-tb.bao.ac.cn/code/csst-dfs/csst-dfs-api [bumpver] -current_version = "1.0.1" -version_pattern = "MAJOR.MINOR.PATCH[PYTAGNUM]" +current_version = "1.0.1.2023-12.1" +version_pattern = "MAJOR.MINOR.PATCH-YYYY-MM.INC0" commit_message = "Release {new_version}" commit = True tag = True diff --git a/setup.py b/setup.py index a83a7d2..27d442e 100644 --- a/setup.py +++ b/setup.py @@ -36,15 +36,15 @@ def requirements(): ] def version(): - version = {} - VERSION_PATH = os.path.join(os.path.dirname(__file__), "csst_dfs_api", "version.py") - with open(VERSION_PATH, "r") as file: - exec(file.read(), version) - return version + __version = {} + version_path = os.path.join(os.path.dirname(__file__), "csst_dfs_api", "version.py") + with open(version_path, "r") as file: + exec(file.read(), __version) + return __version["__version__"] setup( name="csst_dfs_api", - version=version["__version__"], + version=version(), description="API's to access CSST Data Flow System (DFS)", long_description=open('README.md').read(), license="MIT", -- GitLab