Skip to content

Commit eced50e

Browse files
committed
fixed Pinger in context.py, refactored hydrate.py, updated exception raising and catching to Python 2.6/2.7 compliance
1 parent bf76926 commit eced50e

30 files changed

Lines changed: 417 additions & 248 deletions

README.rst

Lines changed: 38 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ relevant packages.
5151
::
5252

5353
$ python
54-
Python 2.6.5 [other Python interpreter info elided ...]
54+
Python 2.6.6 [other Python interpreter info elided ...]
5555
>> import requests
5656
>> import pyral
5757
>> pyral.__version__
58-
(0, 9, 2)
58+
(0, 9, 3)
5959

6060

6161

@@ -255,41 +255,50 @@ Prerequisites
255255
There are reports where requests > 0.9.3 resulted in connection problems (as in not being able to connect) that may be related to SSL. You should be able to use the verify_ssl_cert keyword argument when
256256
obtaining a pyral Rally instance to overcome this issue.
257257
If you are using requests >- 0.9.3, you must also have certifi-0.0.8 (available on PyPI)
258+
258259
.. _requests: http://github.com/kennethreitz/requests
259260

260261
Versions
261262
--------
262-
* 0.9.2 - Fixed getProject to take optional project name argument.
263-
Added HTTP header item in config.py to set Content-TYpe to 'application/json'.
264-
Added recognition of verify_ssl_cert=True/False as keyword argment to
265-
Rally constructor. Explicit specification results in passing a
266-
verify=True/False to the underlying requests package. This can be
267-
useful when dealing with an expired SSL certificate.
268-
Upped default WSAPI version in config.py to 1.37 to support dyna-types
269-
(specifically PortfolioItem and sub-types)..
270-
Modified addAttachment to conform with non-backward compatible change in Rally WSAPI
271-
involving how an attachment is related to an artifact.
272-
Fixed defect in calculating an Attachment file size
273-
(use pre-encoded rather than post-encoded size).
274-
This release is intended as the final beta before a 1.0 release.
275-
276-
* 0.9.1 - Upped default WSAPI version in config.py to 1.30
277-
All entities that are subclasses of WorkspaceDomainObject now have a details method
278-
that show the attribute values in an easy to read multiline format.
279-
Dropped attempted discrimination of server value to determine if it is a name or an IPv4 address No longer look for http_proxy in environment, only https_proxy.
280-
Introduced convenience methods dealing with attachments.
281-
Corrected resource URL construction for the major ops (GET, PUT, POST, DEL)
282-
when project=None specified (useful for Workspace spanning activities).
263+
* 0.9.3 -
264+
Fixed Pinger class to use correct ping options on Linux and Windows
265+
Updated exception catching and exception raising to Python 2.6/2.7 syntax.
266+
267+
* 0.9.2 -
268+
Fixed getProject to take optional project name argument.
269+
Added HTTP header item in config.py to set Content-TYpe to 'application/json'.
270+
Added recognition of verify_ssl_cert=True/False as keyword argment to
271+
Rally constructor. Explicit specification results in passing a
272+
verify=True/False to the underlying requests package. This can be
273+
useful when dealing with an expired SSL certificate.
274+
Upped default WSAPI version in config.py to 1.37 to support dyna-types
275+
(specifically PortfolioItem and sub-types)..
276+
Modified addAttachment to conform with non-backward compatible change in Rally WSAPI
277+
involving how an attachment is related to an artifact.
278+
Fixed defect in calculating an Attachment file size (use pre-encoded rather than post-encoded size).
279+
280+
This release is intended as the final beta before a 1.0 release.
281+
282+
* 0.9.1 -
283+
Upped default WSAPI version in config.py to 1.30
284+
All entities that are subclasses of WorkspaceDomainObject now have a details method
285+
that show the attribute values in an easy to read multiline format.
286+
Dropped attempted discrimination of server value to determine if it is a name or an IPv4 address No longer look for http_proxy in environment, only https_proxy.
287+
Introduced convenience methods dealing with attachments.
288+
Corrected resource URL construction for the major ops (GET, PUT, POST, DEL)
289+
when project=None specified (useful for Workspace spanning activities).
283290

