Skip to content

Commit b3dbef6

Browse files
committed
adjusted getAllowedValues so that custom fields with an allowedValues endpoint get resolved, doc update to reflect pagesize default of 500
1 parent 43d7598 commit b3dbef6

38 files changed

Lines changed: 197 additions & 80 deletions

PKG-INFO

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
Metadata-Version: 1.1
22
Name: pyral
3-
Version: 1.3.0
4-
Summary: Python toolkit for Rally REST API
3+
Version: 1.3.1
4+
Summary: Python toolkit for Agile Central (Rally) REST API
55
Home-page: https://github.com/RallyTools/RallyRestToolkitForPython
6-
Author: Kip Lehman (Rally Software Development)
6+
Author: Kip Lehman (CA Technologies, AgileCentral Business Unit)
77
License: BSD
8-
Download-URL: https://github.com/RallyTools/RallyRestToolkitForPython/raw/master/dists/pyral-1.3.0.zip
8+
Download-URL: https://github.com/RallyTools/RallyRestToolkitForPython/raw/master/dists/pyral-1.3.1.zip
99
Description: This is the README file for pyral, a package implementing a
1010
Pythonic interface to the Agile Central (formerly Rally) REST API
1111

@@ -28,18 +28,28 @@ 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.8.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.3.0) has been tested with requests 2.12.5.
31+
The most recent release of pyral (1.3.1) has been tested with requests 2.12.5.
3232
The six module is also required.
3333

3434

3535
Installation
3636
------------
3737

38+
If you want to pull down the latest release from standard Python package repository
39+
(pypi.python.org) and install the package, the easiest way is to use
40+
pip, the Python package installation utility.::
41+
42+
pip install pyral
43+
44+
Alternatively if you've got the tar.gz or zip distribution on hand, as long as you've
45+
satisfied the dependency requirements on the six and requests packages, you can use
46+
the setup mechanism.
3847
Once requests and six has been installed, run the setup.py program supplied with
3948
this distribution as::
4049

4150
python setup.py install
4251

52+
4353
Validation
4454
----------
4555

@@ -63,7 +73,7 @@ Description: This is the README file for pyral, a package implementing a
6373

6474
Keywords: rally,agilecentral,api
6575
Requires: six
66-
Requires: requests>=2.8.1
76+
Requires: requests>=2.10.1
6777
Platform: any
6878
Classifier: Development Status :: 5 - Production/Stable
6979
Classifier: Environment :: Web Environment
@@ -74,5 +84,6 @@ Classifier: Programming Language :: Python
7484
Classifier: Programming Language :: Python :: 2.6
7585
Classifier: Programming Language :: Python :: 2.7
7686
Classifier: Programming Language :: Python :: 3.5
87+
Classifier: Programming Language :: Python :: 3.6
7788
Classifier: Topic :: Internet :: WWW/HTTP
7889
Classifier: Topic :: Software Development :: Libraries

README.rst

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,20 @@ The git repository is available at https://github.com/RallyTools/RallyRestToolki
3535
Installation
3636
````````````
3737

38+
If you want to pull down the latest release from standard Python package repository
39+
(pypi.python.org) and install the package, the easiest way is to use
40+
pip, the Python package installation utility.::
41+
42+
pip install pyral
43+
44+
Alternatively, if you've got the tar.gz or zip distribution on hand, as long as you've
45+
satisfied the dependency requirements on the six and requests packages, you can use
46+
the setup mechanism.
3847
Obtain the requests_ package and install it according to that package's directions.
3948
As of requests-2.0.0, there is support for HTTPS over HTTP proxy via the CONNECT request.
4049
Use of requests-2.x or better is recommended for use with pyral.
4150
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.3.0) has been tested using requests 2.12.5.
51+
The most recent release of pyral (1.3.1) has been tested using requests 2.12.5.
4352

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

@@ -67,7 +76,7 @@ relevant packages.
6776
>> import requests
6877
>> import pyral
6978
>> pyral.__version__
70-
(1, 3, 0)
79+
(1, 3, 1)
7180

7281

7382

README.short

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,28 @@ Requirements
2020
The pyral package requires the use of Kenneth Reitz's requests package using version 2.8.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.3.0) has been tested with requests 2.12.5.
23+
The most recent release of pyral (1.3.1) has been tested with requests 2.12.5.
2424
The six module is also required.
2525

2626

2727
Installation
2828
------------
2929

