-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
29 lines (27 loc) · 937 Bytes
/
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
from importlib.metadata import EntryPoint, entry_points
from setuptools import setup, find_packages
requirements = ["pyspark==3.3.0", "delta-spark==2.1.0"]
setup_requirements = ["pytest-runner"]
tests_requirements = ["pytest>=5.4.1", "pyspark-test"]
dev_requirements = [
"pre-commit>=2.19.0",
"flake8>=4.0.0",
"black>=22.3.0",
"wheel==0.35.1",
] + tests_requirements
extras_requirements = {"dev": dev_requirements}
setup(
name="example_pyspark",
version="0.1",
description="Example pyspark package",
# Author details
author="Guillermo Sanchez",
author_email="[email protected]",
packages=find_packages("src"),
package_dir={"": "src"},
install_requires=requirements,
setup_requires=setup_requirements,
tests_require=tests_requirements,
extras_require=extras_requirements,
entry_points={"console_scripts": ["etl = my_module.scripts.etl:entrypoint"]},
)