Skip to content

Commit 6ed5185

Browse files
committed
fixed Rally instantiation issue where user has no defaults, fixed call to getAllowedValues to account for many attrs whose av resolves to True, added six as dependency
1 parent a6a31f0 commit 6ed5185

49 files changed

Lines changed: 12175 additions & 688 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

MANIFEST

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,14 @@ examples/showdefects.py
1717
examples/statecounts.py
1818
examples/crtask.py
1919
examples/uptask.py
20-
examples/typedefs.py
20+
examples/typedef.py
2121
examples/repoitems.py
2222
examples/wkspcounts.py
2323
examples/builddefs.py
2424
examples/creattach.py
2525
examples/get_attachments.py
26+
examples/get_schedulable_artifacts.py
2627
examples/get_schema.py
28+
examples/defrevs.py
2729
examples/add_tcrs.py
30+
examples/updtag.py

MANIFEST.in

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,20 @@ pyral/entity.py
1111
pyral/hydrate.py
1212
pyral/rallyresp.py
1313
pyral/restapi.py
14-
examples/typedef.py
15-
examples/get_schema.py
16-
examples/periscope.py
1714
examples/getitem.py
15+
examples/periscope.py
1816
examples/showdefects.py
1917
examples/statecounts.py
20-
examples/wkspcounts.py
2118
examples/crtask.py
2219
examples/uptask.py
20+
examples/typedef.py
2321
examples/repoitems.py
22+
examples/wkspcounts.py
2423
examples/builddefs.py
2524
examples/creattach.py
2625
examples/get_attachments.py
26+
examples/get_schedulable_artifacts.py
27+
examples/get_schema.py
28+
examples/defrevs.py
2729
examples/add_tcrs.py
30+
examples/updtag.py

