-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
62 lines (55 loc) · 1.71 KB
/
setup.py
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
58
59
60
61
62
"""Setuptools setup script for the package."""
from setuptools import setup, find_packages
import sys
def _get_version():
# pylint: disable=missing-docstring
with open('.version') as version:
return version.read().rstrip("\n")
def _get_description():
# pylint: disable=missing-docstring
with open('README.md') as readme:
return readme.read()
DEPENDENCIES = []
if sys.version_info < (3, 3):
DEPENDENCIES.append('mock')
setup(
name='mock-open',
version=_get_version(),
description='A better mock for file I/O',
long_description=_get_description(),
long_description_content_type='text/markdown',
url='http://github.com/nivbend/mock-open',
author='Niv Ben-David',
author_email='nivbend@gmail.com',
license='MIT',
packages=find_packages('src'),
package_dir={ '': 'src', },
test_suite='mock_open.test',
install_requires=DEPENDENCIES,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Topic :: Software Development',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Software Development :: Testing',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
],
keywords=' '.join([
'testing',
'unittest',
'test',
'mock',
'mocking',
'patch',
'patching',
'stubs',
'fakes',
'doubles'
]),
)