pytest-mock/setup.py

46 lines
1.4 KiB
Python
Raw Normal View History

2016-07-02 16:40:05 +02:00
import re
2015-10-09 23:24:37 +02:00
from setuptools import setup
2016-07-02 16:40:05 +02:00
with open('pytest_mock.py') as f:
m = re.search("version = '(.*)'", f.read())
assert m is not None
version = m.group(1)
2015-10-09 23:24:37 +02:00
setup(
name='pytest-mock',
2016-07-02 16:40:05 +02:00
version=version,
2015-10-09 23:24:37 +02:00
entry_points={
'pytest11': ['pytest_mock = pytest_mock'],
},
py_modules=['pytest_mock'],
platforms='any',
install_requires=[
2016-07-02 16:40:05 +02:00
'pytest>=2.7',
2015-10-09 23:24:37 +02:00
],
extras_require={
':python_version=="2.6" or python_version=="2.7"': ['mock'],
},
url='https://github.com/pytest-dev/pytest-mock/',
2016-07-02 16:40:05 +02:00
license='MIT',
2015-10-09 23:24:37 +02:00
author='Bruno Oliveira',
author_email='nicoddemus@gmail.com',
description='Thin-wrapper around the mock package for easier use with py.test',
long_description=open('README.rst').read(),
keywords="pytest mock",
classifiers=[
2016-07-02 16:40:05 +02:00
'Development Status :: 5 - Production/Stable',
'Framework :: Pytest',
2015-10-09 23:24:37 +02:00
'Intended Audience :: Developers',
2016-07-02 16:40:05 +02:00
'License :: OSI Approved :: MIT License',
2015-10-09 23:24:37 +02:00
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
2016-07-02 16:40:05 +02:00
'Programming Language :: Python :: 3.3',
2015-10-09 23:24:37 +02:00
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Software Development :: Testing',
]
)