Skip to content

Commit 25cf54c

Browse files
takutiggreg
authored andcommitted
Enable run tests with full dependency including extras_require
1 parent 7d48556 commit 25cf54c

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

setup.py

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,18 @@
2424
f.read().decode('utf-8')).group(1)))
2525

2626

27+
kerberos_require = ['requests_kerberos']
28+
29+
all_require = [kerberos_require]
30+
31+
tests_require = all_require + [
32+
'httpretty',
33+
'pytest',
34+
'pytest-runner'
35+
]
36+
37+
py27_require = ['ipaddress', 'typing']
38+
2739
setup(
2840
name='presto-python-client',
2941
author='Presto Team',
@@ -61,8 +73,9 @@
6173
'six',
6274
],
6375
extras_require={
64-
'kerberos': ['requests_kerberos'],
65-
'tests': ['httpretty', 'pytest', 'pytest-runner'],
66-
':python_version=="2.7"': ['ipaddress', 'typing'],
76+
'all': all_require,
77+
'kerberos': kerberos_require,
78+
'tests': tests_require,
79+
':python_version=="2.7"': py27_require,
6780
},
6881
)

0 commit comments

Comments
 (0)