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
vision
Commits
ca6fdd6d
Unverified
Commit
ca6fdd6d
authored
Dec 22, 2020
by
Vasilis Vryniotis
Committed by
GitHub
Dec 22, 2020
Browse files
Move version definition from setup.py to version.txt (#3202)
parent
af5cb00c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
setup.py
setup.py
+5
-3
version.txt
version.txt
+1
-0
No files found.
setup.py
View file @
ca6fdd6d
...
...
@@ -29,12 +29,14 @@ def get_dist(pkgname):
return
None
version
=
'0.9.0a0'
cwd
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))
version_txt
=
os
.
path
.
join
(
cwd
,
'version.txt'
)
with
open
(
version_txt
,
'r'
)
as
f
:
version
=
f
.
readline
().
strip
()
sha
=
'Unknown'
package_name
=
'torchvision'
cwd
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))
try
:
sha
=
subprocess
.
check_output
([
'git'
,
'rev-parse'
,
'HEAD'
],
cwd
=
cwd
).
decode
(
'ascii'
).
strip
()
except
Exception
:
...
...
version.txt
0 → 100644
View file @
ca6fdd6d
0.9.0a0
\ No newline at end of file
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