michael@0: #! /usr/bin/env python michael@0: michael@0: # Copyright (C) 2007-2012 Michael Foord & the mock team michael@0: # E-mail: fuzzyman AT voidspace DOT org DOT uk michael@0: # http://www.voidspace.org.uk/python/mock/ michael@0: michael@0: from mock import __version__ michael@0: michael@0: import os michael@0: michael@0: michael@0: NAME = 'mock' michael@0: MODULES = ['mock'] michael@0: DESCRIPTION = 'A Python Mocking and Patching Library for Testing' michael@0: michael@0: URL = "http://www.voidspace.org.uk/python/mock/" michael@0: michael@0: readme = os.path.join(os.path.dirname(__file__), 'README.txt') michael@0: LONG_DESCRIPTION = open(readme).read() michael@0: michael@0: CLASSIFIERS = [ michael@0: 'Development Status :: 5 - Production/Stable', michael@0: 'Environment :: Console', michael@0: 'Intended Audience :: Developers', michael@0: 'License :: OSI Approved :: BSD License', michael@0: 'Programming Language :: Python', michael@0: 'Programming Language :: Python :: 2', michael@0: 'Programming Language :: Python :: 3', michael@0: 'Programming Language :: Python :: 2.4', michael@0: 'Programming Language :: Python :: 2.5', michael@0: 'Programming Language :: Python :: 2.6', michael@0: 'Programming Language :: Python :: 2.7', michael@0: 'Programming Language :: Python :: 3.1', michael@0: 'Programming Language :: Python :: 3.2', michael@0: 'Programming Language :: Python :: Implementation :: CPython', michael@0: 'Programming Language :: Python :: Implementation :: PyPy', michael@0: 'Programming Language :: Python :: Implementation :: Jython', michael@0: 'Operating System :: OS Independent', michael@0: 'Topic :: Software Development :: Libraries', michael@0: 'Topic :: Software Development :: Libraries :: Python Modules', michael@0: 'Topic :: Software Development :: Testing', michael@0: ] michael@0: michael@0: AUTHOR = 'Michael Foord' michael@0: AUTHOR_EMAIL = 'michael@voidspace.org.uk' michael@0: KEYWORDS = ("testing test mock mocking unittest patching " michael@0: "stubs fakes doubles").split(' ') michael@0: michael@0: params = dict( michael@0: name=NAME, michael@0: version=__version__, michael@0: py_modules=MODULES, michael@0: michael@0: # metadata for upload to PyPI michael@0: author=AUTHOR, michael@0: author_email=AUTHOR_EMAIL, michael@0: description=DESCRIPTION, michael@0: long_description=LONG_DESCRIPTION, michael@0: keywords=KEYWORDS, michael@0: url=URL, michael@0: classifiers=CLASSIFIERS, michael@0: ) michael@0: michael@0: try: michael@0: from setuptools import setup michael@0: except ImportError: michael@0: from distutils.core import setup michael@0: else: michael@0: params['tests_require'] = ['unittest2'] michael@0: params['test_suite'] = 'unittest2.collector' michael@0: michael@0: setup(**params)