forked from ludwig-ai/ludwig
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
55 lines (43 loc) · 2.18 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
"""Ludwig: Data-centric declarative deep learning framework
"""
from codecs import open
from os import path
from setuptools import find_packages, setup
here = path.abspath(path.dirname(__file__))
# Get the long description from the README.md file
with open(path.join(here, "README.md"), encoding="utf-8") as f:
long_description = f.read()
with open(path.join(here, "requirements.txt"), encoding="utf-8") as f:
requirements = [line.strip() for line in f if line]
extra_requirements = {}
with open(path.join(here, "requirements_serve.txt"), encoding="utf-8") as f:
extra_requirements["serve"] = [line.strip() for line in f if line]
with open(path.join(here, "requirements_viz.txt"), encoding="utf-8") as f:
extra_requirements["viz"] = [line.strip() for line in f if line]
with open(path.join(here, "requirements_distributed.txt"), encoding="utf-8") as f:
extra_requirements["distributed"] = [line.strip() for line in f if line]
with open(path.join(here, "requirements_hyperopt.txt"), encoding="utf-8") as f:
extra_requirements["hyperopt"] = [line.strip() for line in f if line]
extra_requirements["full"] = [item for sublist in extra_requirements.values() for item in sublist]
with open(path.join(here, "requirements_test.txt"), encoding="utf-8") as f:
extra_requirements["test"] = extra_requirements["full"] + [line.strip() for line in f if line]
setup(
name="ludwig",
version="0.5",
description="Data-centric declarative deep learning framework",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/ludwig-ai/ludwig",
download_url="https://pypi.org/project/ludwig/",
author="Piero Molino",
author_email="[email protected]",
license="Apache 2.0",
keywords="ludwig deep learning deep_learning machine machine_learning natural language processing computer vision",
packages=find_packages(exclude=["contrib", "docs", "tests"]),
python_requires=">=3.7",
include_package_data=True,
package_data={"ludwig": ["etc/*", "examples/*.py"]},
install_requires=requirements,
extras_require=extra_requirements,
entry_points={"console_scripts": ["ludwig=ludwig.cli:main"]},
)