-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
39 lines (35 loc) · 1.3 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
35
36
37
38
39
import setuptools
import pathlib
import discordai as package
import sys
min_py_version = (3, 9)
if sys.version_info < min_py_version:
sys.exit(
"DiscordAI is only supported for Python {}.{} or higher".format(*min_py_version)
)
here = pathlib.Path(__file__).parent.resolve()
with open(pathlib.Path(here, "requirements.txt")) as f:
requirements = [r for r in f.read().splitlines()]
setuptools.setup(
name=package.__name__,
version=package.__version__,
author_email="[email protected]",
description="A Discord bot driver package that utilizes OpenAI to create custom AI models out of your Discord chat history",
long_description=pathlib.Path("README.md").read_text(),
long_description_content_type="text/markdown",
url="https://github.com/A-Baji/discordAI",
packages=setuptools.find_packages(exclude=["tests*"]),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
],
entry_points={
"console_scripts": [
f"{package.__name__}={package.__name__}.command_line.command_line:{package.__name__}"
],
},
include_package_data=True,
install_requires=requirements,
python_requires="~={}.{}".format(*min_py_version),
)