Skip to content

Commit 4cb3371

Browse files
committed
Merge branch 'wsapi2'
2 parents 3b7d0b4 + 7d8d8f1 commit 4cb3371

Some content is hidden

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

56 files changed

+1982
-779
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright © 2010-2012, Rally Software Development Corp. Boulder, Colorado USA
1+
Copyright © 2010-2014, Rally Software Development Corp. Boulder, Colorado USA
22
All rights reserved.
33

44
License for pyral (a Python toolkit for the Rally REST API)

MANIFEST

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,5 @@ examples/wkspcounts.py
2323
examples/builddefs.py
2424
examples/creattach.py
2525
examples/get_attachments.py
26+
examples/get_schema.py
27+
examples/add_tcrs.py

MANIFEST.in

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,17 @@ pyral/entity.py
1111
pyral/hydrate.py
1212
pyral/rallyresp.py
1313
pyral/restapi.py
14-
examples/getitem.py
14+
examples/typedef.py
15+
examples/get_schema.py
1516
examples/periscope.py
17+
examples/getitem.py
1618
examples/showdefects.py
1719
examples/statecounts.py
20+
examples/wkspcounts.py
1821
examples/crtask.py
1922
examples/uptask.py
20-
examples/typedefs.py
2123
examples/repoitems.py
22-
examples/wkspcounts.py
2324
examples/builddefs.py
2425
examples/creattach.py
2526
examples/get_attachments.py
27+
examples/add_tcrs.py

README.rst

Lines changed: 17 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ pyral - A Python toolkit for the Rally REST API
22
===============================================
33

44

5-
The `pyral <http://github.com/Rallydev/pyral>`_ package enables you to push, pull
5+
The `pyral <http://github.com/RallyTools/RallyRestToolkitForPython>`_ package enables you to push, pull
66
and otherwise wrangle the data in your Rally subscription using the popular
77
and productive Python language.
88
The ``pyral`` package provides a smooth and easy to use veneer on top
@@ -24,7 +24,7 @@ Files are available at the `download page`_ .
2424

2525
.. _download page: http://pypi.python.org/pypi/pyral
2626

27-
The git repository is available at http://github.com/Rallydev/pyral
27+
The git repository is available at https://github.com/RallyTools/RallyRestToolkitForPython
2828

2929

3030
Installation
@@ -59,7 +59,7 @@ relevant packages.
5959
>> import requests
6060
>> import pyral
6161
>> pyral.__version__
62-
(0, 9, 4)
62+
(1, 0, 0)
6363

6464

6565

@@ -228,7 +228,6 @@ create an instance of the Rally class.
228228
PASSWORD password for the Rally subscription UserName
229229
WORKSPACE Rally Workspace
230230
PROJECT Rally Project
231-
VERSION Rally REST Web Services API version
232231
====================================== =========================================
233232

234233
The item names in config files **are** case sensitive.
@@ -246,25 +245,28 @@ The item names in config files **are** case sensitive.
246245
--rallyPassword=<bar> password associated with the Rally UserName
247246
--rallyWorkspace=<bar> Workspace in Rally you want to interact with
248247
--rallyProject=<bar> Project in Rally you want to interact with
249-
--rallyVersion=<bar> Rally REST Web Services API version
250248
====================================== =========================================
251249

252250

253251
Prerequisites
254252
-------------
255253

256-
* Python 2.6 or 2.7
257-
* The requests_ package, 0.9.3 or better
258-
Recommend using requests 2.0.0 or better. 2.0.0 finally includes support for https proxy.
259-
Developed using requests 0.9.3.
260-
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
261-
obtaining a pyral Rally instance to overcome this issue.
262-
If you are using requests < 1.0.0, you must also have certifi-0.0.8 (available on PyPI)
254+
* Python 2.6 or 2.7 (2.7 is preferred)
255+
* The requests_ package, 2.0.0 or better (2.0.0 finally includes support for https proxy)
263256

264257
.. _requests: http://github.com/kennethreitz/requests
265258

