This repository was archived by the owner on Jan 30, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
61 lines (51 loc) · 1.78 KB
/
setup.py
File metadata and controls
61 lines (51 loc) · 1.78 KB
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
57
58
59
60
61
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
from os import path
from pip._internal.req import parse_requirements
from setuptools import setup, find_packages, Command
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
requirements = [str(ir.requirement) for ir in parse_requirements(
'requirements.txt', session=False)]
class CleanCommand(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
system(
'rm -vrf ./build ./dist ./*.pyc ./*.tgz ./*.egg-info ./htmlcov '
'./spark-warehouse ./driver/spark-warehouse ./metastore_db ./coverage_html ./.pytest_cache ./derby.log ./tests/local_results ./tasks/__pycache__')
setup(
name="data-product-processor",
version="1.0.4",
description="The data product processor (dpp) is a library for dynamically creating and executing Apache Spark Jobs based on a declarative description of a data product.",
long_description=long_description,
long_description_content_type='text/markdown',
author="Amazon Web Services",
url = 'https://github.com/aws-samples/dpac-data-product-processor',
packages=find_packages(
exclude=(
"contrib",
"docs",
"tests",
)
),
py_modules=[
'main',
],
install_requires=requirements,
include_package_data=True,
platforms="any",
license="Apache License 2.0",
zip_safe=False,
cmdclass={
'clean_all': CleanCommand,
# 'package': Package
},
entry_points={
"console_scripts": ["data-product-processor=main:main"],
},
)