Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 0e76cc9664fc1fca96397be7e2b95517c64a3cab 1 parent 861eab9
@sigmavirus24 authored
Showing with 3 additions and 2 deletions.
  1. +1 −0  MANIFEST.in
  2. +1 −1  setup.py
  3. +1 −1  todo.py
View
1  MANIFEST.in
@@ -0,0 +1 @@
+include README.rst LICENSE HISTORY.rst
View
2  setup.py
@@ -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
2  todo.py
@@ -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.
Something went wrong with that request. Please try again.