Skip to content

Commit

Permalink
Read the requirements from the .txt file
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedfgad committed Dec 9, 2024
1 parent 516ac20 commit 1a0c67f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
import setuptools
import os

with open("README.md", "r") as fh:
long_description = fh.read()

# Dynamically read requirements.txt
this_dir = os.path.abspath(os.path.dirname(__file__))
requirements_path = os.path.join(this_dir, "requirements.txt")

# Read the requirements from the requirements.txt file
with open("requirements.txt", "r") as f:
with open(requirements_path, "r") as f:
requirements = f.read().splitlines()

setuptools.setup(
Expand Down

0 comments on commit 1a0c67f

Please sign in to comment.