blob: fc03af8a4cb85323f14a181daee366cdb4d18265 [file] [log] [blame]
Illyoung Choife121d02019-07-16 10:47:41 -07001# Copyright 2019-present Open Networking Foundation
Illyoung Choi5d59ab62019-06-24 16:15:27 -07002#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15from __future__ import absolute_import
16
Illyoung Choi5d59ab62019-06-24 16:15:27 -070017from setuptools import setup
18
19
20def readme():
21 with open("README.rst") as f:
22 return f.read()
23
24
25def version():
Illyoung Choife121d02019-07-16 10:47:41 -070026 with open("VERSION") as f:
Illyoung Choi5d59ab62019-06-24 16:15:27 -070027 return f.read().strip()
28
29
30def parse_requirements(filename):
31 # parse a requirements.txt file, allowing for blank lines and comments
32 requirements = []
33 for line in open(filename):
34 if line and not line.startswith("#"):
35 requirements.append(line)
36 return requirements
37
38
39setup(
Illyoung Choife121d02019-07-16 10:47:41 -070040 name="cord_workflow_airflow_extensions",
Illyoung Choi5d59ab62019-06-24 16:15:27 -070041 version=version(),
Illyoung Choife121d02019-07-16 10:47:41 -070042 description="Airflow extensions for CORD Workflow Manager",
Illyoung Choi5d59ab62019-06-24 16:15:27 -070043 long_description=readme(),
44 author="Illyoung Choi",
45 author_email="iychoi@opennetworking.org",
46 classifiers=["License :: OSI Approved :: Apache Software License"],
47 license="Apache v2",
Illyoung Choife121d02019-07-16 10:47:41 -070048 packages=[
49 "cord_workflow_airflow_extensions"
50 ],
51 package_dir={
52 "cord_workflow_airflow_extensions": "src/cord_workflow_airflow_extensions"
53 },
Illyoung Choi5d59ab62019-06-24 16:15:27 -070054 install_requires=parse_requirements("requirements.txt"),
55 include_package_data=True,
56)