-
Notifications
You must be signed in to change notification settings - Fork 9
/
setup.py
executable file
·59 lines (49 loc) · 1.49 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
59
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
setup.py
~~~~~~~~
An airflow job operator that executes a task as a Kubernetes job on a cluster,
given a job yaml configuration or an image uri.
:copyright: (c) 2020 by zav.
:license: see LICENSE for more details.
"""
import os
from setuptools import setup
here = os.path.abspath(os.path.dirname(__file__))
def get_version():
version_file_path = os.path.join(here, "package_version.txt")
if not os.path.isfile(version_file_path):
return "debug"
version = None
with open(version_file_path, "r") as raw:
version = raw.read()
return version
setup(
name="airflow_kubernetes_job_operator",
version=get_version(),
description=(
"An airflow job operator that executes a task as a Kubernetes job on a cluster, "
"given a job yaml configuration or an image uri."
),
long_description="Please see readme.md @ https://github.com/LamaAni/KubernetesJobOperator",
classifiers=[],
author="Zav Shotan",
author_email="",
url="https://github.com/LamaAni/KubernetesJobOperator",
packages=[
"airflow_kubernetes_job_operator",
"airflow_kubernetes_job_operator/kube_api",
],
platforms="any",
license="LICENSE",
install_requires=[
"PyYAML>=5.0",
"kubernetes>=8.0.1",
"urllib3>=1.25.0",
"zthreading>=0.1.13",
"python-dateutil>=2.8.1",
],
python_requires=">=3.6",
include_package_data=True,
)