python/mock-1.0.0/setup.py

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/python/mock-1.0.0/setup.py	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,72 @@
     1.4 +#! /usr/bin/env python
     1.5 +
     1.6 +# Copyright (C) 2007-2012 Michael Foord & the mock team
     1.7 +# E-mail: fuzzyman AT voidspace DOT org DOT uk
     1.8 +# http://www.voidspace.org.uk/python/mock/
     1.9 +
    1.10 +from mock import __version__
    1.11 +
    1.12 +import os
    1.13 +
    1.14 +
    1.15 +NAME = 'mock'
    1.16 +MODULES = ['mock']
    1.17 +DESCRIPTION = 'A Python Mocking and Patching Library for Testing'
    1.18 +
    1.19 +URL = "http://www.voidspace.org.uk/python/mock/"
    1.20 +
    1.21 +readme = os.path.join(os.path.dirname(__file__), 'README.txt')
    1.22 +LONG_DESCRIPTION = open(readme).read()
    1.23 +
    1.24 +CLASSIFIERS = [
    1.25 +    'Development Status :: 5 - Production/Stable',
    1.26 +    'Environment :: Console',
    1.27 +    'Intended Audience :: Developers',
    1.28 +    'License :: OSI Approved :: BSD License',
    1.29 +    'Programming Language :: Python',
    1.30 +    'Programming Language :: Python :: 2',
    1.31 +    'Programming Language :: Python :: 3',
    1.32 +    'Programming Language :: Python :: 2.4',
    1.33 +    'Programming Language :: Python :: 2.5',
    1.34 +    'Programming Language :: Python :: 2.6',
    1.35 +    'Programming Language :: Python :: 2.7',
    1.36 +    'Programming Language :: Python :: 3.1',
    1.37 +    'Programming Language :: Python :: 3.2',
    1.38 +    'Programming Language :: Python :: Implementation :: CPython',
    1.39 +    'Programming Language :: Python :: Implementation :: PyPy',
    1.40 +    'Programming Language :: Python :: Implementation :: Jython',
    1.41 +    'Operating System :: OS Independent',
    1.42 +    'Topic :: Software Development :: Libraries',
    1.43 +    'Topic :: Software Development :: Libraries :: Python Modules',
    1.44 +    'Topic :: Software Development :: Testing',
    1.45 +]
    1.46 +
    1.47 +AUTHOR = 'Michael Foord'
    1.48 +AUTHOR_EMAIL = 'michael@voidspace.org.uk'
    1.49 +KEYWORDS = ("testing test mock mocking unittest patching "
    1.50 +            "stubs fakes doubles").split(' ')
    1.51 +
    1.52 +params = dict(
    1.53 +    name=NAME,
    1.54 +    version=__version__,
    1.55 +    py_modules=MODULES,
    1.56 +
    1.57 +    # metadata for upload to PyPI
    1.58 +    author=AUTHOR,
    1.59 +    author_email=AUTHOR_EMAIL,
    1.60 +    description=DESCRIPTION,
    1.61 +    long_description=LONG_DESCRIPTION,
    1.62 +    keywords=KEYWORDS,
    1.63 +    url=URL,
    1.64 +    classifiers=CLASSIFIERS,
    1.65 +)
    1.66 +
    1.67 +try:
    1.68 +    from setuptools import setup
    1.69 +except ImportError:
    1.70 +    from distutils.core import setup
    1.71 +else:
    1.72 +    params['tests_require'] = ['unittest2']
    1.73 +    params['test_suite'] = 'unittest2.collector'
    1.74 +
    1.75 +setup(**params)

mercurial