Skip to content

Commit fbb6513

Browse files
Merge pull request #102 from klehman-rally/master
defect fixes - getAllowedValues for custom fields, allow pyral.Entity instance list for collection fields in payload for put/post operations
2 parents cb60639 + 38f05a8 commit fbb6513

30 files changed

+98
-144
lines changed

PKG-INFO

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
Metadata-Version: 1.1
22
Name: pyral
3-
Version: 1.2.2
3+
Version: 1.2.3
44
Summary: Python toolkit for Rally REST API
55
Home-page: https://github.com/RallyTools/RallyRestToolkitForPython
66
Author: Kip Lehman (Rally Software Development)
77
License: BSD
8-
Download-URL: https://github.com/RallyTools/RallyRestToolkitForPython/raw/master/dist/pyral-1.2.2.zip
8+
Download-URL: https://github.com/RallyTools/RallyRestToolkitForPython/raw/master/dist/pyral-1.2.3.zip
99
Description: This is the README file for pyral, a package implementing a
1010
Pythonic interface to the Rally REST API
1111

@@ -28,7 +28,7 @@ Description: This is the README file for pyral, a package implementing a
2828
The pyral package requires the use of Kenneth Reitz's requests package using version 2.0.0 or better.
2929
As of requests version 2.0.0, there is support for HTTPS over HTTP proxy via the CONNECT request.
3030
The requests package can be found via the Python Package Index site (http://pypi/python.org/index).
31-
The most recent release of pyral (1.2.2) has been tested with requests 2.8.1.
31+
The most recent release of pyral (1.2.3) has been tested with requests 2.8.1.
3232
The six module is also required.
3333

3434

README.rst

Lines changed: 8 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ 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.2) has been tested using requests 2.8.1.
42+
The most recent release of pyral (1.2.3) has been tested using requests 2.8.1.
4343

