Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
Swin-Transformer-Object-Detection
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wanggh
Swin-Transformer-Object-Detection
Commits
0f33c08d
Unverified
Commit
0f33c08d
authored
4 years ago
by
Kai Chen
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
release the last version of v1.x (#2617)
parent
03e1325c
No related branches found
Branches containing commit
Tags
v1.2.0
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
mmdet/VERSION
+1
-0
1 addition, 0 deletions
mmdet/VERSION
setup.py
+7
-10
7 additions, 10 deletions
setup.py
with
8 additions
and
10 deletions
mmdet/VERSION
0 → 100644
+
1
−
0
View file @
0f33c08d
1.2.0
This diff is collapsed.
Click to expand it.
setup.py
+
7
−
10
View file @
0f33c08d
...
...
@@ -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
'
...
...
@@ -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
():
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment