File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,14 @@ def read(*parts):
50
50
with codecs .open (filename , encoding = 'utf-8' ) as fp :
51
51
return fp .read ()
52
52
53
+ def get_dependencies (file ):
54
+ root = os .path .dirname (os .path .realpath (__file__ ))
55
+ requirements = os .path .join (root , file )
56
+ result = []
57
+ if os .path .isfile (requirements ):
58
+ with open (requirements ) as f :
59
+ return f .read ().splitlines ()
60
+ raise RuntimeError ("Unable to get dependencies from file " + file )
53
61
54
62
def find_version (* file_paths ):
55
63
version_file = read (* file_paths )
@@ -82,8 +90,6 @@ def find_version(*file_paths):
82
90
],
83
91
cmdclass = cmdclass ,
84
92
command_options = command_options ,
85
- install_requires = [
86
- 'msgpack>=1.0.4' ,
87
- ],
93
+ install_requires = get_dependencies ('requirements.txt' ),
88
94
python_requires = '>=3' ,
89
95
)
You can’t perform that action at this time.
0 commit comments