forked from CleanCut/green
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
61 lines (57 loc) · 2.2 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
from setuptools import setup, find_packages
import platform
import os
import sys
version = open(os.path.join(os.path.dirname(__file__), 'green', 'VERSION')).read().strip()
long_description = open('README-pypi.rst').read()
# Calculate dependencies
dependencies = [
'python-termstyle'
]
if platform.system() == 'Windows':
dependencies.append('colorama')
if sys.version_info[0] == 2:
dependencies.append('mock')
# Actual setup call
setup(
name = 'green',
packages = find_packages(),
package_data = {'green' : ['VERSION']},
version = version,
install_requires = dependencies,
entry_points = {
'console_scripts' : [
'green = green:main',
'green%d = green:main' % sys.version_info[:1], # green2 or green3
'green%d.%d = green:main' % sys.version_info[:2], # green3.4 etc.
],
},
test_suite='green.test',
description = 'Green is a clean, colorful test runner for Python unit tests. Compare it to trial or nose.',
long_description = long_description,
author = 'Nathan Stocks',
author_email = 'nathan.stocks@gmail.com',
license = 'MIT',
url = 'https://github.com/CleanCut/green',
download_url = 'https://github.com/CleanCut/green/tarball/' + version,
keywords = ['nose', 'nose2', 'trial', 'pytest', 'py.test', 'tox', 'green',
'tdd', 'test', 'tests', 'functional test', 'system test', 'unit test',
'unittest', 'color', 'tabular', 'clean', 'red', 'rednose'],
classifiers = [
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Operating System :: POSIX :: Linux',
'Operating System :: Unix',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Quality Assurance',
'Topic :: Software Development :: Testing',
'Topic :: Utilities'],
)