forked from aws/sagemaker-spark-container
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
58 lines (52 loc) · 2.05 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
57
58
# Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You
# may not use this file except in compliance with the License. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file accompanying this file. This file is
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
# ANY KIND, either express or implied. See the License for the specific
# language governing permissions and limitations under the License.
import glob
import os
from setuptools import find_packages, setup
with open("VERSION", "r") as version_file:
version = version_file.read()
install_reqs = list(open('requirements.txt').read().strip().split('\n'))
test_install_reqs = list(open('test_requirements.txt').read().strip().split('\n'))
setup(
name="smspark",
description="Library that enables running Spark Processing jobs on Amazon SageMaker",
version=version,
python_requires=">3.7.0",
packages=find_packages("src"),
package_dir={"": "src"},
py_modules=[os.path.splitext(os.path.basename(path))[0] for path in glob.glob("src/smspark/*.py")],
author="Amazon Web Services",
url="https://github.com/aws/smspark/",
license="Apache License 2.0",
keywords="ML Amazon AWS AI SageMaker Processing Spark",
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Natural Language :: English",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 3.7",
],
setup_requires=["setuptools", "wheel"],
# Be frugal when adding dependencies. Prefer Python's standard library.
install_requires=install_reqs,
extras_require={
"test": test_install_reqs,
},
entry_points={
"console_scripts": [
"smspark-submit=smspark.cli:submit_main",
"smspark-history-server=smspark.history_server_cli:run_history_server",
]
},
)