forked from dropbox/changes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
98 lines (86 loc) · 2.31 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#!/usr/bin/env python
"""
changes
========
Magic.
:copyright: (c) 2014 Dropbox, Inc.
"""
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
import sys
setup_requires = []
if 'test' in sys.argv:
setup_requires.append('pytest')
tests_require = [
'exam>=0.10.2,<0.11.0',
'flake8>=2.1.0,<2.2.0',
'loremipsum>=1.0.2,<1.1.0',
'mock>=1.0.1,<1.1.0',
'pytest>=2.5.0,<2.6.0',
'pytest-cov>=1.6,<1.7',
'pytest-timeout>=0.3,<0.4',
'pytest-xdist>=1.9,<1.10',
'responses>=0.2.0,<0.3.0',
'unittest2>=0.5.1,<0.6.0',
]
install_requires = [
'alembic>=0.6.4,<0.7.0',
'ansi2html>=1.0.5,<1.1.0',
'argparse>=1.2.1,<1.3.0',
'blinker>=1.3,<1.4',
# celery 3.1.9 breaks TrackedTask (wraps is incorrect)
'celery==3.1.8',
'kombu>=3.0.8,<4.0.0',
'enum34>=0.9.18,<0.10.0',
'flask>=0.10.1,<0.11.0',
'flask-debugtoolbar>=0.9.0,<0.10.0',
'flask-mail>=0.9.0,<0.10.0',
'flask-restful>=0.2.10,<0.2.11',
'flask-sqlalchemy>=1.0,<1.1',
'gevent>=1.0.0,<1.1.0',
'lxml>=3.2.3,<3.3.0',
'raven>=4.0.4,<4.1.0',
'redis>=2.8.0,<2.9.0',
'requests>=2.0.0,<2.1.0',
'oauth2client>=1.2,<1.3',
'phabricator>=0.3.0,<0.4.0',
'psycopg2>=2.5.1,<2.6.0',
'python-dateutil>=2.1,<2.2',
'simplejson>=3.3.0,<3.4.0',
'sqlalchemy==0.9.4',
'statprof',
'toronado==0.0.4',
]
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = ['tests']
self.test_suite = True
def run_tests(self):
#import here, cause outside the eggs aren't loaded
import pytest
errno = pytest.main(self.test_args)
sys.exit(errno)
setup(
name='changes',
version='0.1.0',
author='Dropbox, Inc',
description='',
long_description=__doc__,
packages=find_packages(),
zip_safe=False,
install_requires=install_requires,
extras_require={
'tests': tests_require,
},
tests_require=tests_require,
cmdclass={'test': PyTest},
include_package_data=True,
classifiers=[
'__DO NOT UPLOAD__',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Operating System :: OS Independent',
'Topic :: Software Development'
],
)