Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
flame-clmc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
flame
flame-clmc
Commits
20d8f078
Commit
20d8f078
authored
7 years ago
by
MJB
Browse files
Options
Downloads
Patches
Plain Diff
adding commit count
parent
9ab8967a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
setup.py
+1
-15
1 addition, 15 deletions
setup.py
with
1 addition
and
15 deletions
setup.py
+
1
−
15
View file @
20d8f078
import
os
import
subprocess
import
time
from
setuptools
import
setup
,
find_packages
def
read
(
fname
):
return
open
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
fname
)).
read
()
def
get_git_commit
():
(
out
,
err
,
return_code
)
=
run_command
(
'
git rev-list --count integration
'
)
print
(
"
commit {0}
"
.
format
(
return_code
))
exit
return
out
def
run_command
(
cmd
):
proc
=
subprocess
.
Popen
([
cmd
],
stdout
=
subprocess
.
PIPE
,
shell
=
True
)
out
,
err
=
proc
.
communicate
()
return_code
=
proc
.
returncode
return
out
,
err
,
return_code
setup
(
name
=
"
clmctest
"
,
version
=
get_
git
_
commit
(
),
version
=
read
(
'
.build-config/
git
-
commit
-version
'
),
author
=
"
Michael Boniface
"
,
author_email
=
"
mjb@it-innovation.soton.ac.uk
"
,
description
=
"
FLAME CLMC Testing Module
"
,
...
...
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