Skip to content

Commit 0332cf8

Browse files
committed
remove get_dependencies() and manually include the dependencies
1 parent 397ce2c commit 0332cf8

1 file changed

Lines changed: 5 additions & 23 deletions

File tree

setup.py

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -27,28 +27,6 @@ def find_module(PATH: str) -> list[str]:
2727
return modules
2828

2929

30-
def get_dependencies(source: str) -> list[str]:
31-
"""Get the listed dependencies in requirements.txt
32-
33-
Args:
34-
source -- requirements.txt
35-
36-
Returns:
37-
The list of dependencies.
38-
"""
39-
40-
try:
41-
dep_list: TextIO
42-
with open(source, "r", encoding="utf-8") as dep_list:
43-
deps: list[str] = dep_list.readlines()
44-
except FileNotFoundError as Err:
45-
raise SystemExit("Cannot fetch dependencies.")
46-
47-
return [
48-
dep.replace("\n", "") for dep in deps if dep not in ["", "\n"]
49-
]
50-
51-
5230
desc: TextIO
5331
with open("README.md", "r", encoding="utf-8") as desc:
5432
readme: str = desc.read()
@@ -67,7 +45,11 @@ def get_dependencies(source: str) -> list[str]:
6745
license="GPL v3",
6846
py_modules=find_module("src"),
6947
python_requires=">=3.10",
70-
install_requires=get_dependencies("requirements.txt"),
48+
install_requires=[
49+
"rich==12.4.4",
50+
"requests==2.28.1",
51+
"autocorrect==2.6.1"
52+
],
7153
classifiers=[
7254
"Development Status :: 4 - Beta",
7355
"Programming Language :: Python :: 3.10",

0 commit comments

Comments
 (0)