From 4df23c9f0e4be45a4a053cb290d2533516cb0e85 Mon Sep 17 00:00:00 2001 From: Tobias Brox Date: Wed, 30 Aug 2017 00:31:41 +0200 Subject: fix proper command name, fix dependency, compatibility fix on version number, modified defaults to fit with my workflow - due dates should expire immediately by default so we can set a proper due date --- calendar-cli | 1 + calendar-cli.py | 6 +++--- calendar_cli.py | 1 + setup.py | 4 ++-- 4 files changed, 7 insertions(+), 5 deletions(-) create mode 120000 calendar-cli create mode 120000 calendar_cli.py diff --git a/calendar-cli b/calendar-cli new file mode 120000 index 0000000..e3b7ab8 --- /dev/null +++ b/calendar-cli @@ -0,0 +1 @@ +calendar-cli.py \ No newline at end of file diff --git a/calendar-cli.py b/calendar-cli.py index cd6a2ec..9398942 100755 --- a/calendar-cli.py +++ b/calendar-cli.py @@ -34,7 +34,7 @@ import logging import sys import re -__version__ = "0.11.0-dev" +__version__ = "0.11.0.dev0" __author__ = "Tobias Brox" __author_short__ = "tobixen" __copyright__ = "Copyright 2013-2016, Tobias Brox" @@ -761,8 +761,8 @@ def main(): todo_subparsers = todo_parser.add_subparsers(title='tasks subcommand') todo_add_parser = todo_subparsers.add_parser('add') todo_add_parser.add_argument('summaryline', nargs='+') - todo_add_parser.add_argument('--set-due', default=date.today()+timedelta(365)) todo_add_parser.add_argument('--set-dtstart', default=date.today()+timedelta(1)) + todo_add_parser.add_argument('--set-due', default=date.today()+timedelta(1)) todo_add_parser.add_argument('--is-child', help="the new task is a child-task of the selected task(s)", action='store_true') for attr in vtodo_txt_one + vtodo_txt_many: if attr != 'summary': @@ -775,7 +775,7 @@ def main(): todo_list_parser = todo_subparsers.add_parser('list') todo_list_parser.add_argument('--todo-template', help="Template for printing out the event", default="{dtstart}{dtstart_passed_mark} {due}{due_passed_mark} {summary}") - todo_list_parser.add_argument('--default-due', help="Default number of days from a task is submitted until it's considered due", type=int, default=365) + todo_list_parser.add_argument('--default-due', help="Default number of days from a task is submitted until it's considered due", type=int, default=14) todo_list_parser.add_argument('--list-categories', help="Instead of listing the todo-items, list the unique categories used", action='store_true') todo_list_parser.add_argument('--timestamp-format', help="strftime-style format string for the output timestamps", default="%F (%a)") todo_list_parser.set_defaults(func=todo_list) diff --git a/calendar_cli.py b/calendar_cli.py new file mode 120000 index 0000000..e3b7ab8 --- /dev/null +++ b/calendar_cli.py @@ -0,0 +1 @@ +calendar-cli.py \ No newline at end of file diff --git a/setup.py b/setup.py index 260921e..a843a49 100644 --- a/setup.py +++ b/setup.py @@ -37,10 +37,10 @@ setup( "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content :: CGI Tools/Libraries", ], - scripts=['calendar-cli.py'], + scripts=['calendar-cli.py', 'calendar-cli'], install_requires=[ 'icalendar', - 'caldav>=0.4.0.dev', + 'caldav>=0.5.0', 'pytz', 'tzlocal' ], -- cgit v1.2.3