This repository has been archived by the owner on Mar 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
56 lines (50 loc) · 1.52 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
"""
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 insuranceqa import __version__
PACKAGE_REQUIREMENTS = [
"pyyaml",
"torch==1.13.0",
"pytorch-lightning==1.8.3.post1",
"transformers==4.24.0"
]
# 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",
"transformers",
"torch",
"pytorch_lightning",
"scikit-learn",
"pandas",
"mlflow"
]
TEST_REQUIREMENTS = [
# development & testing tools
"pytest",
"coverage[toml]",
"pytest-cov",
"dbx>=0.7,<0.8",
"flake8",
"black"
]
setup(
name="insuranceqa",
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": [
"ingest = insuranceqa.tasks.ingest:entrypoint",
"clean = insuranceqa.tasks.clean:entrypoint",
"train = insuranceqa.tasks.train:entrypoint"
]},
version=__version__,
description="",
author="https://www.github.com/rafaelvp-db",
)