forked from nose-devs/nose2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
80 lines (69 loc) · 2.26 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
import os
import sys
NAME = 'nose2'
VERSION = '0.5.0'
PACKAGES = ['nose2', 'nose2.plugins', 'nose2.plugins.loader',
'nose2.tests', 'nose2.tests.functional', 'nose2.tests.unit',
'nose2.tools', 'nose2.backports']
SCRIPTS = ['bin/nose2']
DESCRIPTION = 'nose2 is the next generation of nicer testing for Python'
URL = 'https://github.com/nose-devs/nose2'
LONG_DESCRIPTION = open(
os.path.join(os.path.dirname(__file__), 'README.rst')).read()
CLASSIFIERS = [
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Operating System :: OS Independent',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Software Development :: Testing',
]
AUTHOR = 'Jason Pellerin'
AUTHOR_EMAIL = 'jpellerin+nose@gmail.com'
KEYWORDS = ['unittest', 'testing', 'tests']
params = dict(
name=NAME,
version=VERSION,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
packages=PACKAGES,
scripts=SCRIPTS,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
url=URL,
classifiers=CLASSIFIERS,
keywords=KEYWORDS,
extras_require={
'coverage_plugin': ["cov-core>=1.12"],
}
)
py_version = sys.version[:3]
SCRIPT1 = 'nose2'
SCRIPT2 = 'nose2-%s' % (py_version,)
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
else:
REQS = ['six>=1.1']
if sys.version_info < (2, 7):
REQS.extend(['unittest2>=0.5.1,<0.6', 'argparse>=1.2.1,<1.3'])
params['entry_points'] = {
'console_scripts': [
'%s = nose2:discover' % SCRIPT1,
'%s = nose2:discover' % SCRIPT2,
],
}
params['install_requires'] = REQS
params['test_suite'] = 'nose2.compat.unittest.collector'
setup(**params)