s4-dsdb/reanimate: Use 'show deleted' control in modify operations too
[Samba.git] / lib / extras / setup.py
blob56612d00b99e304877a19ea91b4eefb4244dd8d5
1 #!/usr/bin/env python
2 """Distutils installer for extras."""
4 from setuptools import setup
5 import os.path
7 import extras
8 testtools_cmd = extras.try_import('testtools.TestCommand')
11 def get_version():
12 """Return the version of extras that we are building."""
13 version = '.'.join(
14 str(component) for component in extras.__version__[0:3])
15 return version
18 def get_long_description():
19 readme_path = os.path.join(
20 os.path.dirname(__file__), 'README.rst')
21 return open(readme_path).read()
24 cmdclass = {}
26 if testtools_cmd is not None:
27 cmdclass['test'] = testtools_cmd
30 setup(name='extras',
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(),
38 classifiers=[
39 "Intended Audience :: Developers",
40 "License :: OSI Approved :: MIT License",
41 "Programming Language :: Python",
42 "Programming Language :: Python :: 3",
44 packages=[
45 'extras',
46 'extras.tests',
48 cmdclass=cmdclass)