author | Lennard de Rijk <ljvderijk@gmail.com> |
Sat, 04 Jul 2009 14:22:02 +0200 | |
changeset 2529 | 3f2484621f1c |
parent 780 | 042aafcd7dce |
permissions | -rw-r--r-- |
780
042aafcd7dce
Add support for coverage to our testing system.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
1 |
# setup.py for coverage. |
042aafcd7dce
Add support for coverage to our testing system.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
2 |
|
042aafcd7dce
Add support for coverage to our testing system.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
3 |
"""\ |
042aafcd7dce
Add support for coverage to our testing system.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
4 |
Coverage: code coverage testing for Python |
042aafcd7dce
Add support for coverage to our testing system.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
5 |
|
042aafcd7dce
Add support for coverage to our testing system.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
6 |
Coverage.py is a Python module that measures code coverage during test execution. |
042aafcd7dce
Add support for coverage to our testing system.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
7 |
It uses the code analysis tools and tracing hooks provided in the Python standard |
042aafcd7dce
Add support for coverage to our testing system.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
8 |
library to determine which lines are executable, and which have been executed. |
042aafcd7dce
Add support for coverage to our testing system.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
9 |
""" |
042aafcd7dce
Add support for coverage to our testing system.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
10 |
|
042aafcd7dce
Add support for coverage to our testing system.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
11 |
classifiers = """\ |
042aafcd7dce
Add support for coverage to our testing system.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
12 |
Development Status :: 5 - Production/Stable |
042aafcd7dce
Add support for coverage to our testing system.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
13 |
Environment :: Console |
042aafcd7dce
Add support for coverage to our testing system.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
14 |
Intended Audience :: Developers |
042aafcd7dce
Add support for coverage to our testing system.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
15 |
License :: OSI Approved :: BSD License |
042aafcd7dce
Add support for coverage to our testing system.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
16 |
Operating System :: OS Independent |
042aafcd7dce
Add support for coverage to our testing system.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
17 |
Programming Language :: Python |
042aafcd7dce
Add support for coverage to our testing system.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
18 |
Topic :: Software Development :: Quality Assurance |
042aafcd7dce
Add support for coverage to our testing system.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
19 |
Topic :: Software Development :: Testing |
042aafcd7dce
Add support for coverage to our testing system.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
20 |
""" |
042aafcd7dce
Add support for coverage to our testing system.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
21 |
|
042aafcd7dce
Add support for coverage to our testing system.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
22 |
version = '2.85' |
042aafcd7dce
Add support for coverage to our testing system.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
23 |
|
042aafcd7dce
Add support for coverage to our testing system.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
24 |
from setuptools import setup, find_packages |
042aafcd7dce
Add support for coverage to our testing system.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
25 |
|
042aafcd7dce
Add support for coverage to our testing system.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
26 |
doclines = __doc__.split("\n") |
042aafcd7dce
Add support for coverage to our testing system.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
27 |
|
042aafcd7dce
Add support for coverage to our testing system.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
28 |
setup( |
042aafcd7dce
Add support for coverage to our testing system.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
29 |
name = 'coverage', |
042aafcd7dce
Add support for coverage to our testing system.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
30 |
version = version, |
042aafcd7dce
Add support for coverage to our testing system.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
31 |
py_modules = ['coverage'], |
042aafcd7dce
Add support for coverage to our testing system.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
32 |
entry_points={ |
042aafcd7dce
Add support for coverage to our testing system.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
33 |
'console_scripts': [ |
042aafcd7dce
Add support for coverage to our testing system.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
34 |
'coverage = coverage:main', |
042aafcd7dce
Add support for coverage to our testing system.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
35 |
] |
042aafcd7dce
Add support for coverage to our testing system.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
36 |
}, |
042aafcd7dce
Add support for coverage to our testing system.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
37 |
zip_safe = True, # __file__ appears in the source, but doesn't break zippy-ness. |
042aafcd7dce
Add support for coverage to our testing system.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
38 |
|
042aafcd7dce
Add support for coverage to our testing system.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
39 |
author = 'Ned Batchelder', |
042aafcd7dce
Add support for coverage to our testing system.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
40 |
author_email = 'ned@nedbatchelder.com', |
042aafcd7dce
Add support for coverage to our testing system.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
41 |
description = doclines[0], |
042aafcd7dce
Add support for coverage to our testing system.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
42 |
long_description = "\n".join(doclines[2:]), |
042aafcd7dce
Add support for coverage to our testing system.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
43 |
keywords = 'code coverage testing', |
042aafcd7dce
Add support for coverage to our testing system.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
44 |
license = 'BSD', |
042aafcd7dce
Add support for coverage to our testing system.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
45 |
classifiers = filter(None, classifiers.split("\n")), |
042aafcd7dce
Add support for coverage to our testing system.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
46 |
url = 'http://nedbatchelder.com/code/modules/coverage.html', |
042aafcd7dce
Add support for coverage to our testing system.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
47 |
download_url = 'http://nedbatchelder.com/code/modules/coverage-%s.tar.gz' % version, |
042aafcd7dce
Add support for coverage to our testing system.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
48 |
) |