File tree Expand file tree Collapse file tree 5 files changed +42
-22
lines changed
Expand file tree Collapse file tree 5 files changed +42
-22
lines changed Original file line number Diff line number Diff line change 11tasklib
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
1010tasklib is a Python library for interacting with taskwarrior _ databases, using
1111a queryset API similar to that of Django's ORM.
Original file line number Diff line number Diff line change 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.
Original file line number Diff line number Diff line change 22
33install_requirements = ['pytz' , 'tzlocal' ]
44
5- version = '2.2.1 '
5+ version = '2.3.0 '
66
77try :
88 import importlib
1717 author = 'Rob Golding' ,
18181919 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' ,
Original file line number Diff line number Diff line change 22from .task import Task
33from .serializing import local_zone
44
5- __version__ = '2.2.1 '
5+ __version__ = '2.3.0 '
Original file line number Diff line number Diff 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 ):
You can’t perform that action at this time.
0 commit comments