Skip to content

Commit

Permalink
Merge pull request #102 from klehman-rally/master
Browse files Browse the repository at this point in the history
defect fixes - getAllowedValues for custom fields, allow pyral.Entity instance list for collection fields in payload for put/post operations
  • Loading branch information
klehman-rally committed Dec 7, 2016
2 parents cb60639 + 38f05a8 commit fbb6513
Show file tree
Hide file tree
Showing 30 changed files with 98 additions and 144 deletions.
6 changes: 3 additions & 3 deletions PKG-INFO
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
Metadata-Version: 1.1
Name: pyral
Version: 1.2.2
Version: 1.2.3
Summary: Python toolkit for Rally REST API
Home-page: https://github.com/RallyTools/RallyRestToolkitForPython
Author: Kip Lehman (Rally Software Development)
License: BSD
Download-URL: https://github.com/RallyTools/RallyRestToolkitForPython/raw/master/dist/pyral-1.2.2.zip
Download-URL: https://github.com/RallyTools/RallyRestToolkitForPython/raw/master/dist/pyral-1.2.3.zip
Description: This is the README file for pyral, a package implementing a
Pythonic interface to the Rally REST API

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


Expand Down
104 changes: 8 additions & 96 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Obtain the requests_ package and install it according to that package's directio
As of requests-2.0.0, there is support for HTTPS over HTTP proxy via the CONNECT request.
Use of requests-2.x or better is recommended for use with pyral.
The requests_ package can be found via the Python Package Index site (http://pypi/python.org/index).
The most recent release of pyral (1.2.2) has been tested using requests 2.8.1.
The most recent release of pyral (1.2.3) has been tested using requests 2.8.1.

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

Expand Down Expand Up @@ -67,7 +67,7 @@ relevant packages.
>> import requests
>> import pyral
>> pyral.__version__
(1, 2, 2)
(1, 2, 3)



Expand Down Expand Up @@ -274,6 +274,11 @@ Prerequisites
Versions
--------

**1.2.3**
Fixed restapi.py Rally.getAllowedValues method to accommodate custom fields
Allow attribute payload for put and post to have a list of pyral.Entity instances
as values for an attribute that is of type COLLECTION.

**1.2.2**
Allow for disambiguating Project amongst name duplications by means of using fully qualified path.
Incorporated suggestion on preserving case name of custom PortfolioItem sub-item.
Expand All @@ -300,100 +305,7 @@ Versions
Added examples/updtag.py script.


1.1.1
Modified entity.py to allow it to pass back PortfolioItem sub type instances.
Modified rallyresp.py defect referencing non-existing req_type instance var by changing
reference to request_type.
Modified restapi.py to use user, dropped auth_user.
Modified restapi.py to be more defensive when user has no associated UserProfile.
Modified context.py to account for use of Cygwin in Pinger code.
Modified restapi.py to handle encoding of attachment content to match Rally expectations.
Modified restapi.py/entity.py to handle querying of SchedulableArtifact instances.
Modified restapi.py to handle querying and hydrating of PortfolioItem instances more completely.
Modified restapi.py/entity.py to provide rudimentary support for querying of RecycleBin entries.
Modified restapi.py and added search_utils.py to provide a search method for pyral Rally instances.
Modified rallyresp.py to better handle some boundary conditions when response body item counts
differ from what is stated in the TotalResultCount.
Modified context.py to account for scenario where user's default workspace has no projects.
Modified restapi.py/getProject to return correct project.

1.1.0
Introduction of support to use Rally API Key and rallyWorkset (supercedes rallySettings).
Two relatively minor defects fixed dealing with internalizing environment
vars for initialization and in retrieving Rally entity attribute allowed values.

1.0.1
Patch to address defect with Rally WSAPI v2.0 projects collection endpoint
providing conflicting information.

1.0.0
Default WSAPI version in config is v2.0. This version is not compatible
with Rally WSAPI version 1.x.
Adjusted the RallyUrlBuilder (via RallyQueryFormatter) to be more resilient
with respect to many more "special" characters (non-alphanumeric).
Retrieving the meta data uses the v2.0 schema endpoint.
No longer support a version keyword argument when obtaining a Rally instance.

0.9.4
Adjusted Rally __init__ to accommodate using requests 0.x, 1.x, 2.x versions.
Factored out query building and fixed constructing multi condition queries.
Added internal convenience method to handle a list of refs to turn them into a
list of single key (_ref) hashes.
Added UserIterationCapacity to known entities.
Upped default WSAPI version in config to 1.43.
Support using of https_proxy / HTTPS_PROXY environment variables.
Refactored getAllUsers to include UserProfile information with fewer queries.

0.9.3
Fixed Pinger class to use correct ping options on Linux and Windows.
Updated exception catching and exception raising to Python 2.6/2.7 syntax.

0.9.2
Fixed getProject to take optional project name argument.
Added HTTP header item in config.py to set Content-Type to 'application/json'.
Added recognition of verify_ssl_cert=True/False as keyword argment to
Rally constructor. Explicit specification results in passing a
verify=True/False to the underlying requests package. This can be
useful when dealing with an expired SSL certificate.
Upped default WSAPI version in config.py to 1.37 to support dyna-types
(specifically PortfolioItem and sub-types).
Modified addAttachment to conform with non-backward compatible change in Rally WSAPI
involving how an attachment is related to an artifact.
Fixed defect in calculating an Attachment file size (use pre-encoded rather than post-encoded size).

This release is intended as the final beta before a 1.0 release.

0.9.1
Upped default WSAPI version in config.py to 1.30
All entities that are subclasses of WorkspaceDomainObject now have a details method
that show the attribute values in an easy to read multiline format.
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.
Introduced convenience methods dealing with attachments.
Corrected resource URL construction for the major ops (GET, PUT, POST, DEL)
when project=None specified (useful for Workspace spanning activities).

0.8.12
Fixed premature exercise of iterator in initial response

0.8.11
Fixed inappropriate error message when initial connect attempt timed out.
Message had stated that the target server did not speak the Rally WSAPI.
Improved context handling with respect to workspace and project settings.

0.8.10
Attempted to bolster proxy handling.
Limited success as there is an outstanding issue in requests (urllib3) not
implementing CONNECT for https over http.

0.8.9
initial attempt at providing proxy support

0.8.8
added warn=True/False to Rally instantiation

0.8.7
Initial release on developer.rallydev.com
see the VERSIONS file for information pertaining to older releases


TODO
Expand Down
2 changes: 1 addition & 1 deletion README.short
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Requirements
The pyral package requires the use of Kenneth Reitz's requests package using version 2.0.0 or better.
As of requests version 2.0.0, there is support for HTTPS over HTTP proxy via the CONNECT request.
The requests package can be found via the Python Package Index site (http://pypi/python.org/index).
The most recent release of pyral (1.2.2) has been tested with requests 2.8.1.
The most recent release of pyral (1.2.3) has been tested with requests 2.8.1.
The six module is also required.


Expand Down
17 changes: 17 additions & 0 deletions VERSIONS
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,20 @@
allow instantiation option to work with only one workspace for better performance for Subscriptions with large number of Workspaces
fix addAttachment handling to allow binary files and increase size limit to 50MB.

1.2.1 - Oct 2016
Added mention that the six package is required.
Fixed context setup for proper handling when a user has no default workspace/project settings.
Corrected handling of allowedValues for attributes when the single allowedValue is a boolean value.
Added an allowedValues.py example script.

1.2.2 - Nov 2016
Allow for disambiguating Project amongst name duplications by means of using fully qualified path.
Incorporated suggestion on preserving case name of custom PortfolioItem sub-item.
Fixed discrepancy of docs versus code on default pagesize, now is actually 200 everywhere.
Fix location of download package in GitHub repo.

1.2.3 - Dec 2016
Fixed restapi.py Rally.getAllowedValues method to accommodate custom fields
Allow attribute payload for put and post to have a list of pyral.Entity instances
as values for an attribute that is of type COLLECTION.

2 changes: 1 addition & 1 deletion build_dist.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import re

PACKAGE_NAME = "pyral"
VERSION = "1.2.2"
VERSION = "1.2.3"

AUX_FILES = ['MANIFEST.in',
'PKG-INFO',
Expand Down
Binary file added dist/pyral-1.2.3-py2.py3-none-any.whl
Binary file not shown.
Binary file added dist/pyral-1.2.3.tar.gz
Binary file not shown.
Binary file added dists/pyral-1.2.3.tar.gz
Binary file not shown.
Binary file added dists/pyral-1.2.3.zip
Binary file not shown.
Binary file modified doc/build/doctrees/environment.pickle
Binary file not shown.
2 changes: 1 addition & 1 deletion doc/build/html/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 1c8ead5262c9c247959f836aa7c0efdf
config: a147a201745a9167d1fff18974372aba
tags: 645f666f9bcd5a90fca523b33c5a78b7
8 changes: 4 additions & 4 deletions doc/build/html/genindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Index &mdash; pyral 1.2.2 documentation</title>
<title>Index &mdash; pyral 1.2.3 documentation</title>



Expand All @@ -34,7 +34,7 @@
<link rel="index" title="Index"
href="#"/>
<link rel="search" title="Search" href="search.html"/>
<link rel="top" title="pyral 1.2.2 documentation" href="index.html"/>
<link rel="top" title="pyral 1.2.3 documentation" href="index.html"/>


<script src="_static/js/modernizr.min.js"></script>
Expand Down Expand Up @@ -63,7 +63,7 @@


<div class="version">
1.2.2
1.2.3
</div>


Expand Down Expand Up @@ -437,7 +437,7 @@ <h2 id="U">U</h2>
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT:'./',
VERSION:'1.2.2',
VERSION:'1.2.3',
COLLAPSE_INDEX:false,
FILE_SUFFIX:'.html',
HAS_SOURCE: true
Expand Down
8 changes: 4 additions & 4 deletions doc/build/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Python toolkit for the Rally REST API &mdash; pyral 1.2.2 documentation</title>
<title>Python toolkit for the Rally REST API &mdash; pyral 1.2.3 documentation</title>



Expand All @@ -33,7 +33,7 @@
<link rel="index" title="Index"
href="genindex.html"/>
<link rel="search" title="Search" href="search.html"/>
<link rel="top" title="pyral 1.2.2 documentation" href="#"/>
<link rel="top" title="pyral 1.2.3 documentation" href="#"/>
<link rel="next" title="Python toolkit for the Rally REST API" href="overview.html"/>


Expand Down Expand Up @@ -63,7 +63,7 @@


<div class="version">
1.2.2
1.2.3
</div>


Expand Down Expand Up @@ -226,7 +226,7 @@ <h1>Indices and tables<a class="headerlink" href="#indices-and-tables" title="Pe
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT:'./',
VERSION:'1.2.2',
VERSION:'1.2.3',
COLLAPSE_INDEX:false,
FILE_SUFFIX:'.html',
HAS_SOURCE: true
Expand Down
8 changes: 4 additions & 4 deletions doc/build/html/interface.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Primary pyral classes and functions &mdash; pyral 1.2.2 documentation</title>
<title>Primary pyral classes and functions &mdash; pyral 1.2.3 documentation</title>



Expand All @@ -33,7 +33,7 @@
<link rel="index" title="Index"
href="genindex.html"/>
<link rel="search" title="Search" href="search.html"/>
<link rel="top" title="pyral 1.2.2 documentation" href="index.html"/>
<link rel="top" title="pyral 1.2.3 documentation" href="index.html"/>
<link rel="prev" title="Python toolkit for the Rally REST API" href="overview.html"/>


Expand Down Expand Up @@ -63,7 +63,7 @@


<div class="version">
1.2.2
1.2.3
</div>


Expand Down Expand Up @@ -1133,7 +1133,7 @@ <h1>Item Attributes<a class="headerlink" href="#item-attributes" title="Permalin
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT:'./',
VERSION:'1.2.2',
VERSION:'1.2.3',
COLLAPSE_INDEX:false,
FILE_SUFFIX:'.html',
HAS_SOURCE: true
Expand Down
Binary file modified doc/build/html/objects.inv
Binary file not shown.
8 changes: 4 additions & 4 deletions doc/build/html/overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Python toolkit for the Rally REST API &mdash; pyral 1.2.2 documentation</title>
<title>Python toolkit for the Rally REST API &mdash; pyral 1.2.3 documentation</title>



Expand All @@ -33,7 +33,7 @@
<link rel="index" title="Index"
href="genindex.html"/>
<link rel="search" title="Search" href="search.html"/>
<link rel="top" title="pyral 1.2.2 documentation" href="index.html"/>
<link rel="top" title="pyral 1.2.3 documentation" href="index.html"/>
<link rel="next" title="Primary pyral classes and functions" href="interface.html"/>
<link rel="prev" title="Python toolkit for the Rally REST API" href="index.html"/>

Expand Down Expand Up @@ -64,7 +64,7 @@


<div class="version">
1.2.2
1.2.3
</div>


Expand Down Expand Up @@ -326,7 +326,7 @@ <h1>Introduction of Dyna-Types<a class="headerlink" href="#introduction-of-dyna-
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT:'./',
VERSION:'1.2.2',
VERSION:'1.2.3',
COLLAPSE_INDEX:false,
FILE_SUFFIX:'.html',
HAS_SOURCE: true
Expand Down
8 changes: 4 additions & 4 deletions doc/build/html/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Search &mdash; pyral 1.2.2 documentation</title>
<title>Search &mdash; pyral 1.2.3 documentation</title>



Expand All @@ -33,7 +33,7 @@
<link rel="index" title="Index"
href="genindex.html"/>
<link rel="search" title="Search" href="#"/>
<link rel="top" title="pyral 1.2.2 documentation" href="index.html"/>
<link rel="top" title="pyral 1.2.3 documentation" href="index.html"/>


<script src="_static/js/modernizr.min.js"></script>
Expand Down Expand Up @@ -62,7 +62,7 @@


<div class="version">
1.2.2
1.2.3
</div>


Expand Down Expand Up @@ -188,7 +188,7 @@
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT:'./',
VERSION:'1.2.2',
VERSION:'1.2.3',
COLLAPSE_INDEX:false,
FILE_SUFFIX:'.html',
HAS_SOURCE: true
Expand Down
4 changes: 2 additions & 2 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@
# built documents.
#
# The short X.Y version.
version = '1.2.2'
version = '1.2.3'
# The full version, including alpha/beta/rc tags.
release = '1.2.2'
release = '1.2.3'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down

0 comments on commit fbb6513

Please sign in to comment.