-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
41 lines (36 loc) · 1 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
"""
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 structure import __version__
PACKAGE_REQUIREMENTS = ["PyYAML"]
DEV_REQUIREMENTS = [
"setuptools",
"wheel",
"pyspark",
"pyyaml",
"pytest",
"pytest-cov",
"dbx",
"mlflow",
"delta-spark",
"scikit-learn",
"pandas"
]
setup(
name="structure",
packages=find_packages(exclude=["tests", "tests.*"]),
setup_requires=["wheel"],
install_requires=PACKAGE_REQUIREMENTS,
extras_require={"dev": DEV_REQUIREMENTS},
entry_points = {
"console_scripts": [
"etl = structure.tasks.sample_etl_task:entrypoint",
"ml = structure.tasks.sample_ml_task:entrypoint"
]},
version=__version__,
description="",
author="",
)