Skip to content

Commit

Permalink
release the last version of v1.x (#2617)
Browse files Browse the repository at this point in the history
  • Loading branch information
hellock authored May 5, 2020
1 parent 03e1325 commit 0f33c08
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
1 change: 1 addition & 0 deletions mmdet/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.2.0
17 changes: 7 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,6 @@ def readme():
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'


Expand Down Expand Up @@ -73,12 +64,18 @@ def write_version_py():
__version__ = '{}'
short_version = '{}'
version_info = ({})
"""
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_file_str = content.format(time.asctime(), VERSION, SHORT_VERSION,
VERSION_INFO)
with open(version_file, 'w') as f:
f.write(content.format(time.asctime(), VERSION, SHORT_VERSION))
f.write(version_file_str)


def get_version():
Expand Down

0 comments on commit 0f33c08

Please sign in to comment.