Commit d63e4dc4 authored by Bram Schoenmakers's avatar Bram Schoenmakers

First attempt to create a topydo package.

More or less works, need to make Main.py more accessible.
parent d687f6bc
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",
)
#!/bin/bash #!/bin/bash
export PYTHONPATH=../lib export PYTHONPATH=../topydo/lib
if [ -n "$1" ]; then if [ -n "$1" ]; then
TESTS=$1 TESTS=$1
......
...@@ -19,27 +19,26 @@ ...@@ -19,27 +19,26 @@
""" 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