--HG-- rename : test/3rdparty/testscenarios-0.2/.bzrignore => test/3rdparty/testscenarios-0.4/.bzrignore rename : test/3rdparty/testscenarios-0.2/Apache-2.0 => test/3rdparty/testscenarios-0.4/Apache-2.0 rename : test/3rdparty/testscenarios-0.2/BSD => test/3rdparty/testscenarios-0.4/BSD rename : test/3rdparty/testscenarios-0.2/COPYING => test/3rdparty/testscenarios-0.4/COPYING rename : test/3rdparty/testscenarios-0.2/GOALS => test/3rdparty/testscenarios-0.4/GOALS rename : test/3rdparty/testscenarios-0.2/HACKING => test/3rdparty/testscenarios-0.4/HACKING rename : test/3rdparty/testscenarios-0.2/MANIFEST.in => test/3rdparty/testscenarios-0.4/MANIFEST.in rename : test/3rdparty/testscenarios-0.2/Makefile => test/3rdparty/testscenarios-0.4/Makefile rename : test/3rdparty/testscenarios-0.2/doc/__init__.py => test/3rdparty/testscenarios-0.4/doc/__init__.py rename : test/3rdparty/testscenarios-0.2/doc/example.py => test/3rdparty/testscenarios-0.4/doc/example.py rename : test/3rdparty/testscenarios-0.2/doc/test_sample.py => test/3rdparty/testscenarios-0.4/doc/test_sample.py rename : test/3rdparty/testtools-0.9.12/doc/conf.py => test/3rdparty/testtools-0.9.34/doc/conf.py rename : test/3rdparty/testtools-0.9.12/doc/make.bat => test/3rdparty/testtools-0.9.34/doc/make.bat rename : test/3rdparty/testtools-0.9.12/testtools/_compat2x.py => test/3rdparty/testtools-0.9.34/testtools/_compat2x.py rename : test/3rdparty/testtools-0.9.12/testtools/_spinner.py => test/3rdparty/testtools-0.9.34/testtools/_spinner.py rename : test/3rdparty/testtools-0.9.12/testtools/distutilscmd.py => test/3rdparty/testtools-0.9.34/testtools/distutilscmd.py rename : test/3rdparty/testtools-0.9.12/testtools/monkey.py => test/3rdparty/testtools-0.9.34/testtools/monkey.py rename : test/3rdparty/testtools-0.9.12/testtools/tests/test_monkey.py => test/3rdparty/testtools-0.9.34/testtools/tests/test_monkey.py rename : test/3rdparty/testtools-0.9.12/testtools/tests/test_runtest.py => test/3rdparty/testtools-0.9.34/testtools/tests/test_runtest.py rename : test/3rdparty/testtools-0.9.12/testtools/utils.py => test/3rdparty/testtools-0.9.34/testtools/utils.py
67 lines
1.9 KiB
Python
Executable File
67 lines
1.9 KiB
Python
Executable File
#!/usr/bin/env python
|
|
try:
|
|
# If the user has setuptools / distribute installed, use it
|
|
from setuptools import setup
|
|
except ImportError:
|
|
# Otherwise, fall back to distutils.
|
|
from distutils.core import setup
|
|
extra = {}
|
|
else:
|
|
extra = {
|
|
'install_requires': [
|
|
'extras',
|
|
'testtools>=0.9.34',
|
|
]
|
|
}
|
|
|
|
|
|
def _get_version_from_file(filename, start_of_line, split_marker):
|
|
"""Extract version from file, giving last matching value or None"""
|
|
try:
|
|
return [x for x in open(filename)
|
|
if x.startswith(start_of_line)][-1].split(split_marker)[1].strip()
|
|
except (IOError, IndexError):
|
|
return None
|
|
|
|
|
|
VERSION = (
|
|
# Assume we are in a distribution, which has PKG-INFO
|
|
_get_version_from_file('PKG-INFO', 'Version:', ':')
|
|
# Must be a development checkout, so use the Makefile
|
|
or _get_version_from_file('Makefile', 'VERSION', '=')
|
|
or "0.0")
|
|
|
|
|
|
setup(
|
|
name='python-subunit',
|
|
version=VERSION,
|
|
description=('Python implementation of subunit test streaming protocol'),
|
|
long_description=open('README').read(),
|
|
classifiers=[
|
|
'Intended Audience :: Developers',
|
|
'Programming Language :: Python :: 3',
|
|
'Programming Language :: Python',
|
|
'Topic :: Software Development :: Testing',
|
|
],
|
|
keywords='python test streaming',
|
|
author='Robert Collins',
|
|
author_email='subunit-dev@lists.launchpad.net',
|
|
url='http://launchpad.net/subunit',
|
|
packages=['subunit', 'subunit.tests'],
|
|
package_dir={'subunit': 'python/subunit'},
|
|
scripts = [
|
|
'filters/subunit-1to2',
|
|
'filters/subunit-2to1',
|
|
'filters/subunit2gtk',
|
|
'filters/subunit2junitxml',
|
|
'filters/subunit2pyunit',
|
|
'filters/subunit-filter',
|
|
'filters/subunit-ls',
|
|
'filters/subunit-notify',
|
|
'filters/subunit-stats',
|
|
'filters/subunit-tags',
|
|
'filters/tap2subunit',
|
|
],
|
|
**extra
|
|
)
|