Skip to content

Commit 1569026

Browse files
authored
Move requirements.txt and test/requirements.txt as source of truth (#329)
1 parent 74e51e1 commit 1569026

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

setup.py

+7-9
Original file line numberDiff line numberDiff line change
@@ -24,25 +24,23 @@
2424
break
2525
version = eval(line.split('=', 1)[1].strip()) # pylint: disable=eval-used
2626

27-
install_reqs = [
28-
'requests >= 2.16.2',
29-
'six >= 1.12.0',
30-
'stone >= 2.*',
31-
]
27+
# WARNING: This imposes limitations on test/requirements.txt such that the
28+
# full Pip syntax is not supported. See also
29+
# <http://stackoverflow.com/questions/14399534/>.
30+
install_reqs = []
31+
with open('requirements.txt') as f:
32+
install_reqs += f.read().splitlines()
3233

3334
setup_requires = [
3435
# Pin pytest-runner to 5.2.0, since 5.3.0 uses `find_namespaces` directive, not supported in
3536
# Python 2.7
3637
'pytest-runner == 5.2.0',
3738
]
3839

39-
test_reqs = [
40-
'pytest',
41-
]
42-
4340
# WARNING: This imposes limitations on test/requirements.txt such that the
4441
# full Pip syntax is not supported. See also
4542
# <http://stackoverflow.com/questions/14399534/>.
43+
test_reqs = []
4644
with open('test/requirements.txt') as f:
4745
test_reqs += f.read().splitlines()
4846

0 commit comments

Comments
 (0)