forked from aneliram89/takeoff
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
56 lines (49 loc) · 1.53 KB
/
setup.py
File metadata and controls
56 lines (49 loc) · 1.53 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
import sys
from setuptools import setup, find_packages
with open("README.md", "r") as f:
long_description = f.read()
"""
All setup dependencies are installed in the base docker image, removing the need to reinstall the same
dependencies every CI run.
Feel free to add missing ones to the dependencies here. As soon as these are stable move them to
https://github.com/schipholgroup/takeoff-base
"""
setup_dependencies = [
"azure==4.0.0",
"databricks-cli==0.9.0",
"docker==4.0.2",
"gitpython==3.1.1",
"jinja2==2.11.3",
"kubernetes==10.0.1",
"py4j==0.10.7",
"pyyaml==5.4",
"requests>=2.20.0",
"twine==1.14.0",
"voluptuous==0.11.7"
]
test_dependencies = [
"pytest==5.4.1",
"pytest-cov==2.8.1"
]
lint_dependencies = [
"flake8==3.9.0",
"black==20.8b1"
]
if {"pytest", "test"}.intersection(sys.argv):
setup_dependencies = ["pytest-runner==4.2"]
elif {"lint", "flake8"}.intersection(sys.argv):
setup_dependencies = lint_dependencies
setup(
name="Takeoff",
description="A package to bundle deployment scripts for deploying application in the cloud",
author="Schiphol Group",
long_description=long_description,
author_email="SDH-Support@schiphol.nl",
packages=find_packages(exclude=("tests*",)),
include_package_data=True,
install_requires=setup_dependencies,
setup_requires=setup_dependencies,
tests_require=test_dependencies,
scripts=["scripts/takeoff", "scripts/get_version"],
extras_require={"test": test_dependencies, "lint": lint_dependencies},
)