Skip to content

Commit 6c51b42

Browse files
committed
dropped all support for Python 2.7
1 parent 31b1790 commit 6c51b42

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

README.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,8 @@ Prerequisites
263263
Versions
264264
--------
265265
**1.5.0**
266+
Dropped all support for Python 2.7 constructs.
267+
Validated support for Python 3.7 and 3.8.
266268
Fixed defect where attachments were not returned from getAttachments method.
267269
Fixed defect where the creation or update of a custom PortfolioItem sub-type did not return a
268270
valid pyral instance of the sub-type.

VERSIONS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,12 @@
137137
1.4.2 - Aug 2018
138138

139139
1.5.0 - Feb 2021
140+
Dropped all support for Python 2.7 constructs.
141+
Validated support for Python 3.7 and 3.8.
140142
Updated/fixed some doc verbiage.
141143
Fixed retrieval of attachments.
142144
Fixed return value of call to create an instance of a PortfolioItem custom sub-type.
145+
Fixed defect in returning correct number of items when the start index is specified as an integer.
146+
Fixed defect where a feature item could not be added to a Milestones collection
147+
Fixed defect in query construction (and results) when a target attribute value contains a '&' character.
148+

pyral/hydrate.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@
1212
__version__ = (1, 5, 0)
1313

1414
import sys
15-
import imp
16-
imp.reload(sys) # Reload gets a sys module that has the setdefaultencoding before site.py deletes it
1715
import six
18-
six.PY2 and sys.setdefaultencoding('UTF8') # not required in python 3
1916

2017
from .entity import classFor, getSchemaItem, addEntity, PortfolioItem, \
2118
VERSION_ATTRIBUTES, MINIMAL_ATTRIBUTES, PORTFOLIO_ITEM_SUB_TYPES

test/test_pull_request_copied.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,6 @@ def test_post_pull_request():
7575
#assert expectedErrMsg == actualErrVerbiage
7676

7777
def test_query_pull_requests():
78-
#rally = Rally(server=RALLY, user=RALLY_USER, password=RALLY_PSWD)
79-
#rally = Rally(server=TESTN, user=TESTN_USER, password=TESTN_PSWD)
8078
rally = Rally(server=RALLY, apikey=RALLY_SUB_100_API_KEY)
8179
attrs = "ExternalId,ExternalFormattedId,Artifact,Name,Url,Description"
8280
response = rally.get('PullRequest', fetch=attrs, project=None)
@@ -87,8 +85,9 @@ def test_query_pull_requests():
8785
assert len(prs) > 0
8886
assert prs[0].Artifact
8987
assert prs[0].Artifact.__class__.__name__ == 'HierarchicalRequirement'
90-
print (prs[0].Artifact.oid)
91-
print(prs[0].details())
88+
#print (prs[0].Artifact.oid)
89+
#for wob in prs[0].details():
90+
# print(wob)
9291

9392
# def test_creation_date_query():
9493
# rally = Rally(server=RALLY, apikey=RALLY_SUB_100_API_KEY)

0 commit comments

Comments
 (0)