Release 0.0.1.
authorRobert Collins <robertc@robertcollins.net>
Sat, 27 Oct 2012 09:41:36 +0000 (22:41 +1300)
committerRobert Collins <robertc@robertcollins.net>
Sat, 27 Oct 2012 09:41:36 +0000 (22:41 +1300)
.gitignore
extras/__init__.py
setup.py

index b373d65dbc01020da5adb6b66f28d657532dd991..cfc114cbe95e0d780fb72118fd8646e1bb608aae 100644 (file)
@@ -12,6 +12,7 @@ var
 sdist
 develop-eggs
 .installed.cfg
+MANIFEST
 
 # Installer logs
 pip-log.txt
index bf7470bd67c889399e6a0e3e6e7c5c4e26b036e3..be926a2694e01f37b033457d969a0129b9b8b4fd 100644 (file)
@@ -22,7 +22,7 @@ __all__ = [
 # 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):
index fb7b0c3e69c5a77e668a624edbac7b74834d6309..c404979a38ff87020a018374590404c454611ecc 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -5,6 +5,7 @@ from distutils.core import setup
 import os.path
 
 import extras
+testtools = extras.try_import('testtools')
 
 
 def get_version():
@@ -17,7 +18,13 @@ 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',
@@ -33,4 +40,4 @@ setup(name='extras',
         'extras',
         'extras.tests',
         ],
-      cmdclass={'test': testtools.TestCommand})
+      cmdclass=cmdclass)