266259
Versions
267260
--------
261+
262+
* 1.0.0 -
263+
Default WSAPI version in config is v2.0. This version is not compatible
264+
with Rally WSAPI version 1.x.
265+
Adjusted the RallyUrlBuilder (via RallyQueryFormatter) to be more resilient
266+
with respect to many more "special" characters (non-alphanumeric).
267+
Retrieving the meta data uses the v2.0 schema endpoint.
268+
No longer support a version keyword argument when obtaining a Rally instance.
269+
268270
* 0.9.4 -
269271
Adjusted Rally __init__ to accommodate using requests 0.x, 1.x, 2.x versions.
270272
Factored out query building and fixed constructing multi condition queries.
@@ -323,22 +325,15 @@ Versions
323325

324326
TODO
325327
----
326-
* Python 3.3 + support
327-
328-
* Support Rally WSAPI 2.0
329-
330-
* Expand the documentation
331-
332-
* Expand the repertoire of example scripts
328+
* Python 3.3+ support
333329

334-
* Refactor the source code to make use decorators in pyral.restapi,
335-
dynamically construct the Rally schema hierarchy economically.
330+
* Dynamically construct the Rally schema hierarchy economically.
336331

337332

338333
License
339334
-------
340335

341-
BSD3-style license. Copyright (c) 2010-2013 Rally Software Development.
336+
BSD3-style license. Copyright (c) 2010-2014 Rally Software Development.
342337

343338
See the LICENSE file provided with the source distribution for full details.
344339

README.short

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,8 @@ that may be references or collections via the familiar dot '.' notation.
1717
Requirements
1818
------------
1919

20-
The pyral package requires the use of Kenneth Reitz's requests package.
21-
The pyral package was originally developed and tested using requests-0.9.3.
22-
As of requests-2.0.0, there is support for HTTPS over HTTP proxy via the CONNECT request.
23-
Use of requests-2.x or better is recommended for use with pyral.
20+
The pyral package requires the use of Kenneth Reitz's requests package using version 2.0.0 or better.
21+
As of requests version 2.0.0, there is support for HTTPS over HTTP proxy via the CONNECT request.
2422
The requests package can be found via the Python Package Index site (http://pypi/python.org/index).
2523

2624

build_dist.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/opt/local/bin/python2.6
1+
#!/usr/bin/env python
22

33
#############################################################################
44
#
@@ -11,7 +11,7 @@
1111
import zipfile
1212

1313
PACKAGE_NAME = "pyral"
14-
VERSION = "0.9.4"
14+
VERSION = "1.0.0"
1515

1616
AUX_FILES = ['MANIFEST.in',
1717
'LICENSE',
@@ -28,11 +28,13 @@
2828
'uptask.py',
2929
'statecounts.py',
3030
'repoitems.py',
31-
'typedefs.py',
31+
'get_schema.py',
32+
'typedef.py',
3233
'wkspcounts.py',
3334
'builddefs.py',
3435
'creattach.py',
3536
'get_attachments.py',
37+
'add_tcrs.py'
3638
]
3739
DOC_FILES = ['doc/Makefile',
3840
'doc/source/conf.py',
@@ -53,10 +55,12 @@
5355
#
5456
# The TEST_FILES are **NOT** placed into the distribution packages
5557
#
56-
TEST_FILES = ['test/test_conn.py',
58+
TEST_FILES = ['test/rally_targets.py',
59+
'test/test_conn.py',
5760
'test/test_context.py',
5861
'test/test_convenience.py',
5962
'test/test_inflation.py',
63+
'test/test_field_access.py',
6064
'test/test_query.py',
6165
'test/test_wksprj_setting.py',
6266
'test/test_attachments.py',

dists/pyral-1.0.0.tar.gz

118 KB
Binary file not shown.

dists/pyral-1.0.0.zip

142 KB
Binary file not shown.
-232 Bytes
Binary file not shown.

doc/build/doctrees/index.doctree

-315 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)