We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9fa3ce6 commit b75fca4Copy full SHA for b75fca4
setup.py
@@ -37,6 +37,14 @@ def read(*parts):
37
with codecs.open(filename, encoding='utf-8') as fp:
38
return fp.read()
39
40
+def get_dependencies(file):
41
+ root = os.path.dirname(os.path.realpath(__file__))
42
+ requirements = os.path.join(root, file)
43
+ result = []
44
+ if os.path.isfile(requirements):
45
+ with open(requirements) as f:
46
+ result = f.read().splitlines()
47
+ return result
48
49
def find_version(*file_paths):
50
version_file = read(*file_paths)
@@ -69,8 +77,6 @@ def find_version(*file_paths):
69
77
],
70
78
cmdclass=cmdclass,
71
79
command_options=command_options,
72
- install_requires=[
73
- 'msgpack>=1.0.4',
74
- ],
80
+ install_requires=get_dependencies('requirements.txt'),
75
81
python_requires='>=3',
76
82
)
0 commit comments