forked from pycaret/pycaret
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
79 lines (67 loc) · 2.44 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# Copyright (C) 2019-2024 PyCaret
# Author: Moez Ali ([email protected])
# Contributors (https://github.com/pycaret/pycaret/graphs/contributors)
# License: MIT
from setuptools import find_packages, setup
def readme():
with open("README.md", encoding="utf8") as f:
README = f.read()
return README
with open("requirements.txt") as f:
required = f.read().splitlines()
with open("requirements-optional.txt") as f:
required_optional = f.read()
with open("requirements-test.txt") as f:
required_test = f.read().splitlines()
with open("requirements-dev.txt") as f:
required_dev = f.read().splitlines()
extras_require = {
"analysis": required_optional.split("\n\n")[0].splitlines(),
"models": required_optional.split("\n\n")[1].splitlines(),
"tuners": required_optional.split("\n\n")[2].splitlines(),
"mlops": required_optional.split("\n\n")[3].splitlines(),
"parallel": required_optional.split("\n\n")[4].splitlines(),
"test": required_test,
"dev": required_dev,
}
extras_require["full"] = (
extras_require["analysis"]
+ extras_require["models"]
+ extras_require["tuners"]
+ extras_require["mlops"]
+ extras_require["parallel"]
+ extras_require["test"]
+ extras_require["dev"]
)
setup(
name="pycaret",
version="3.4.0",
description="PyCaret - An open source, low-code machine learning library in Python.",
long_description=readme(),
long_description_content_type="text/markdown",
url="https://github.com/pycaret/pycaret",
author="Moez Ali",
author_email="[email protected]",
license="MIT",
classifiers=[
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
packages=find_packages(include=["pycaret*"]),
include_package_data=True,
install_requires=required,
extras_require=extras_require,
tests_require=required_test,
python_requires=">=3.9",
project_urls={
"Contributors": "https://github.com/pycaret/pycaret/graphs/contributors",
"Documentation": "https://pycaret.gitbook.io/docs",
"Source": "https://github.com/pycaret/pycaret",
},
)