30+
If you want to pull down the latest release from standard Python package repository
31+
(pypi.python.org) and install the package, the easiest way is to use
32+
pip, the Python package installation utility.::
33+
34+
pip install pyral
35+
36+
Alternatively if you've got the tar.gz or zip distribution on hand, as long as you've
37+
satisfied the dependency requirements on the six and requests packages, you can use
38+
the setup mechanism.
3039
Once requests and six has been installed, run the setup.py program supplied with
3140
this distribution as::
3241

3342
python setup.py install
3443

44+
3545
Validation
3646
----------
3747

build_dist.py

100755100644
Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@
77
#############################################################################
88

99
import sys, os
10+
import types
1011
import tarfile
1112
import zipfile
1213
import shutil
1314
import re
1415

1516
PACKAGE_NAME = "pyral"
16-
VERSION = "1.3.0"
17+
VERSION = "1.3.1"
1718

1819
AUX_FILES = ['MANIFEST.in',
1920
'PKG-INFO',
@@ -71,6 +72,7 @@
7172
'test/test_inflation.py',
7273
'test/test_field_access.py',
7374
'test/test_workspaces.py'
75+
'test/test_allowed_values.py',
7476
'test/test_wksprj_setting.py',
7577
'test/test_query.py',
7678
'test/test_big_query.py',
@@ -103,8 +105,10 @@ def main(args):
103105
reduction_pct = int(reduction_fraction * 100)
104106
print("%-52.52s %6d (%2d%%)" % (info.filename, info.compress_size, reduction_pct))
105107

106-
# got to use Python 2.7 to be able to run python setup.py bdist_wheel
107-
os.system('/usr/local/bin/python setup.py bdist_wheel')
108+
# in order to get a wheel file built, the python used has to have available a setup.py
109+
# that exposes a bdist_wheel method, which in versions of python beyond 2.7, like 3.5., 3.6, etc
110+
# you'll need to have done a 'pip install wheel' which sets up the necessary infrastructure.
111+
os.system('python setup.py bdist_wheel')
108112
wheel_file = "%s-%s-py2.py3-none-any.whl" % (PACKAGE_NAME, VERSION)
109113
# the wheel_file gets written into the dist subdir by default, no need for a copy...
110114

@@ -114,22 +118,23 @@ def main(args):
114118
doc_dir = 'doc/build/html'
115119
doc_files = [path.split('/')[-1] for path in DOC_FILES if path.startswith(doc_dir)]
116120
webdocs_zip = make_online_docs_zipfile(PACKAGE_NAME, VERSION, doc_dir, doc_files)
117-
store_packages('dist', webdocs_zip)
121+
webdocs_location = os.path.join(doc_dir, webdocs_zip)
122+
store_packages('dist', [webdocs_location])
118123

119124
################################################################################
120125

121126
def store_packages(subdir, files):
122127
for file in files:
123128
if os.path.exists(file):
124-
shutil.copy(file, '%s/%s' % (subdir, file))
129+
leaf_name = os.path.basename(file)
130+
shutil.copy(file, '%s/%s' % (subdir, leaf_name))
125131
else:
126132
problem = "No such file found: {0} to copy into {1}".format(file, subdir)
127133
sys.stderr.write(problem)
128134

129135
################################################################################
130136

131137
def package_meta(filename):
132-
import imp
133138

134139
if not os.path.exists(filename):
135140
raise Exception('No such file: %s' % filename)
@@ -141,8 +146,8 @@ def package_meta(filename):
141146
assignments = "\n".join(consties)
142147

143148
#print(assignments)
144-
pkgcfg = imp.new_module('pkgcfg')
145-
exec(assignments, pkgcfg.__dict__)
149+
pkgcfg = types.ModuleType('pkgcfg') # make a new empty module, internally.. no file created
150+
exec(assignments, pkgcfg.__dict__) # now populate the module with our assignments
146151
sys.modules['pkgcfg'] = pkgcfg
147152
return pkgcfg
148153

73.3 KB
Binary file not shown.
74.3 KB
Binary file not shown.

dist/pyral-1.3.1.docs.html.zip

873 KB
Binary file not shown.

dist/pyral-1.3.1.tar.gz

949 KB
Binary file not shown.

dists/pyral-1.3.1.tar.gz

949 KB
Binary file not shown.

dists/pyral-1.3.1.zip

328 KB
Binary file not shown.

0 commit comments

Comments
 (0)