Skip to content

Commit

Permalink
auto release
Browse files Browse the repository at this point in the history
  • Loading branch information
mouday committed Jul 9, 2023
1 parent a471336 commit 3c86628
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
- ssl证书申请
- admin拥有所有权限

- v1.4.29(2023-07-08)
- 支持Python版本:Python >= 2.7 或者 Python >= 3.4

- v1.4.28(2023-07-08)
- 新增域名后缀的信息查询: ws, cm, by [issues#39](https://github.com/mouday/domain-admin/issues/39)

Expand Down
2 changes: 1 addition & 1 deletion domain_admin/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
"""
from __future__ import print_function, unicode_literals, absolute_import, division

VERSION = '1.4.28'
VERSION = '%s'
5 changes: 3 additions & 2 deletions version-cli/auto_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@
from packaging import version

# 项目根路径
ROOT_DIRNAME = os.path.dirname(os.path.dirname(__file__))
ROOT_DIRNAME = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
print("{}/*/version.py".format(ROOT_DIRNAME))

# 版本文件路径
VERSION_FILE = glob.glob("%s/*/version.py".format(ROOT_DIRNAME))[0]
VERSION_FILE = glob.glob("{}/*/version.py".format(ROOT_DIRNAME))[0]

# 版本的匹配正则
VERSION_REGEX = "VERSION = '(?P<version>\d+\.\d+\.\d+)'"
Expand Down

0 comments on commit 3c86628

Please sign in to comment.