Skip to content

Commit a3ed404

Browse files
committed
Read setup.py requirements from requirements.txt to guarantee no mismatches
1 parent 496f010 commit a3ed404

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

setup.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ def readme():
4444
with open('README.rst') as readme_file:
4545
return readme_file.read()
4646

47+
def requirements():
48+
# The dependencies are the same as the contents of requirements.txt
49+
with open('requirements.txt') as f:
50+
return [line.strip() for line in f if line.strip()]
4751

4852
configuration = {
4953
'name': 'hdbscan',
@@ -72,9 +76,7 @@ def readme():
7276
'maintainer_email': '[email protected]',
7377
'license': 'BSD',
7478
'packages': ['hdbscan', 'hdbscan.tests'],
75-
'install_requires': ['numpy',
76-
'scikit-learn>=0.16',
77-
'cython >= 0.26'],
79+
'install_requires': requirements(),
7880
'ext_modules': [_hdbscan_tree,
7981
_hdbscan_linkage,
8082
_hdbscan_boruvka,

0 commit comments

Comments
 (0)