README.rst

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ Obtain the requests_ package and install it according to that package's directio
3939
As of requests-2.0.0, there is support for HTTPS over HTTP proxy via the CONNECT request.
4040
Use of requests-2.x or better is recommended for use with pyral.
4141
The requests_ package can be found via the Python Package Index site (http://pypi/python.org/index).
42-
The most recent release of pyral (1.2.0) has been tested using requests 2.8.1.
42+
The most recent release of pyral (1.2.1) has been tested using requests 2.8.1.
43+
44+
Obtain and install the six_ module (available from PyPI at https://pypi.python.org/pypi/six)
4345

4446

4547
Unpack the ``pyral`` distribution file (zip or tar.gz) and then install the pyral_ package.
@@ -61,11 +63,11 @@ relevant packages.
6163
::
6264

6365
$ python
64-
Python 2.7.11 [other Python interpreter info elided ...]
66+
Python 3.5.1 [other Python interpreter info elided ...]
6567
>> import requests
6668
>> import pyral
6769
>> pyral.__version__
68-
(1, 2, 0)
70+
(1, 2, 1)
6971

7072

7173

@@ -105,7 +107,7 @@ Common setup code ::
105107
options = [arg for arg in sys.argv[1:] if arg.startswith('--')]
106108
args = [arg for arg in sys.argv[1:] if arg not in options]
107109
server, user, password, apikey, workspace, project = rallyWorkset(options)
108-
rally = Rally(server, user, password, workspace=workspace, project=project)
110+
rally = Rally(server, user, password, apikey=apikey, workspace=workspace, project=project)
109111
rally.enableLogging('mypyral.log')
110112

111113
Show a TestCase identified by the **FormattedID** value.
@@ -253,6 +255,7 @@ The item names in config files **are** case sensitive.
253255
--apikey=<APIKey> valid Rally API Key value
254256
--rallyWorkspace=<bar> Workspace in Rally you want to interact with
255257
--rallyProject=<bar> Project in Rally you want to interact with
258+
--ping boolean, ping Rally server before connection attempt?
256259
====================================== =========================================
257260

258261

@@ -263,12 +266,20 @@ Prerequisites
263266
* Python 3.5 (this package not tested with earlier versions of Python 3.x)
264267
* The requests_ package, 2.0.0 or better (2.0.0 finally includes support for https proxy),
265268
requests 2.8.1 is recommended.
269+
* The six_ package.
266270

267271
.. _requests: http://github.com/kennethreitz/requests
272+
.. _six: https://bitbucket/gutworth/six
268273

269274
Versions
270275
--------
271276

277+
1.2.1
278+
Added mention that the six package is required.
279+
Fixed context setup for proper handling when a user has no default workspace/project settings.
280+
Corrected handling of allowedValues for attributes when the single allowedValue is a boolean value.
281+
Added an allowedValues.py example script.
282+
272283
1.2.0
273284
Support for Python 3.5.x
274285
Begin deprecation sequence for pinging the Rally server before the connection attempt,

README.short

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,14 @@ Requirements
2020
The pyral package requires the use of Kenneth Reitz's requests package using version 2.0.0 or better.
2121
As of requests version 2.0.0, there is support for HTTPS over HTTP proxy via the CONNECT request.
2222
The requests package can be found via the Python Package Index site (http://pypi/python.org/index).
23-
The most recent release of pyral (1.2.0) has been tested with requests 2.8.1.
23+
The most recent release of pyral (1.2.1) has been tested with requests 2.8.1.
24+
The six module is also required.
2425

2526

2627
Installation
2728
------------
2829

29-
Once requests has been installed, run the setup.py program supplied with
30+
Once requests and six has been installed, run the setup.py program supplied with
3031
this distribution as::
3132

3233
python setup.py install

build_dist.py

100755100644
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import zipfile
1212

1313
PACKAGE_NAME = "pyral"
14-
VERSION = "1.2.0"
14+
VERSION = "1.2.1"
1515

1616
AUX_FILES = ['MANIFEST.in',
1717
'LICENSE',
@@ -30,6 +30,7 @@
3030
'repoitems.py',
3131
'get_schema.py',
3232
'typedef.py',
33+
'allowedValues.py',
3334
'wkspcounts.py',
3435
'builddefs.py',
3536
'creattach.py',
@@ -146,7 +147,6 @@ def make_zipfile(pkg_name, pkg_version, base_files, example_files, doc_files):
146147
elif os.path.isdir(doc_item):
147148
sub_items = os.listdir(doc_item)
148149
for sub_item in sub_items:
149-
150150
zf.write('%s/%s' % (doc_item, sub_item), '%s/%s/%s' % (base_dir, doc_item, sub_item), zipfile.ZIP_DEFLATED)
151151

152152
zf.close()
440 Bytes
Binary file not shown.

doc/build/doctrees/index.doctree

-96 Bytes
Binary file not shown.
796 Bytes
Binary file not shown.
-105 Bytes
Binary file not shown.

doc/build/html/_static/basic.css

Lines changed: 84 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* Sphinx stylesheet -- basic theme.
66
*
7-
* :copyright: Copyright 2007-2014 by the Sphinx team, see AUTHORS.
7+
* :copyright: Copyright 2007-2016 by the Sphinx team, see AUTHORS.
88
* :license: BSD, see LICENSE for details.
99
*
1010
*/
@@ -52,6 +52,8 @@ div.sphinxsidebar {
5252
width: 230px;
5353
margin-left: -100%;
5454
font-size: 90%;
55+
word-wrap: break-word;
56+
overflow-wrap : break-word;
5557
}
5658

5759
div.sphinxsidebar ul {
@@ -83,10 +85,6 @@ div.sphinxsidebar #searchbox input[type="text"] {
8385
width: 170px;
8486
}
8587

86-
div.sphinxsidebar #searchbox input[type="submit"] {
87-
width: 30px;
88-
}
89-
9088
img {
9189
border: 0;
9290
max-width: 100%;
@@ -187,6 +185,13 @@ div.genindex-jumpbox {
187185

188186
/* -- general body styles --------------------------------------------------- */
189187

188+
div.body p, div.body dd, div.body li, div.body blockquote {
189+
-moz-hyphens: auto;
190+
-ms-hyphens: auto;
191+
-webkit-hyphens: auto;
192+
hyphens: auto;
193+
}
194+
190195
a.headerlink {
191196
visibility: hidden;
192197
}
@@ -197,7 +202,10 @@ h3:hover > a.headerlink,
197202
h4:hover > a.headerlink,
198203
h5:hover > a.headerlink,
199204
h6:hover > a.headerlink,
200-
dt:hover > a.headerlink {
205+
dt:hover > a.headerlink,
206+
caption:hover > a.headerlink,
207+
p.caption:hover > a.headerlink,
208+
div.code-block-caption:hover > a.headerlink {
201209
visibility: visible;
202210
}
203211

@@ -314,6 +322,13 @@ table.docutils {
314322
border-collapse: collapse;
315323
}
316324

325+
table caption span.caption-number {
326+
font-style: italic;
327+
}
328+
329+
table caption span.caption-text {
330+
}
331+
317332
table.docutils td, table.docutils th {
318333
padding: 1px 8px 1px 5px;
319334
border-top: 0;
@@ -344,6 +359,25 @@ table.citation td {
344359
border-bottom: none;
345360
}
346361

362+
/* -- figures --------------------------------------------------------------- */
363+
364+
div.figure {
365+
margin: 0.5em;
366+
padding: 0.5em;
367+
}
368+
369+
div.figure p.caption {
370+
padding: 0.3em;
371+
}
372+
373+
div.figure p.caption span.caption-number {
374+
font-style: italic;
375+
}
376+
377+
div.figure p.caption span.caption-text {
378+
}
379+
380+
347381
/* -- other body styles ----------------------------------------------------- */
348382

349383
ol.arabic {
@@ -406,6 +440,10 @@ dl.glossary dt {
406440
font-size: 1.3em;
407441
}
408442

443+
.sig-paren {
444+
font-size: larger;
445+
}
446+
409447
.versionmodified {
410448
font-style: italic;
411449
}
@@ -456,6 +494,13 @@ pre {
456494
overflow-y: hidden; /* fixes display issues on Chrome browsers */
457495
}
458496

497+
span.pre {
498+
-moz-hyphens: none;
499+
-ms-hyphens: none;
500+
-webkit-hyphens: none;
501+
hyphens: none;
502+
}
503+
459504
td.linenos pre {
460505
padding: 5px 0px;
461506
border: 0;
@@ -471,22 +516,51 @@ table.highlighttable td {
471516
padding: 0 0.5em 0 0.5em;
472517
}
473518

474-
tt.descname {
519+
div.code-block-caption {
520+
padding: 2px 5px;
521+
font-size: small;
522+
}
523+
524+
div.code-block-caption code {
525+
background-color: transparent;
526+
}
527+
528+
div.code-block-caption + div > div.highlight > pre {
529+
margin-top: 0;
530+
}
531+
532+
div.code-block-caption span.caption-number {
533+
padding: 0.1em 0.3em;
534+
font-style: italic;
535+
}
536+
537+
div.code-block-caption span.caption-text {
538+
}
539+
540+
div.literal-block-wrapper {
541+
padding: 1em 1em 0;
542+
}
543+
544+
div.literal-block-wrapper div.highlight {
545+
margin: 0;
546+
}
547+
548+
code.descname {
475549
background-color: transparent;
476550
font-weight: bold;
477551
font-size: 1.2em;
478552
}
479553

480-
tt.descclassname {
554+
code.descclassname {
481555
background-color: transparent;
482556
}
483557

484-
tt.xref, a tt {
558+
code.xref, a code {
485559
background-color: transparent;
486560
font-weight: bold;
487561
}
488562

489-
h1 tt, h2 tt, h3 tt, h4 tt, h5 tt, h6 tt {
563+
h1 code, h2 code, h3 code, h4 code, h5 code, h6 code {
490564
background-color: transparent;
491565
}
492566

0 commit comments

Comments
 (0)