forked from voltek62/loopgpt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
36 lines (29 loc) · 897 Bytes
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
from setuptools import setup, find_packages
import os
package_name = "loopgpt"
all_requires = open("requirements.txt", "r").readlines()
install_requires = []
extras_require = {}
for req in all_requires:
req = req.strip()
if not req:
continue
if req.endswith("]"):
sp = req.rsplit("[", 1)
profile = sp[1][:-1]
package = sp[0]
if profile not in extras_require:
extras_require[profile] = []
extras_require[profile].append(package)
else:
install_requires.append(req)
if __name__ == "__main__":
setup(
install_requires=install_requires,
extras_require=extras_require,
packages=find_packages(),
name=package_name,
version="0.0.16",
description="Modular Auto-GPT Framework",
entry_points={"console_scripts": ["loopgpt = loopgpt.loops.cli:main"]},
)