Skip to content

Commit b086b1d

Browse files
committed
Merge pull request #5 from klehman-rally/apikey
updated build_dist.py, rallyfire.py and generated the 1.1.0 distribution...
2 parents 854a2d2 + 6213aec commit b086b1d

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

build_dist.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
'builddefs.py',
3535
'creattach.py',
3636
'get_attachments.py',
37-
'add_tcrs.py'
37+
'add_tcrs.py',
38+
'defrevs.py'
3839
]
3940
DOC_FILES = ['doc/Makefile',
4041
'doc/source/conf.py',
@@ -150,4 +151,3 @@ def make_zipfile(pkg_name, pkg_version, base_files, example_files, doc_files):
150151
if __name__ == "__main__":
151152
main(sys.argv[1:])
152153

153-

dists/pyral-1.1.0.tar.gz

173 KB
Binary file not shown.

dists/pyral-1.1.0.zip

204 KB
Binary file not shown.

rallyfire.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
#################################################################################################
44
#
5-
# rallyfire - Examplar script to test the basic connectivity to a Rally server
5+
# rallyfire - Exemplar script to test the basic connectivity to a Rally server
66
# and obtain basic workspace and project information
77
#
88
#################################################################################################
99

1010
import sys
1111

12-
from pyral import Rally, rallySettings
12+
from pyral import Rally, rallyWorkset
1313

1414
#################################################################################################
1515

@@ -20,19 +20,23 @@
2020
def main(args):
2121
options = [opt for opt in args if opt.startswith('--')]
2222
args = [arg for arg in args if arg not in options]
23-
server, user, password, workspace, project = rallySettings(options)
23+
server, user, password, apikey, workspace, project = rallyWorkset(options)
2424
print " ".join(["|%s|" % item for item in [server, user, password, workspace, project]])
25+
# If you want to use BasicAuth, use the following form
2526
rally = Rally(server, user, password, workspace=workspace, project=project)
26-
#rally = Rally(server, user, password, debug=True)
27+
# If you want to use API Key, you can use the following form
28+
#rally = Rally(server, apikey=apikey, workspace=workspace, project=project)
2729
rally.enableLogging('fire.log')
30+
# the following form of obtaining a Rally instance will use the apikey if it is present (non None)
31+
# otherwise it will use the user and password for BasicAuth
2832
# add in the debug=True keyword arg if you want more verbiage ...
29-
#rally = Rally(server, user, password, workspace=workspace, project=project, debug=True)
33+
#rally = Rally(server, user, password, apikey=apikey, workspace=workspace, project=project, debug=True)
3034
specified_workspace = workspace
3135

3236
workspace = rally.getWorkspace()
3337
print "Workspace: %s " % workspace.Name
3438
if specified_workspace != workspace.Name:
35-
print " ** The workspace you specified: %s is not a valid workspace name for your account, using your default workspace instead" % specified_workspace
39+
print " ** The workspace you specified: %s is not a valid workspace name for your account, using your default workspace instead" % specified_workspace
3640
#print "Workspace: %12.12s %-18.18s (%s)" % (workspace.oid, workspace.Name, workspace.ref)
3741

3842
project = rally.getProject()

0 commit comments

Comments
 (0)