We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 76a1fba commit d32745aCopy full SHA for d32745a
1 file changed
setup.py
@@ -12,7 +12,15 @@ def read_readme():
12
13
# Read requirements
14
def read_requirements():
15
- with open("requirements.txt", "r", encoding="utf-8") as fh:
+ requirements_path = os.path.join(os.path.dirname(__file__), "requirements.txt")
16
+ if not os.path.exists(requirements_path):
17
+ # Fallback to default requirements if file not found
18
+ return [
19
+ "httpx>=0.24.0",
20
+ "pydantic>=2.0.0",
21
+ "typing-extensions>=4.5.0",
22
+ ]
23
+ with open(requirements_path, "r", encoding="utf-8") as fh:
24
return [line.strip() for line in fh if line.strip() and not line.startswith("#")]
25
26
setup(
0 commit comments