284291
* 0.8.12 - Fixed premature exercise of iterator in initial response
285292

286-
* 0.8.11 - Fixed inappropriate error message when initial connect attempt timed out.
287-
Message had stated that the target server did not speak the Rally WSAPI.
288-
Improved context handling with respect to workspace and project settings.
293+
* 0.8.11 -
294+
Fixed inappropriate error message when initial connect attempt timed out.
295+
Message had stated that the target server did not speak the Rally WSAPI.
296+
Improved context handling with respect to workspace and project settings.
289297

290-
* 0.8.10 - Attempted to bolster proxy handling.
291-
Limited success as there is an outstanding issue in
292-
requests (urllib3) not implementing CONNECT for https over http.
298+
* 0.8.10 -
299+
Attempted to bolster proxy handling.
300+
Limited success as there is an outstanding issue in equests (urllib3) not
301+
implementing CONNECT for https over http.
293302

294303
* 0.8.9 - initial attempt at providing proxy support
295304

@@ -299,7 +308,6 @@ Versions
299308

300309
TODO
301310
----
302-
303311
* Python 3.3 + support
304312

305313
* Expand the documentation

README.short

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Installation
2828
Once requests has been installed, run the setup.py program supplied with
2929
this distribution as::
3030

31-
python setup.py install.
31+
python setup.py install
3232

3333
Validation
3434
----------

build_dist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import zipfile
1212

1313
PACKAGE_NAME = "pyral"
14-
VERSION = "0.9.2"
14+
VERSION = "0.9.3"
1515

1616
AUX_FILES = ['MANIFEST.in',
1717
'LICENSE',

dists/pyral-0.9.3.tar.gz

131 KB
Binary file not shown.

dists/pyral-0.9.3.zip

154 KB
Binary file not shown.
0 Bytes
Binary file not shown.

doc/build/html/.buildinfo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Sphinx build info version 1
22
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3-
config: 26696598777bc580c07365a7f6fb1114
3+
config: 7459fb71318d56c13b8d6940f521b5e4
44
tags: fbb0d17656682115ca4d033fb2f83ba1

doc/build/html/genindex.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
<head>
88
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
99

10-
<title>Index &mdash; pyral v0.9.2 documentation</title>
10+
<title>Index &mdash; pyral v0.9.3 documentation</title>
1111
<link rel="stylesheet" href="_static/default.css" type="text/css" />
1212
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
1313
<script type="text/javascript">
1414
var DOCUMENTATION_OPTIONS = {
1515
URL_ROOT: '',
16-
VERSION: '0.9.2',
16+
VERSION: '0.9.3',
1717
COLLAPSE_INDEX: false,
1818
FILE_SUFFIX: '.html',
1919
HAS_SOURCE: true
@@ -22,7 +22,7 @@
2222
<script type="text/javascript" src="_static/jquery.js"></script>
2323
<script type="text/javascript" src="_static/underscore.js"></script>
2424
<script type="text/javascript" src="_static/doctools.js"></script>
25-
<link rel="top" title="pyral v0.9.2 documentation" href="index.html" />
25+
<link rel="top" title="pyral v0.9.3 documentation" href="index.html" />
2626
</head>
2727
<body>
2828
<div class="related">
@@ -31,7 +31,7 @@ <h3>Navigation</h3>
3131
<li class="right" style="margin-right: 10px">
3232
<a href="#" title="General Index"
3333
accesskey="I">index</a></li>
34-
<li><a href="index.html">pyral v0.9.2 documentation</a> &raquo;</li>
34+
<li><a href="index.html">pyral v0.9.3 documentation</a> &raquo;</li>
3535
</ul>
3636
</div>
3737

@@ -194,7 +194,7 @@ <h3>Navigation</h3>
194194
<li class="right" style="margin-right: 10px">
195195
<a href="#" title="General Index"
196196
>index</a></li>
197-
<li><a href="index.html">pyral v0.9.2 documentation</a> &raquo;</li>
197+
<li><a href="index.html">pyral v0.9.3 documentation</a> &raquo;</li>
198198
</ul>
199199
</div>
200200
<div class="footer">

doc/build/html/index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
<head>
88
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
99

10-
<title>pyral documentation! &mdash; pyral v0.9.2 documentation</title>
10+
<title>pyral documentation! &mdash; pyral v0.9.3 documentation</title>
1111
<link rel="stylesheet" href="_static/default.css" type="text/css" />
1212
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
1313
<script type="text/javascript">
1414
var DOCUMENTATION_OPTIONS = {
1515
URL_ROOT: '',
16-
VERSION: '0.9.2',
16+
VERSION: '0.9.3',
1717
COLLAPSE_INDEX: false,
1818
FILE_SUFFIX: '.html',
1919
HAS_SOURCE: true
@@ -22,7 +22,7 @@
2222
<script type="text/javascript" src="_static/jquery.js"></script>
2323
<script type="text/javascript" src="_static/underscore.js"></script>
2424
<script type="text/javascript" src="_static/doctools.js"></script>
25-
<link rel="top" title="pyral v0.9.2 documentation" href="#" />
25+
<link rel="top" title="pyral v0.9.3 documentation" href="#" />
2626
<link rel="next" title="Python toolkit for the Rally REST API" href="overview.html" />
2727
</head>
2828
<body>
@@ -35,7 +35,7 @@ <h3>Navigation</h3>
3535
<li class="right" >
3636
<a href="overview.html" title="Python toolkit for the Rally REST API"
3737
accesskey="N">next</a> |</li>
38-
<li><a href="#">pyral v0.9.2 documentation</a> &raquo;</li>
38+
<li><a href="#">pyral v0.9.3 documentation</a> &raquo;</li>
3939
</ul>
4040
</div>
4141

@@ -132,7 +132,7 @@ <h3>Navigation</h3>
132132
<li class="right" >
133133
<a href="overview.html" title="Python toolkit for the Rally REST API"
134134
>next</a> |</li>
135-
<li><a href="#">pyral v0.9.2 documentation</a> &raquo;</li>
135+
<li><a href="#">pyral v0.9.3 documentation</a> &raquo;</li>
136136
</ul>
137137
</div>
138138
<div class="footer">

doc/build/html/interface.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
<head>
88
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
99

10-
<title>Primary pyral classes and functions &mdash; pyral v0.9.2 documentation</title>
10+
<title>Primary pyral classes and functions &mdash; pyral v0.9.3 documentation</title>
1111
<link rel="stylesheet" href="_static/default.css" type="text/css" />
1212
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
1313
<script type="text/javascript">
1414
var DOCUMENTATION_OPTIONS = {
1515
URL_ROOT: '',
16-
VERSION: '0.9.2',
16+
VERSION: '0.9.3',
1717
COLLAPSE_INDEX: false,
1818
FILE_SUFFIX: '.html',
1919
HAS_SOURCE: true
@@ -22,7 +22,7 @@
2222
<script type="text/javascript" src="_static/jquery.js"></script>
2323
<script type="text/javascript" src="_static/underscore.js"></script>
2424
<script type="text/javascript" src="_static/doctools.js"></script>
25-
<link rel="top" title="pyral v0.9.2 documentation" href="index.html" />
25+
<link rel="top" title="pyral v0.9.3 documentation" href="index.html" />
2626
<link rel="prev" title="Python toolkit for the Rally REST API" href="overview.html" />
2727
</head>
2828
<body>
@@ -35,7 +35,7 @@ <h3>Navigation</h3>
3535
<li class="right" >
3636
<a href="overview.html" title="Python toolkit for the Rally REST API"
3737
accesskey="P">previous</a> |</li>
38-
<li><a href="index.html">pyral v0.9.2 documentation</a> &raquo;</li>
38+
<li><a href="index.html">pyral v0.9.3 documentation</a> &raquo;</li>
3939
</ul>
4040
</div>
4141

@@ -715,7 +715,7 @@ <h3>Navigation</h3>
715715
<li class="right" >
716716
<a href="overview.html" title="Python toolkit for the Rally REST API"
717717
>previous</a> |</li>
718-
<li><a href="index.html">pyral v0.9.2 documentation</a> &raquo;</li>
718+
<li><a href="index.html">pyral v0.9.3 documentation</a> &raquo;</li>
719719
</ul>
720720
</div>
721721
<div class="footer">

0 commit comments

Comments
 (0)