Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
MMCV
Commits
c84b72c4
Commit
c84b72c4
authored
Jun 05, 2023
by
xiabo
Browse files
适配版本号
parent
047839b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
setup.py
setup.py
+2
-2
No files found.
setup.py
View file @
c84b72c4
...
@@ -83,7 +83,7 @@ def get_version_add(sha: Optional[str] = None) -> str:
...
@@ -83,7 +83,7 @@ def get_version_add(sha: Optional[str] = None) -> str:
lines
=
[]
lines
=
[]
with
open
(
add_version_path
,
'r'
,
encoding
=
'utf-8'
)
as
file
:
with
open
(
add_version_path
,
'r'
,
encoding
=
'utf-8'
)
as
file
:
lines
=
file
.
readlines
()
lines
=
file
.
readlines
()
lines
[
2
]
=
"__version__
=
'2.0.0+{}'
\n
"
.
format
(
version
)
lines
[
2
]
=
"__
dcu_
version__
=
'2.0.0+{}'
\n
"
.
format
(
version
)
with
open
(
add_version_path
,
encoding
=
"utf-8"
,
mode
=
"w"
)
as
file
:
with
open
(
add_version_path
,
encoding
=
"utf-8"
,
mode
=
"w"
)
as
file
:
file
.
writelines
(
lines
)
file
.
writelines
(
lines
)
file
.
close
()
file
.
close
()
...
@@ -94,7 +94,7 @@ def get_version():
...
@@ -94,7 +94,7 @@ def get_version():
version_file
=
'mmcv/version.py'
version_file
=
'mmcv/version.py'
with
open
(
version_file
,
encoding
=
'utf-8'
)
as
f
:
with
open
(
version_file
,
encoding
=
'utf-8'
)
as
f
:
exec
(
compile
(
f
.
read
(),
version_file
,
'exec'
))
exec
(
compile
(
f
.
read
(),
version_file
,
'exec'
))
return
locals
()[
'__version__'
]
return
locals
()[
'__
dcu_
version__'
]
def
parse_requirements
(
fname
=
'requirements/runtime.txt'
,
with_version
=
True
):
def
parse_requirements
(
fname
=
'requirements/runtime.txt'
,
with_version
=
True
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment