2 """Distutils installer for extras."""
4 from setuptools
import setup
8 testtools_cmd
= extras
.try_import('testtools.TestCommand')
12 """Return the version of extras that we are building."""
14 str(component
) for component
in extras
.__version
__[0:3])
18 def get_long_description():
19 readme_path
= os
.path
.join(
20 os
.path
.dirname(__file__
), 'README.rst')
21 return open(readme_path
).read()
26 if testtools_cmd
is not None:
27 cmdclass
['test'] = testtools_cmd
31 author
='Testing cabal',
32 author_email
='testtools-dev@lists.launchpad.net',
33 url
='https://github.com/testing-cabal/extras',
34 description
=('Useful extra bits for Python - things that shold be '
35 'in the standard library'),
36 long_description
=get_long_description(),
37 version
=get_version(),
39 "Intended Audience :: Developers",
40 "License :: OSI Approved :: MIT License",
41 "Programming Language :: Python",
42 "Programming Language :: Python :: 3",