Skip to content

Commit

Permalink
Merge pull request #133 from klehman-rally/master
Browse files Browse the repository at this point in the history
add TestFolderStatus attribute for TestFolder, version is 1.4.1
  • Loading branch information
klehman-rally authored Jan 9, 2018
2 parents fc780ad + be3a874 commit 4c3b08c
Show file tree
Hide file tree
Showing 34 changed files with 101 additions and 50 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.4.0
Version: 1.4.1
Summary: Python toolkit for Agile Central (Rally) REST API
Home-page: https://github.com/RallyTools/RallyRestToolkitForPython
Author: Kip Lehman (CA Technologies, AgileCentral Business Unit)
License: BSD
Download-URL: https://github.com/RallyTools/RallyRestToolkitForPython/raw/master/dists/pyral-1.4.0.zip
Download-URL: https://github.com/RallyTools/RallyRestToolkitForPython/raw/master/dists/pyral-1.4.1.zip
Description: This is the README file for pyral, a package implementing a
Pythonic interface to the Agile Central (formerly 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.8.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.4.0) has been tested with requests 2.12.5.
The most recent release of pyral (1.4.1) has been tested with requests 2.12.5.
The six module is also required.


Expand Down
8 changes: 6 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,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.4.0) has been tested using requests 2.12.5.
The most recent release of pyral (1.4.1) has been tested using requests 2.12.5.

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

Expand Down Expand Up @@ -76,7 +76,7 @@ relevant packages.
>> import requests
>> import pyral
>> pyral.__version__
(1, 4, 0)
(1, 4, 1)



Expand Down Expand Up @@ -282,6 +282,10 @@ Prerequisites

Versions
--------
**1.4.1**
Support for TestFolderStatus attribute in TestFolder.
Fixed defect in addCollectionItems

**1.4.0**
Support for PullRequest entity object (subclassed from Connection).

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.8.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.4.0) has been tested with requests 2.12.5.
The most recent release of pyral (1.4.1) has been tested with requests 2.12.5.
The six module is also required.


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

PACKAGE_NAME = "pyral"
VERSION = "1.4.0"
VERSION = "1.4.1"

