Permalink
Browse files

Finally a working setup.py.

The trick was the MANIFEST.in file. Also, from testing the pip
installation, I realized todo.py would fail on trying to list the files
in the actions directory if it did not already exist. So I added a check
for it.
  • Loading branch information...
1 parent 861eab9 commit 0e76cc9664fc1fca96397be7e2b95517c64a3cab @sigmavirus24 committed May 26, 2012
Showing with 3 additions and 2 deletions.
  1. +1 −0 MANIFEST.in
  2. +1 −1 setup.py
  3. +1 −1 todo.py
View
@@ -0,0 +1 @@
+include README.rst LICENSE HISTORY.rst
View
@@ -17,7 +17,7 @@
setup(
name="todo.py",
- version="0.3-beta-1",
+ version="0.3-beta-3",
description="Python version of Gina Trapani's popular bash script.",
long_description="\n\n".join([open("README.rst").read(),
open("HISTORY.rst").read()]),
View
@@ -1102,7 +1102,7 @@ def opt_setup():
_pathc([CONFIG['TODO_DIR'], '/actions']))
arg = args.pop(0).lower()
- if arg in os.listdir(actions_dir):
+ if os.path.exists(actions_dir) and arg in os.listdir(actions_dir):
arg = concat([actions_dir, arg], '/')
args.insert(0, arg)
Popen(args)

0 comments on commit 0e76cc9

Please sign in to comment.