Skip to content

Commit 63243ba

Browse files
committed
Merge branch 'develop'
2 parents 5608030 + 90ed64f commit 63243ba

File tree

5 files changed

+42
-22
lines changed

5 files changed

+42
-22
lines changed

README.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
tasklib
22
=======
33

4-
.. image:: https://travis-ci.org/robgolding63/tasklib.png?branch=develop
5-
:target: http://travis-ci.org/robgolding63/tasklib
4+
.. image:: https://travis-ci.org/robgolding/tasklib.png?branch=develop
5+
:target: http://travis-ci.org/robgolding/tasklib
66

7-
.. image:: https://coveralls.io/repos/robgolding63/tasklib/badge.png?branch=develop
8-
:target: https://coveralls.io/r/robgolding63/tasklib?branch=develop
7+
.. image:: https://coveralls.io/repos/robgolding/tasklib/badge.png?branch=develop
8+
:target: https://coveralls.io/r/robgolding/tasklib?branch=develop
99

1010
tasklib is a Python library for interacting with taskwarrior_ databases, using
1111
a queryset API similar to that of Django's ORM.

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 = '2.2.0'
54+
version = '2.3.0'
5555
# The full version, including alpha/beta/rc tags.
56-
release = '2.2.0'
56+
release = '2.3.0'
5757

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

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
install_requirements = ['pytz', 'tzlocal']
44

5-
version = '2.2.1'
5+
version = '2.3.0'
66

77
try:
88
import importlib
@@ -17,8 +17,8 @@
1717
author='Rob Golding',
1818
author_email='[email protected]',
1919
license='BSD',
20-
url='https://github.com/robgolding63/tasklib',
21-
download_url='https://github.com/robgolding63/tasklib/downloads',
20+
url='https://github.com/robgolding/tasklib',
21+
download_url='https://github.com/robgolding/tasklib/downloads',
2222
packages=find_packages(),
2323
include_package_data=True,
2424
test_suite='tasklib.tests',

tasklib/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
from .task import Task
33
from .serializing import local_zone
44

5-
__version__ = '2.2.1'
5+
__version__ = '2.3.0'

tasklib/tests.py

Lines changed: 32 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1229,13 +1229,22 @@ def test_simple_eoy_conversion(self):
12291229
t = Task(self.tw, description='test task', due='eoy')
12301230
now = local_zone.localize(datetime.datetime.now())
12311231
eoy = local_zone.localize(datetime.datetime(
1232-
year=now.year,
1233-
month=12,
1234-
day=31,
1235-
hour=23,
1236-
minute=59,
1237-
second=59,
1232+
year=now.year+1,
1233+
month=1,
1234+
day=1,
1235+
hour=0,
1236+
minute=0,
1237+
second=0,
12381238
))
1239+
if self.tw.version < '2.5.2':
1240+
eoy = local_zone.localize(datetime.datetime(
1241+
year=now.year,
1242+
month=12,
1243+
day=31,
1244+
hour=23,
1245+
minute=59,
1246+
second=59,
1247+
))
12391248
self.assertEqual(eoy, t['due'])
12401249

12411250
def test_complex_eoy_conversion(self):
@@ -1251,14 +1260,25 @@ def test_complex_eoy_conversion(self):
12511260
now = local_zone.localize(datetime.datetime.now())
12521261
due_date = local_zone.localize(
12531262
datetime.datetime(
1254-
year=now.year,
1255-
month=12,
1256-
day=31,
1257-
hour=23,
1258-
minute=59,
1259-
second=59,
1263+
year=now.year+1,
1264+
month=1,
1265+
day=1,
1266+
hour=0,
1267+
minute=0,
1268+
second=0,
12601269
)
12611270
) - datetime.timedelta(0, 4 * 30 * 86400)
1271+
if self.tw.version < '2.5.2':
1272+
due_date = local_zone.localize(
1273+
datetime.datetime(
1274+
year=now.year,
1275+
month=12,
1276+
day=31,
1277+
hour=23,
1278+
minute=59,
1279+
second=59,
1280+
)
1281+
) - datetime.timedelta(0, 4 * 30 * 86400)
12621282
self.assertEqual(due_date, t['due'])
12631283

12641284
def test_filtering_with_string_datetime(self):

0 commit comments

Comments
 (0)