python/mock-1.0.0/setup.py

Wed, 31 Dec 2014 06:55:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:55:50 +0100
changeset 2
7e26c7da4463
permissions
-rwxr-xr-x

Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2

michael@0 1 #! /usr/bin/env python
michael@0 2
michael@0 3 # Copyright (C) 2007-2012 Michael Foord & the mock team
michael@0 4 # E-mail: fuzzyman AT voidspace DOT org DOT uk
michael@0 5 # http://www.voidspace.org.uk/python/mock/
michael@0 6
michael@0 7 from mock import __version__
michael@0 8
michael@0 9 import os
michael@0 10
michael@0 11
michael@0 12 NAME = 'mock'
michael@0 13 MODULES = ['mock']
michael@0 14 DESCRIPTION = 'A Python Mocking and Patching Library for Testing'
michael@0 15
michael@0 16 URL = "http://www.voidspace.org.uk/python/mock/"
michael@0 17
michael@0 18 readme = os.path.join(os.path.dirname(__file__), 'README.txt')
michael@0 19 LONG_DESCRIPTION = open(readme).read()
michael@0 20
michael@0 21 CLASSIFIERS = [
michael@0 22 'Development Status :: 5 - Production/Stable',
michael@0 23 'Environment :: Console',
michael@0 24 'Intended Audience :: Developers',
michael@0 25 'License :: OSI Approved :: BSD License',
michael@0 26 'Programming Language :: Python',
michael@0 27 'Programming Language :: Python :: 2',
michael@0 28 'Programming Language :: Python :: 3',
michael@0 29 'Programming Language :: Python :: 2.4',
michael@0 30 'Programming Language :: Python :: 2.5',
michael@0 31 'Programming Language :: Python :: 2.6',
michael@0 32 'Programming Language :: Python :: 2.7',
michael@0 33 'Programming Language :: Python :: 3.1',
michael@0 34 'Programming Language :: Python :: 3.2',
michael@0 35 'Programming Language :: Python :: Implementation :: CPython',
michael@0 36 'Programming Language :: Python :: Implementation :: PyPy',
michael@0 37 'Programming Language :: Python :: Implementation :: Jython',
michael@0 38 'Operating System :: OS Independent',
michael@0 39 'Topic :: Software Development :: Libraries',
michael@0 40 'Topic :: Software Development :: Libraries :: Python Modules',
michael@0 41 'Topic :: Software Development :: Testing',
michael@0 42 ]
michael@0 43
michael@0 44 AUTHOR = 'Michael Foord'
michael@0 45 AUTHOR_EMAIL = 'michael@voidspace.org.uk'
michael@0 46 KEYWORDS = ("testing test mock mocking unittest patching "
michael@0 47 "stubs fakes doubles").split(' ')
michael@0 48
michael@0 49 params = dict(
michael@0 50 name=NAME,
michael@0 51 version=__version__,
michael@0 52 py_modules=MODULES,
michael@0 53
michael@0 54 # metadata for upload to PyPI
michael@0 55 author=AUTHOR,
michael@0 56 author_email=AUTHOR_EMAIL,
michael@0 57 description=DESCRIPTION,
michael@0 58 long_description=LONG_DESCRIPTION,
michael@0 59 keywords=KEYWORDS,
michael@0 60 url=URL,
michael@0 61 classifiers=CLASSIFIERS,
michael@0 62 )
michael@0 63
michael@0 64 try:
michael@0 65 from setuptools import setup
michael@0 66 except ImportError:
michael@0 67 from distutils.core import setup
michael@0 68 else:
michael@0 69 params['tests_require'] = ['unittest2']
michael@0 70 params['test_suite'] = 'unittest2.collector'
michael@0 71
michael@0 72 setup(**params)

mercurial