-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathsetup.py
More file actions
57 lines (49 loc) · 1.68 KB
/
setup.py
File metadata and controls
57 lines (49 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import re
import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
with open('README.rst') as f:
long_description = f.read()
with open('doubles/__init__.py') as f:
version = re.search(r'__version__ = \'(.*?)\'', f.read()).group(1)
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
import pytest
errcode = pytest.main(self.test_args)
sys.exit(errcode)
setup(
name='doubles',
version=version,
description='Test doubles for Python.',
long_description=long_description,
author='Jimmy Cuadra',
author_email='jimmy@uber.com',
url='https://github.com/uber/doubles',
license='MIT',
packages=['doubles', 'doubles.targets'],
install_requires=['six'],
tests_require=['pytest'],
cmdclass={'test': PyTest},
entry_points = {
'pytest11': ['doubles = doubles.pytest_plugin'],
'nose.plugins.0.10': ['doubles = doubles.nose:NoseIntegration'],
},
zip_safe=True,
keywords=['testing', 'test doubles', 'mocks', 'mocking', 'stubs', 'stubbing'],
classifiers=[
'Development Status :: 1 - Planning',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Topic :: Software Development :: Testing',
]
)