AUX_FILES = ['MANIFEST.in',
'PKG-INFO',
Expand Down
Binary file added dist/pyral-1.4.1-py2.py3-none-any.whl
Binary file not shown.
Binary file added dist/pyral-1.4.1.docs.html.zip
Binary file not shown.
Binary file added dist/pyral-1.4.1.tar.gz
Binary file not shown.
Binary file added dists/pyral-1.4.1.tar.gz
Binary file not shown.
Binary file added dists/pyral-1.4.1.zip
Binary file not shown.
Binary file modified doc/build/doctrees/environment.pickle
Binary file not shown.
Binary file modified doc/build/doctrees/index.doctree
Binary file not shown.
Binary file modified doc/build/doctrees/interface.doctree
Binary file not shown.
Binary file modified doc/build/doctrees/overview.doctree
Binary file not shown.
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.4.0 documentation</title>
<title>Index &mdash; pyral 1.4.1 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.4.0 documentation" href="index.html"/>
<link rel="top" title="pyral 1.4.1 documentation" href="index.html"/>


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


<div class="version">
1.4.0
1.4.1
</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.4.0',
VERSION:'1.4.1',
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.4.0 documentation</title>
<title>Python toolkit for the Rally REST API &mdash; pyral 1.4.1 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.4.0 documentation" href="#"/>
<link rel="top" title="pyral 1.4.1 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.4.0
1.4.1
</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.4.0',
VERSION:'1.4.1',
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.4.0 documentation</title>
<title>Primary pyral classes and functions &mdash; pyral 1.4.1 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.4.0 documentation" href="index.html"/>
<link rel="top" title="pyral 1.4.1 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.4.0
1.4.1
</div>


Expand Down Expand Up @@ -1149,7 +1149,7 @@ <h1>Item Attributes<a class="headerlink" href="#item-attributes" title="Permalin
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT:'./',
VERSION:'1.4.0',
VERSION:'1.4.1',
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.4.0 documentation</title>
<title>Python toolkit for the Rally REST API &mdash; pyral 1.4.1 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.4.0 documentation" href="index.html"/>
<link rel="top" title="pyral 1.4.1 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.4.0
1.4.1
</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.4.0',
VERSION:'1.4.1',
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.4.0 documentation</title>
<title>Search &mdash; pyral 1.4.1 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.4.0 documentation" href="index.html"/>
<link rel="top" title="pyral 1.4.1 documentation" href="index.html"/>


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


<div class="version">
1.4.0
1.4.1
</div>


Expand Down Expand Up @@ -188,7 +188,7 @@
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT:'./',
VERSION:'1.4.0',
VERSION:'1.4.1',
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.4.0'
version = '1.4.1'
# The full version, including alpha/beta/rc tags.
release = '1.4.0'
release = '1.4.1'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
2 changes: 1 addition & 1 deletion pyral/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = (1, 4, 0)
__version__ = (1, 4, 1)
from .config import rallySettings, rallyWorkset
from .restapi import Rally, RallyRESTAPIError, RallyUrlBuilder
from .restapi import AgileCentral, AgileCentralRESTAPIError, AgileCentralUrlBuilder
Expand Down
2 changes: 1 addition & 1 deletion pyral/cargotruck.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from six.moves import queue
Queue = queue.Queue

__version__ = (1, 4, 0)
__version__ = (1, 4, 1)

#########################################################################################################

Expand Down
2 changes: 1 addition & 1 deletion pyral/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#
###################################################################################################

__version__ = (1, 4, 0)
__version__ = (1, 4, 1)

import datetime
import os
Expand Down
2 changes: 1 addition & 1 deletion pyral/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#
###################################################################################################

__version__ = (1, 4, 0)
__version__ = (1, 4, 1)

import sys, os
import platform
Expand Down
8 changes: 6 additions & 2 deletions pyral/entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#
###################################################################################################

__version__ = (1, 4, 0)
__version__ = (1, 4, 1)

import sys
import re
Expand Down Expand Up @@ -420,14 +420,16 @@ class BuildMetricDefinition (WorkspaceDomainObject): pass # query capable only
class Change (WorkspaceDomainObject): pass
class Changeset (WorkspaceDomainObject): pass
class ConversationPost (WorkspaceDomainObject): pass # query capable only
class Milestone (WorkspaceDomainObject): pass
class FlowState (WorkspaceDomainObject): pass
class Milestone (WorkspaceDomainObject): pass
class Preference (WorkspaceDomainObject): pass
class PreliminaryEstimate (WorkspaceDomainObject): pass
class SCMRepository (WorkspaceDomainObject): pass
class State (WorkspaceDomainObject): pass
class TestCaseStep (WorkspaceDomainObject): pass
class TestCaseResult (WorkspaceDomainObject): pass
class TestFolder (WorkspaceDomainObject): pass
class TestFolderStatus (WorkspaceDomainObject): pass
class Tag (WorkspaceDomainObject): pass
class TimeEntryItem (WorkspaceDomainObject): pass
class TimeEntryValue (WorkspaceDomainObject): pass
Expand Down Expand Up @@ -617,6 +619,7 @@ def __setattr__(self, item, value):
'TestCaseResult' : TestCaseResult,
'TestSet' : TestSet,
'TestFolder' : TestFolder,
'TestFolderStatus' : TestFolderStatus,
'TimeEntryItem' : TimeEntryItem,
'TimeEntryValue' : TimeEntryValue,
'Build' : Build,
Expand All @@ -627,6 +630,7 @@ def __setattr__(self, item, value):
'DefectSuite' : DefectSuite,
'Change' : Change,
'Changeset' : Changeset,
'FlowState' : FlowState,
'PortfolioItem' : PortfolioItem,
'PortfolioItem_Strategy' : PortfolioItem_Strategy,
'PortfolioItem_Initiative': PortfolioItem_Initiative,
Expand Down
2 changes: 1 addition & 1 deletion pyral/hydrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#
###################################################################################################

__version__ = (1, 4, 0)
__version__ = (1, 4, 1)

import sys
import imp
Expand Down
2 changes: 1 addition & 1 deletion pyral/query_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#
###################################################################################################

__version__ = (1, 4, 0)
__version__ = (1, 4, 1)

import re
import types
Expand Down
2 changes: 1 addition & 1 deletion pyral/rallyresp.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#
###################################################################################################

__version__ = (1, 4, 0)
__version__ = (1, 4, 1)

import sys
import re
Expand Down
8 changes: 4 additions & 4 deletions pyral/restapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
###################################################################################################

__version__ = (1, 4, 0)
__version__ = (1, 4, 1)

import sys, os
import re
Expand Down Expand Up @@ -1205,12 +1205,12 @@ def addCollectionItems(self, target, items):
auth_token = self.obtainSecurityToken()
target_type = target._type
item_types = [item._type for item in items]
item_type = item_types[0]
outliers = [item for item in item_types if item._type != item_type]
first_item_type = item_types[0]
outliers = [item_type for item_type in item_types if item_type != first_item_type]
if outliers:
raise RallyRESTAPIError("addCollectionItems: all items must be of the same type")

resource = "%s/%s/%ss/add" % (target_type, target.oid, item_type)
resource = "%s/%s/%ss/add" % (target_type, target.oid, first_item_type)
collection_url = '%s/%s?fetch=Name&key=%s' % (self.service_url, resource, auth_token)
payload = {"CollectionItems":[{'_ref' : "%s/%s" % (str(item._type), str(item.oid))}
for item in items]}
Expand Down
2 changes: 1 addition & 1 deletion pyral/search_utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = (1, 4, 0)
__version__ = (1, 4, 1)

from operator import attrgetter

Expand Down
Loading

0 comments on commit 4c3b08c

Please sign in to comment.