-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
48 lines (42 loc) · 1.47 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
"""
This file configures the Python package with entrypoints used for future runs on Databricks.
Please follow the `entry_points` documentation for more details on how to configure the entrypoint:
* https://setuptools.pypa.io/en/latest/userguide/entry_point.html
"""
from setuptools import find_packages, setup
from persuasion4good import __version__
PACKAGE_REQUIREMENTS = ["pyyaml"]
# packages for local development and unit testing
# please note that these packages are already available in DBR, there is no need to install them on DBR.
LOCAL_REQUIREMENTS = [
"pyspark==3.2.1",
"delta-spark==1.1.0",
"scikit-learn",
"pandas",
"mlflow",
]
TEST_REQUIREMENTS = [
# development & testing tools
"pytest",
"coverage[toml]",
"pytest-cov",
"dbx>=0.7,<0.8"
]
setup(
name="persuasion4good",
packages=find_packages(exclude=["tests", "tests.*"]),
setup_requires=["setuptools","wheel"],
install_requires=PACKAGE_REQUIREMENTS,
extras_require={"local": LOCAL_REQUIREMENTS, "test": TEST_REQUIREMENTS},
entry_points = {
"console_scripts": [
"data = persuasion4good.tasks.data:entrypoint",
"export = persuasion4good.tasks.export:entrypoint",
"features = persuasion4good.tasks.features:entrypoint",
"finetune = persuasion4good.tasks.finetune:entrypoint",
"inference = persuasion4good.tasks.inference:entrypoint",
]},
version=__version__,
description="",
author="",
)