Skip to content

Commit

Permalink
update "install_requires" in setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mahenzon committed Feb 24, 2021
1 parent 86ab1d3 commit cc15868
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,9 @@ def get_description():
return f.read()


def get_requirements(filename=None):
"""
Read requirements from 'requirements.txt'
:return: requirements
:rtype: list
"""
if filename is None:
filename = 'requirements.txt'

file = WORK_DIR / filename

install_reqs = parse_requirements(str(file), session='hack')
return [str(ir.req) for ir in install_reqs]
requirements_filepath = WORK_DIR / "requirements.txt"
with open(requirements_filepath) as fp:
install_requires = fp.read()


setup(
Expand All @@ -68,5 +57,5 @@ def get_requirements(filename=None):
'Programming Language :: Python :: 3.6',
'Topic :: Software Development :: Libraries :: Application Frameworks',
],
install_requires=get_requirements()
install_requires=install_requires,
)

0 comments on commit cc15868

Please sign in to comment.