summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiziano Müller <dev-zero@gentoo.org>2018-10-23 08:34:13 +0200
committerTiziano Müller <dev-zero@gentoo.org>2018-10-23 08:34:13 +0200
commitd613f7b474c3f714cc8be0b42642d07208295000 (patch)
tree3c4e97bc37a15b3bbed8aeb290d5f46ae3b4f197
parentdev-vcs/PyGitUp: version bump (diff)
downloaddev-zero-d613f7b474c3f714cc8be0b42642d07208295000.tar.gz
dev-zero-d613f7b474c3f714cc8be0b42642d07208295000.tar.bz2
dev-zero-d613f7b474c3f714cc8be0b42642d07208295000.zip
dev-python/taskw: version bump
-rw-r--r--dev-python/taskw/Manifest2
-rw-r--r--dev-python/taskw/files/0.8.6-test-set-the-timezone-to-UTC-when-adding-a-task.patch44
-rw-r--r--dev-python/taskw/taskw-1.2.0.ebuild (renamed from dev-python/taskw/taskw-0.8.6.ebuild)8
3 files changed, 4 insertions, 50 deletions
diff --git a/dev-python/taskw/Manifest b/dev-python/taskw/Manifest
index e4e4787..0ae3e87 100644
--- a/dev-python/taskw/Manifest
+++ b/dev-python/taskw/Manifest
@@ -1 +1 @@
-DIST taskw-0.8.6.tar.gz 37293 SHA256 341a165a1c2ef94fb1c2a49a785357377f04a0d55cabe9563179849497e47146 SHA512 0969eb4b2c4fb664a8568b373081b822f889c887a51609987bb88a25c1febc8cca9f32210b7825751fe024cb57642d697af332803e83d8952c75034b7e80b91e WHIRLPOOL 540a77473aa8a2f05eebe0f6025c46e4fa550634933fa7f8a2dc72fe316ead6c747a36c90a0a0beffdcfd740560b8b5e545f42983b2a07f52ad785682aa2e723
+DIST taskw-1.2.0.tar.gz 41059 SHA256 fadd8afc12df026c3c2d39b633c55d3337f7dca95602fce2239455a048bc85fe SHA512 3381f9b39ec45fd90f8a82d9c3c324a9c9e7413fac6fbb36b852849332e3eb2060209ab56ed4b815f618a833b0449541f7dd81f5168ba2c12acc5b39defc4cc7 WHIRLPOOL 08031fd427a4093bb56b65f0e43b4dbe749401ecedeb06b592b84531602bcb07afdc4aa4cf7390ba018521191491538a2888480ccfccea8b038b3059b5a1dd76
diff --git a/dev-python/taskw/files/0.8.6-test-set-the-timezone-to-UTC-when-adding-a-task.patch b/dev-python/taskw/files/0.8.6-test-set-the-timezone-to-UTC-when-adding-a-task.patch
deleted file mode 100644
index 12ece25..0000000
--- a/dev-python/taskw/files/0.8.6-test-set-the-timezone-to-UTC-when-adding-a-task.patch
+++ /dev/null
@@ -1,44 +0,0 @@
-From 9323d6755cebcbde36c0d8fbe10847bce1329f9d Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Tiziano=20M=C3=BCller?= <tm@dev-zero.ch>
-Date: Tue, 2 Dec 2014 17:29:02 +0100
-Subject: [PATCH] test: set the timezone to UTC when adding a task
-
-This fixes issue #75 where the date set was interpreted in localtime but
-the date returned was in UTC, making the assertion fail.
----
- taskw/test/test_datas.py | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
-diff --git a/taskw/test/test_datas.py b/taskw/test/test_datas.py
-index 22c276a..b2ede4c 100644
---- a/taskw/test/test_datas.py
-+++ b/taskw/test/test_datas.py
-@@ -5,6 +5,7 @@ import sys
- import shutil
- import tempfile
- import datetime
-+import dateutil.tz
-
- from taskw import TaskWarriorDirect, TaskWarriorShellout
-
-@@ -183,7 +184,7 @@ class _BaseTestDB(object):
- "foobar",
- uuid="1234-1234",
- project="some_project",
-- entry=datetime.datetime(2011, 1, 1),
-+ entry=datetime.datetime(2011, 1, 1, tzinfo=dateutil.tz.tzutc()),
- )
- tasks = self.tw.load_tasks()
- eq_(len(tasks['pending']), 1)
-@@ -205,7 +206,7 @@ class _BaseTestDB(object):
- def test_add_with_uda_date(self):
- self.tw.task_add(
- "foobar",
-- somedate=datetime.datetime(2011, 1, 1),
-+ somedate=datetime.datetime(2011, 1, 1, tzinfo=dateutil.tz.tzutc()),
- )
- tasks = self.tw.load_tasks()
- eq_(len(tasks['pending']), 1)
---
-2.1.3
-
diff --git a/dev-python/taskw/taskw-0.8.6.ebuild b/dev-python/taskw/taskw-1.2.0.ebuild
index 39a9ba6..3d6fe26 100644
--- a/dev-python/taskw/taskw-0.8.6.ebuild
+++ b/dev-python/taskw/taskw-1.2.0.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
-EAPI=5
-PYTHON_COMPAT=( python{2_7,3_2,3_3} )
+EAPI=6
+PYTHON_COMPAT=( python2_7 python3_{6,7} )
inherit distutils-r1
@@ -24,8 +24,6 @@ DEPEND="${RDEPEND}
test? ( dev-python/unittest2[${PYTHON_USEDEP}]
dev-python/nose[${PYTHON_USEDEP}] )"
-PATCHES=( "${FILESDIR}/${PV}-test-set-the-timezone-to-UTC-when-adding-a-task.patch" )
-
python_test() {
nosetests || die
}