Skip to content

Commit 6ca695b

Browse files
committed
Merge branch 'develop'
2 parents 9a7dac4 + d3e12d1 commit 6ca695b

8 files changed

Lines changed: 12 additions & 11 deletions

File tree

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,17 @@ env:
1313
- TASK_VERSION=v2.5.1
1414
python:
1515
- "2.7"
16-
- "3.3"
1716
- "3.4"
1817
- "3.5"
1918
- "3.6"
19+
- "3.7"
20+
- "3.8"
2021
install:
2122
- pip install -e .
2223
- pip install coveralls
2324
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
2425
- sudo apt-get update -qq
25-
- sudo apt-get install -qq build-essential cmake uuid-dev g++-4.8
26+
- sudo apt-get install -qq build-essential cmake uuid-dev libgnutls-dev g++-4.8
2627
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 50
2728
- git clone --recursive https://github.com/GothenburgBitFactory/taskwarrior
2829
- cd taskwarrior

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ tasklib
1010
tasklib is a Python library for interacting with taskwarrior_ databases, using
1111
a queryset API similar to that of Django's ORM.
1212

13-
Supports Python 2.6, 2.7, 3.2, 3.3 and 3.4 with taskwarrior 2.1.x and above.
13+
Supports Python 2.7, and 3.4 - 3.8 with taskwarrior 2.1.x and above.
1414
Older versions of taskwarrior are untested and may not work.
1515

1616
Requirements

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@
5151
# built documents.
5252
#
5353
# The short X.Y version.
54-
version = '1.2.1'
54+
version = '1.3.0'
5555
# The full version, including alpha/beta/rc tags.
56-
release = '1.2.1'
56+
release = '1.3.0'
5757

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

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Welcome to tasklib's documentation!
44
tasklib is a Python library for interacting with taskwarrior_ databases, using
55
a queryset API similar to that of Django's ORM.
66

7-
Supports Python 2.6, 2.7, 3.2, 3.3 and 3.4 with taskwarrior 2.1.x and above.
7+
Supports Python 2.7, 3.4 - 3.8 with taskwarrior 2.1.x and above.
88
Older versions of taskwarrior are untested and may not work.
99

1010
Requirements

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
install_requirements = ['six>=1.4', 'pytz', 'tzlocal']
44

5-
version = '1.2.1'
5+
version = '1.3.0'
66

77
try:
88
import importlib

tasklib/backends.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def add_field(field):
165165

166166
# Empty values should not be enclosed in quotation marks, see
167167
# TW-1510
168-
if serialized_value is '':
168+
if serialized_value == '':
169169
escaped_serialized_value = ''
170170
else:
171171
escaped_serialized_value = six.u("'{0}'").format(

tasklib/lazy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def __init__(self, tw, uuid):
1919

2020
def __getitem__(self, key):
2121
# LazyUUIDTask does not provide anything else other than 'uuid'
22-
if key is 'uuid':
22+
if key == 'uuid':
2323
return self._uuid
2424
else:
2525
self.replace()

tasklib/task.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def export_data(self):
125125

126126
# Empty string denotes empty serialized value, we do not want
127127
# to pass that to TaskWarrior.
128-
data_tuples = filter(lambda t: t[1] is not '', data_tuples)
128+
data_tuples = filter(lambda t: t[1] != '', data_tuples)
129129
data = dict(data_tuples)
130130
return json.dumps(data, separators=(',', ':'))
131131

@@ -477,7 +477,7 @@ def __repr__(self):
477477

478478
def __len__(self):
479479
if self._result_cache is None:
480-
self._result_cache = list(self)
480+
self._result_cache = list(self.__iter__())
481481
return len(self._result_cache)
482482

483483
def __iter__(self):

0 commit comments

Comments
 (0)