Set the license and the long description. Useful for publishing to PyPI.

This commit is contained in:
Jonathan Lange
2010-09-11 14:44:56 +01:00
parent 0b7f7e3a8e
commit c3cb7e20fa

View File

@@ -2,6 +2,8 @@
"""Distutils installer for testtools."""
from distutils.core import setup
import os
import testtools
version = '.'.join(str(component) for component in testtools.__version__[0:3])
phase = testtools.__version__[3]
@@ -15,11 +17,19 @@ if phase != 'final':
# Preserve the version number but give it a revno prefix
version = version + '~%s' % t.branch.revno()
def get_long_description():
manual_path = os.path.join(os.path.dirname(__file__), 'MANUAL')
return open(manual_path).read()
setup(name='testtools',
author='Jonathan M. Lange',
author_email='jml+testtools@mumak.net',
url='https://launchpad.net/testtools',
description=('Extensions to the Python standard library unit testing '
'framework'),
long_description=get_long_description(),
version=version,
classifiers=["License :: OSI Approved :: MIT License"],
packages=['testtools', 'testtools.testresult', 'testtools.tests'])