/
setup.py
49 lines (45 loc) · 1.55 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
# Copyright (c) 2008-2012 Simplistix Ltd
# See license.txt for license details.
import os, sys
from ConfigParser import RawConfigParser
from setuptools import setup, find_packages
name = 'testfixtures'
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')
# Optional dependencies here:
test_requires.extend([
'zope.component',
])
# If we're on Python 2.5, we need to pin some libraries
if sys.version_info[:2] < (2, 6):
# BBB Python 2.5 compat
test_requires.append('zope.interface>=3.6.0,<4.0dev')
test_requires.append('manuel<1.6')
setup(
name=name,
version=file(os.path.join(base_dir,name,'version.txt')).read().strip(),
author='Chris Withers',
author_email='chris@simplistix.co.uk',
license='MIT',
description="A collection of helpers and mock objects for unit tests and doc tests.",
long_description=open(os.path.join(base_dir,'docs','description.txt')).read(),
url='http://www.simplistix.co.uk/software/python/testfixtures',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
],
packages=find_packages(),
zip_safe=False,
include_package_data=True,
extras_require=dict(
test=test_requires,
)
)