Skip to content

Commit 1130992

Browse files
committed
fixing setup script so that it correctly installs the requirements
1 parent f57980a commit 1130992

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

requirements.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
requests
22
langchain
3+
openai
34
pyperclip
4-
dotenv
5+
python-dotenv

setup.py

+8-4
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,15 @@
33
with open("README.md", "r", encoding="utf-8") as fh:
44
long_description = fh.read()
55

6+
# Function to read the contents of requirements.txt
7+
def load_requirements(filename='requirements.txt'):
8+
with open(filename, 'r') as file:
9+
return [line.strip() for line in file.readlines() if not line.startswith('#') and line.strip()]
10+
11+
612
setuptools.setup(
713
name="shelllangchain",
8-
version="0.1.6",
14+
version="0.1.7",
915
author="Belda",
1016
author_email="[email protected]",
1117
description="Natural language to shell command converter",
@@ -26,7 +32,5 @@
2632
"Operating System :: OS Independent",
2733
],
2834
python_requires='>=3.4',
29-
install_requires = [
30-
['langchain', 'pyperclip', 'requests','dotenv']
31-
]
35+
install_requires = load_requirements(),
3236
)

0 commit comments

Comments
 (0)