# If the releaselevel is 'final', then the tarball will be major.minor.micro.
# Otherwise it is major.minor.micro~$(revno).
-__version__ = (0, 0, 1, 'dev', 0)
+__version__ = (0, 0, 1, 'final', 0)
def try_import(name, alternative=None, error_callback=None):
import os.path
import extras
+testtools = extras.try_import('testtools')
def get_version():
def get_long_description():
readme_path = os.path.join(
os.path.dirname(__file__), 'README.rst')
- return open(manual_path).read()
+ return open(readme_path).read()
+
+
+cmdclass = {}
+
+if testtools is not None:
+ cmdclass['test'] = testtools.TestCommand
setup(name='extras',
'extras',
'extras.tests',
],
- cmdclass={'test': testtools.TestCommand})
+ cmdclass=cmdclass)