MCPcopy
hub / github.com/HKUDS/DeepCode / read_requirements

Function read_requirements

setup.py:42–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40
41# Reading dependencies from requirements.txt
42def read_requirements():
43 deps = []
44 try:
45 with open("./requirements.txt", encoding="utf-8") as f:
46 deps = [
47 line.strip() for line in f if line.strip() and not line.startswith("#")
48 ]
49 except FileNotFoundError:
50 print(
51 "Warning: 'requirements.txt' not found. No dependencies will be installed."
52 )
53 return deps
54
55
56metadata = retrieve_metadata()

Callers 1

setup.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected