-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
50 lines (46 loc) · 1.46 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
# Copyright (c) 2009-2012 Simplistix Ltd
# See license.txt for license details.
import os
from ConfigParser import RawConfigParser
from setuptools import setup, find_packages
package_name = 'checker'
base_dir = os.path.dirname(__file__)
# read test requirements from tox.ini
config = RawConfigParser()
config.read(os.path.join(base_dir, 'tox.ini'))
test_requires = []
for item in config.get('testenv', 'deps').split():
test_requires.append(item)
# Tox doesn't need itself, but we need it for testing.
test_requires.append('tox')
setup(
name=package_name,
version=file(os.path.join(base_dir,package_name,'version.txt')).read().strip(),
author='Chris Withers',
author_email='chris@simplistix.co.uk',
license='MIT',
description="A tool for checking system configuration.",
long_description=open(os.path.join(base_dir,'docs','description.txt')).read(),
url='http://www.simplistix.co.uk/software/python/checker',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
],
packages=find_packages(),
zip_safe=False,
install_requires = [
'argparse',
'execute',
'mailinglogger >= 3.4.0',
'zope.dottedname',
],
entry_points=dict(
console_scripts = [
'check = checker.check:main',
]
),
extras_require=dict(
test=test_requires,
)
)