-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
54 lines (42 loc) · 1.37 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import setuptools
import shutil
import os
from setuptools.command.sdist import sdist
from wheel.bdist_wheel import bdist_wheel
with open("README.md", "r") as fh:
long_description = fh.read()
def clean_folders():
print("Removing temporary folders.")
TMP_FOLDERS = ["ottoai.egg-info", "build"]
for folder in TMP_FOLDERS:
if os.path.exists(folder):
shutil.rmtree(folder)
class SdistCommand(sdist):
"""Custom build command."""
def run(self):
sdist.run(self)
clean_folders()
class BdistWheelCommand(bdist_wheel):
"""Custom build command."""
def run(self):
bdist_wheel.run(self)
clean_folders()
setuptools.setup(
name="ottoai",
version="0.0.5",
author="MindsDB",
author_email="[email protected]",
description="The most minimalistic library for building intelligent AI Agents straight from Python Objects",
long_description=long_description,
long_description_content_type="text/markdown",
include_package_data=True,
# url="https://github.com/username/ottoai",
packages=setuptools.find_packages(),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
install_requires=["toml"],
cmdclass={"sdist": SdistCommand, "bdist_wheel": BdistWheelCommand},
)