-
Notifications
You must be signed in to change notification settings - Fork 18
/
setup.py
57 lines (49 loc) · 1.47 KB
/
setup.py
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
from setuptools import setup, find_packages
import version
# temporary chdir is needed so that scons can build this from another cwd
import os
old_dir = os.getcwd()
new_dir = os.path.dirname(__file__)
if new_dir:
os.chdir(new_dir)
else:
new_dir = "."
long_desc = open("%s/README.rst" % new_dir).read()
depends = ["argh>=0.13"]
try:
import json
except ImportError:
depends.append("simplejson")
try:
import argparse
except ImportError:
depends.append("argparse")
setup(
name = 'poni',
version = version.get_project_version("poni/version.py"),
description = 'system configuration software',
long_description = long_desc,
author = "Mika Eloranta",
author_email = "[email protected]",
url = "http://github.com/melor/poni",
classifiers = [
"Programming Language :: Python",
"Development Status :: 4 - Beta",
"License :: OSI Approved :: Apache Software License",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Operating System :: OS Independent",
"Topic :: System :: Installation/Setup",
"Topic :: System :: Software Distribution",
"Topic :: Software Development :: Libraries :: Python Modules",
],
packages = find_packages(),
zip_safe = False,
install_requires = depends,
entry_points = {
'console_scripts': [
'poni = poni.tool:Tool.run_exit',
]
}
)
os.chdir(old_dir)