Skip to content
Snippets Groups Projects
Unverified Commit 0f33c08d authored by Kai Chen's avatar Kai Chen Committed by GitHub
Browse files

release the last version of v1.x (#2617)

parent 03e1325c
No related branches found
Tags v1.2.0
No related merge requests found
1.2.0
...@@ -14,15 +14,6 @@ def readme(): ...@@ -14,15 +14,6 @@ def readme():
return content return content
MAJOR = 1
MINOR = 1
PATCH = 0
SUFFIX = ''
if PATCH != '':
SHORT_VERSION = '{}.{}.{}{}'.format(MAJOR, MINOR, PATCH, SUFFIX)
else:
SHORT_VERSION = '{}.{}{}'.format(MAJOR, MINOR, SUFFIX)
version_file = 'mmdet/version.py' version_file = 'mmdet/version.py'
...@@ -73,12 +64,18 @@ def write_version_py(): ...@@ -73,12 +64,18 @@ def write_version_py():
__version__ = '{}' __version__ = '{}'
short_version = '{}' short_version = '{}'
version_info = ({})
""" """
sha = get_hash() sha = get_hash()
with open('mmdet/VERSION', 'r') as f:
SHORT_VERSION = f.read().strip()
VERSION_INFO = ', '.join(SHORT_VERSION.split('.'))
VERSION = SHORT_VERSION + '+' + sha VERSION = SHORT_VERSION + '+' + sha
version_file_str = content.format(time.asctime(), VERSION, SHORT_VERSION,
VERSION_INFO)
with open(version_file, 'w') as f: with open(version_file, 'w') as f:
f.write(content.format(time.asctime(), VERSION, SHORT_VERSION)) f.write(version_file_str)
def get_version(): def get_version():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment