diff options
author | Robert Collins <robertc@robertcollins.net> | 2012-10-27 22:41:36 +1300 |
---|---|---|
committer | Robert Collins <robertc@robertcollins.net> | 2012-10-27 22:41:36 +1300 |
commit | 7705fda3e07b6c1500cfb3284b8f6896a2f3d6f4 (patch) | |
tree | d67ada9d03fd015bc4cc09ed0ac4a59c7198b4a1 | |
parent | 01f6a7eefb57684912575664f1f695cadb392dcb (diff) | |
download | python-test-extras-7705fda3e07b6c1500cfb3284b8f6896a2f3d6f4.tar.gz |
Release 0.0.1.0.0.1
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | extras/__init__.py | 2 | ||||
-rwxr-xr-x | setup.py | 11 |
3 files changed, 11 insertions, 3 deletions
@@ -12,6 +12,7 @@ var sdist develop-eggs .installed.cfg +MANIFEST # Installer logs pip-log.txt diff --git a/extras/__init__.py b/extras/__init__.py index bf7470b..be926a2 100644 --- a/extras/__init__.py +++ b/extras/__init__.py @@ -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): @@ -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) |