Commit 1ee837b2 authored by Bram Schoenmakers's avatar Bram Schoenmakers

Merge branch 'package'

parents 0bca00a7 dfab102e
#!/usr/bin/env python
# Topydo - A todo.txt client written in Python.
# Copyright (C) 2014 Bram Schoenmakers <me@bramschoenmakers.nl>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from topydo.cli.Main import CLIApplication
CLIApplication().run()
from distutils.core import setup
setup(
name = "Topydo",
packages = ["topydo", "topydo.lib", "topydo.cli"],
version = "0.1",
description = "A todo list application using the todo.txt format.",
author = "Bram Schoenmakers",
author_email = "me@bramschoenmakers.nl",
url = "https://github.com/bram85/topydo",
download_url = "https://github.com/bram85/topydo/archive/master.zip",
scripts = ["bin/topydo"],
)
#!/bin/bash #!/bin/bash
export PYTHONPATH=../lib export PYTHONPATH=../topydo/lib
if [ -n "$1" ]; then if [ -n "$1" ]; then
TESTS=$1 TESTS=$1
......
#!/usr/bin/env python
# Topydo - A todo.txt client written in Python. # Topydo - A todo.txt client written in Python.
# Copyright (C) 2014 Bram Schoenmakers <me@bramschoenmakers.nl> # Copyright (C) 2014 Bram Schoenmakers <me@bramschoenmakers.nl>
# #
# This program is free software: you can redistribute it and/or modify # This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by # it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or # the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version. # (at your option) any later version.
# #
# This program is distributed in the hope that it will be useful, # This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of # but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details. # GNU General Public License for more details.
# #
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
""" Entry file for the Python todo.txt CLI. """ """ Entry file for the Python todo.txt CLI. """
import sys import sys
sys.path.append('../lib')
from topydo.lib.AddCommand import AddCommand
from AddCommand import AddCommand from topydo.lib.AppendCommand import AppendCommand
from AppendCommand import AppendCommand from topydo.lib.ArchiveCommand import ArchiveCommand
from ArchiveCommand import ArchiveCommand from topydo.lib.DeleteCommand import DeleteCommand
from DeleteCommand import DeleteCommand from topydo.lib.DepCommand import DepCommand
from DepCommand import DepCommand from topydo.lib.DepriCommand import DepriCommand
from DepriCommand import DepriCommand from topydo.lib import Config
import Config from topydo.lib.DoCommand import DoCommand
from DoCommand import DoCommand from topydo.lib.ListCommand import ListCommand
from ListCommand import ListCommand from topydo.lib.ListContextCommand import ListContextCommand
from ListContextCommand import ListContextCommand from topydo.lib.ListProjectCommand import ListProjectCommand
from ListProjectCommand import ListProjectCommand from topydo.lib.PostponeCommand import PostponeCommand
from PostponeCommand import PostponeCommand from topydo.lib.PrettyPrinter import *
from PrettyPrinter import * from topydo.lib.PriorityCommand import PriorityCommand
from PriorityCommand import PriorityCommand from topydo.lib.SortCommand import SortCommand
from SortCommand import SortCommand from topydo.lib.TagCommand import TagCommand
from TagCommand import TagCommand from topydo.lib import TodoFile
import TodoFile from topydo.lib import TodoList
import TodoList from topydo.lib.Utils import escape_ansi
from Utils import escape_ansi
def usage(): def usage():
""" Prints the usage of the todo.txt CLI """ """ Prints the usage of the todo.txt CLI """
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment