MCPcopy Create free account
hub / github.com/BIT-DataLab/LakeBench / load_requirements

Function load_requirements

union/D3L/setup.py:9–15  ·  view source on GitHub ↗

Load requirements from file, parse them as a Python list!

()

Source from the content-addressed store, hash-verified

7
8ROOT = os.path.abspath(os.path.dirname(__file__))
9def load_requirements() -> list:
10 """Load requirements from file, parse them as a Python list!"""
11 with open(os.path.join(ROOT, "requirements.txt"), encoding="utf-8") as f:
12 all_reqs = f.read().split("\n")
13 install_requires = [x.strip() for x in all_reqs if "git+" not in x]
14
15 return install_requires
16
17setup(
18 name='D3l',

Callers 1

setup.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected