-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
29 lines (21 loc) · 680 Bytes
/
setup.py
File metadata and controls
29 lines (21 loc) · 680 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env python
import subprocess
from distutils.core import setup
def get_version():
version_cmd = 'bin/dodo-version.sh'
proc = subprocess.Popen(args=version_cmd.split(), stdout=subprocess.PIPE)
(out, err) = proc.communicate()
with file('lib/dodo/.version', 'w') as fobj:
fobj.write(out)
return out
setup(
name = 'dodo',
version = get_version(),
description = 'Very simple task management tool for a terminal access',
author = 'Eino Malinen',
author_email = 'volinthius@sci.fi',
packages = [ 'dodo' ],
package_dir = { '': 'lib' },
package_data = { '': [ '.version' ] },
scripts = [ 'bin/dodo' ]
)