-
-
Notifications
You must be signed in to change notification settings - Fork 356
/
setup.py
34 lines (30 loc) · 1.42 KB
/
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
from setuptools import setup, find_packages
import os
# Read the contents of your README file
this_directory = os.path.dirname(os.path.realpath(__file__))
readme_path = os.path.join(this_directory, "docs", "README.md")
# Read the contents of the README file
with open(readme_path, encoding="utf-8") as f:
long_description = f.read()
# Get requirements from requirements.txt to a list
with open(os.path.join(this_directory, "requirements.txt"), encoding="utf-8") as f:
install_requires = f.read().splitlines()
requirements = []
for reqs in install_requires:
if "--" not in reqs and ":" not in reqs and "#" not in reqs:
requirements.append(reqs)
# Get version from version file in agixt/version
with open(os.path.join(this_directory, "agixt/version"), encoding="utf-8") as f:
version = f.read().strip()
setup(
name="agixt",
version=version,
description="An Artificial Intelligence Automation Platform. AI Instruction management from various providers, has an adaptive memory, and a versatile plugin system with many commands including web browsing. Supports many AI providers and models and growing support every day.",
long_description=long_description,
long_description_content_type="text/markdown", # This should match the format of your README
author="Josh XT",
author_email="[email protected]",
packages=find_packages(),
python_requires=">=3.10",
install_requires=requirements,
)