forked from testoob/testoob
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
59 lines (49 loc) · 1.9 KB
/
setup.py
File metadata and controls
59 lines (49 loc) · 1.9 KB
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
kwargs = {
'packages' : ['testoob', 'testoob.compatibility', 'testoob.reporting', 'testoob.running', 'testoob.commandline'],
'package_dir' : {'': 'src'},
'scripts' : ['src/testoob/testoob'],
# meta-data
'name' : 'testoob',
'version' : '1.16',
'author' : 'Ori Peleg',
'author_email' : 'testoob@gmail.com',
'url' : 'http://code.google.com/p/testoob',
'download_url' : 'http://code.google.com/p/testoob/downloads/list',
'license' : 'Apache License, Version 2.0',
'platforms' : ['any'],
'description' : 'Testoob - An advanced unit testing framework',
}
import sys
if sys.platform.startswith("win"):
kwargs['data_files'] = [('testoob', ['other/setcolor.exe'])],
kwargs['long_description'] = """
Testoob - Python Testing Out Of (The) Box
Testoob is an advanced unit testing framework for Python. It integrates
effortlessly with existing PyUnit (module "unittest") test suites.
Version 1.16 (2009) makes you coffee!
""".strip()
kwargs['classifiers'] = """
Development Status :: 5 - Production/Stable
Environment :: Console
Intended Audience :: Developers
License :: OSI Approved :: Apache Software License
Operating System :: OS Independent
Operating System :: Microsoft :: Windows
Operating System :: POSIX
Programming Language :: Python
Topic :: Software Development :: Quality Assurance
Topic :: Software Development :: Testing
""".strip().splitlines()
# ============================================================================
# patch distutils if it can't cope with the "classifiers" or
# "download_url" keywords
if sys.version < '2.2.3':
from distutils.dist import DistributionMetadata
DistributionMetadata.classifiers = None
DistributionMetadata.download_url = None
# run setup
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(**kwargs)