Skip to content

Commit c184776

Browse files
committed
[Bug]: #2 load install_requires from requirements.txt
1 parent 73b451e commit c184776

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

setup.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111
long_description = readme.read()
1212

1313

14+
with open("requirements.txt") as requirements:
15+
install_requires = requirements.read().split("\n")
16+
install_requires = [x.strip() for x in install_requires if x.strip()]
17+
18+
1419
def find_version(*file_paths):
1520
import os
1621
import re
@@ -42,6 +47,7 @@ def find_version(*file_paths):
4247
download_url="https://github.com/jpetrucciani/{}.git".format(LIBRARY),
4348
license="LICENSE",
4449
packages=find_packages(),
50+
install_requires=install_requires,
4551
classifiers=[
4652
"Programming Language :: Python :: 3",
4753
"Programming Language :: Python :: 3.5",

0 commit comments

Comments
 (0)