4444
Obtain and install the six_ module (available from PyPI at https://pypi.python.org/pypi/six)
4545

@@ -67,7 +67,7 @@ relevant packages.
6767
>> import requests
6868
>> import pyral
6969
>> pyral.__version__
70-
(1, 2, 2)
70+
(1, 2, 3)
7171

7272

7373

@@ -274,6 +274,11 @@ Prerequisites
274274
Versions
275275
--------
276276

277+
**1.2.3**
278+
Fixed restapi.py Rally.getAllowedValues method to accommodate custom fields
279+
Allow attribute payload for put and post to have a list of pyral.Entity instances
280+
as values for an attribute that is of type COLLECTION.
281+
277282
**1.2.2**
278283
Allow for disambiguating Project amongst name duplications by means of using fully qualified path.
279284
Incorporated suggestion on preserving case name of custom PortfolioItem sub-item.
@@ -300,100 +305,7 @@ Versions
300305
Added examples/updtag.py script.
301306

302307

303-
1.1.1
304-
Modified entity.py to allow it to pass back PortfolioItem sub type instances.
305-
Modified rallyresp.py defect referencing non-existing req_type instance var by changing
306-
reference to request_type.
307-
Modified restapi.py to use user, dropped auth_user.
308-
Modified restapi.py to be more defensive when user has no associated UserProfile.
309-
Modified context.py to account for use of Cygwin in Pinger code.
310-
Modified restapi.py to handle encoding of attachment content to match Rally expectations.
311-
Modified restapi.py/entity.py to handle querying of SchedulableArtifact instances.
312-
Modified restapi.py to handle querying and hydrating of PortfolioItem instances more completely.
313-
Modified restapi.py/entity.py to provide rudimentary support for querying of RecycleBin entries.
314-
Modified restapi.py and added search_utils.py to provide a search method for pyral Rally instances.
315-
Modified rallyresp.py to better handle some boundary conditions when response body item counts
316-
differ from what is stated in the TotalResultCount.
317-
Modified context.py to account for scenario where user's default workspace has no projects.
318-
Modified restapi.py/getProject to return correct project.
319-
320-
1.1.0
321-
Introduction of support to use Rally API Key and rallyWorkset (supercedes rallySettings).
322-
Two relatively minor defects fixed dealing with internalizing environment
323-
vars for initialization and in retrieving Rally entity attribute allowed values.
324-
325-
1.0.1
326-
Patch to address defect with Rally WSAPI v2.0 projects collection endpoint
327-
providing conflicting information.
328-
329-
1.0.0
330-
Default WSAPI version in config is v2.0. This version is not compatible
331-
with Rally WSAPI version 1.x.
332-
Adjusted the RallyUrlBuilder (via RallyQueryFormatter) to be more resilient
333-
with respect to many more "special" characters (non-alphanumeric).
334-
Retrieving the meta data uses the v2.0 schema endpoint.
335-
No longer support a version keyword argument when obtaining a Rally instance.
336-
337-
0.9.4
338-
Adjusted Rally __init__ to accommodate using requests 0.x, 1.x, 2.x versions.
339-
Factored out query building and fixed constructing multi condition queries.
340-
Added internal convenience method to handle a list of refs to turn them into a
341-
list of single key (_ref) hashes.
342-
Added UserIterationCapacity to known entities.
343-
Upped default WSAPI version in config to 1.43.
344-
Support using of https_proxy / HTTPS_PROXY environment variables.
345-
Refactored getAllUsers to include UserProfile information with fewer queries.
346-
347-
0.9.3
348-
Fixed Pinger class to use correct ping options on Linux and Windows.
349-
Updated exception catching and exception raising to Python 2.6/2.7 syntax.
350-
351-
0.9.2
352-
Fixed getProject to take optional project name argument.
353-
Added HTTP header item in config.py to set Content-Type to 'application/json'.
354-
Added recognition of verify_ssl_cert=True/False as keyword argment to
355-
Rally constructor. Explicit specification results in passing a
356-
verify=True/False to the underlying requests package. This can be
357-
useful when dealing with an expired SSL certificate.
358-
Upped default WSAPI version in config.py to 1.37 to support dyna-types
359-
(specifically PortfolioItem and sub-types).
360-
Modified addAttachment to conform with non-backward compatible change in Rally WSAPI
361-
involving how an attachment is related to an artifact.
362-
Fixed defect in calculating an Attachment file size (use pre-encoded rather than post-encoded size).
363-
364-
This release is intended as the final beta before a 1.0 release.
365-
366-
0.9.1
367-
Upped default WSAPI version in config.py to 1.30
368-
All entities that are subclasses of WorkspaceDomainObject now have a details method
369-
that show the attribute values in an easy to read multiline format.
370-
Dropped attempted discrimination of server value to determine if it is a name or an IPv4 address.
371-
No longer look for http_proxy in environment, only https_proxy.
372-
Introduced convenience methods dealing with attachments.
373-
Corrected resource URL construction for the major ops (GET, PUT, POST, DEL)
374-
when project=None specified (useful for Workspace spanning activities).
375-
376-
0.8.12
377-
Fixed premature exercise of iterator in initial response
378-
379-
0.8.11
380-
Fixed inappropriate error message when initial connect attempt timed out.
381-
Message had stated that the target server did not speak the Rally WSAPI.
382-
Improved context handling with respect to workspace and project settings.
383-
384-
0.8.10
385-
Attempted to bolster proxy handling.
386-
Limited success as there is an outstanding issue in requests (urllib3) not
387-
implementing CONNECT for https over http.
388-
389-
0.8.9
390-
initial attempt at providing proxy support
391-
392-
0.8.8
393-
added warn=True/False to Rally instantiation
394-
395-
0.8.7
396-
Initial release on developer.rallydev.com
308+
see the VERSIONS file for information pertaining to older releases
397309

398310

399311
TODO

README.short

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ 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.2) has been tested with requests 2.8.1.
23+
The most recent release of pyral (1.2.3) has been tested with requests 2.8.1.
2424
The six module is also required.
2525

2626

VERSIONS

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,20 @@
8787
allow instantiation option to work with only one workspace for better performance for Subscriptions with large number of Workspaces
8888
fix addAttachment handling to allow binary files and increase size limit to 50MB.
8989

90+
1.2.1 - Oct 2016
91+
Added mention that the six package is required.
92+
Fixed context setup for proper handling when a user has no default workspace/project settings.
93+
Corrected handling of allowedValues for attributes when the single allowedValue is a boolean value.
94+
Added an allowedValues.py example script.
95+
96+
1.2.2 - Nov 2016
97+
Allow for disambiguating Project amongst name duplications by means of using fully qualified path.
98+
Incorporated suggestion on preserving case name of custom PortfolioItem sub-item.
99+
Fixed discrepancy of docs versus code on default pagesize, now is actually 200 everywhere.
100+
Fix location of download package in GitHub repo.
101+
102+
1.2.3 - Dec 2016
103+
Fixed restapi.py Rally.getAllowedValues method to accommodate custom fields
104+
Allow attribute payload for put and post to have a list of pyral.Entity instances
105+
as values for an attribute that is of type COLLECTION.
106+

build_dist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import re
1414

1515
PACKAGE_NAME = "pyral"
16-
VERSION = "1.2.2"
16+
VERSION = "1.2.3"
1717

1818
AUX_FILES = ['MANIFEST.in',
1919
'PKG-INFO',
68.5 KB
Binary file not shown.

dist/pyral-1.2.3.tar.gz

943 KB
Binary file not shown.

dists/pyral-1.2.3.tar.gz

943 KB
Binary file not shown.

dists/pyral-1.2.3.zip

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

0 commit comments

Comments
 (0)