Skip to content

Commit 4245330

Browse files
authored
Merge pull request #668 from gliptak/patch-1
Read requirements.txt during setup
2 parents 3e14574 + 23e4926 commit 4245330

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

setup.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@ def readme():
1313
return f.read()
1414

1515

16-
INSTALL_REQUIRES = (
17-
['pandas>=0.19.2', 'requests>=2.3.0', 'wrapt', 'lxml']
18-
)
16+
install_requires = []
17+
with open("./requirements.txt") as f:
18+
install_requires = f.read().splitlines()
19+
with open("./requirements-dev.txt") as f:
20+
tests_require = f.read().splitlines()
1921

2022
setup(
2123
name=NAME,
@@ -43,8 +45,9 @@ def readme():
4345
'Topic :: Scientific/Engineering',
4446
],
4547
keywords='data',
46-
install_requires=INSTALL_REQUIRES,
48+
install_requires=install_requires,
4749
packages=find_packages(exclude=['contrib', 'docs', 'tests*']),
4850
test_suite='tests',
51+
tests_require=tests_require,
4952
zip_safe=False,
5053
)

0 commit comments

Comments
 (0)