Skip to content
This repository
Browse code

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
Ian Cordasco authored

Showing 3 changed files with 3 additions and 2 deletions. Show diff stats Hide diff stats

  1. +1 0  MANIFEST.in
  2. +1 1  setup.py
  3. +1 1  todo.py
1  MANIFEST.in
... ... @@ -0,0 +1 @@
  1 +include README.rst LICENSE HISTORY.rst
2  setup.py
@@ -17,7 +17,7 @@
17 17
18 18 setup(
19 19 name="todo.py",
20   - version="0.3-beta-1",
  20 + version="0.3-beta-3",
21 21 description="Python version of Gina Trapani's popular bash script.",
22 22 long_description="\n\n".join([open("README.rst").read(),
23 23 open("HISTORY.rst").read()]),
2  todo.py
@@ -1102,7 +1102,7 @@ def opt_setup():
1102 1102 _pathc([CONFIG['TODO_DIR'], '/actions']))
1103 1103
1104 1104 arg = args.pop(0).lower()
1105   - if arg in os.listdir(actions_dir):
  1105 + if os.path.exists(actions_dir) and arg in os.listdir(actions_dir):
1106 1106 arg = concat([actions_dir, arg], '/')
1107 1107 args.insert(0, arg)
1108 1108 Popen(args)

0 comments on commit 0e76cc9

Please sign in to comment.
Something went wrong with that request. Please try again.