Illyoung Choi | fe121d0 | 2019-07-16 10:47:41 -0700 | [diff] [blame] | 1 | # Copyright 2019-present Open Networking Foundation |
Illyoung Choi | 5d59ab6 | 2019-06-24 16:15:27 -0700 | [diff] [blame] | 2 | # |
| 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 | |
| 15 | from __future__ import absolute_import |
| 16 | |
Illyoung Choi | 5d59ab6 | 2019-06-24 16:15:27 -0700 | [diff] [blame] | 17 | from setuptools import setup |
| 18 | |
| 19 | |
| 20 | def readme(): |
| 21 | with open("README.rst") as f: |
| 22 | return f.read() |
| 23 | |
| 24 | |
| 25 | def version(): |
Illyoung Choi | fe121d0 | 2019-07-16 10:47:41 -0700 | [diff] [blame] | 26 | with open("VERSION") as f: |
Illyoung Choi | 5d59ab6 | 2019-06-24 16:15:27 -0700 | [diff] [blame] | 27 | return f.read().strip() |
| 28 | |
| 29 | |
| 30 | def 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 | |
| 39 | setup( |
Illyoung Choi | fe121d0 | 2019-07-16 10:47:41 -0700 | [diff] [blame] | 40 | name="cord_workflow_airflow_extensions", |
Illyoung Choi | 5d59ab6 | 2019-06-24 16:15:27 -0700 | [diff] [blame] | 41 | version=version(), |
Illyoung Choi | fe121d0 | 2019-07-16 10:47:41 -0700 | [diff] [blame] | 42 | description="Airflow extensions for CORD Workflow Manager", |
Illyoung Choi | 5d59ab6 | 2019-06-24 16:15:27 -0700 | [diff] [blame] | 43 | 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 Choi | fe121d0 | 2019-07-16 10:47:41 -0700 | [diff] [blame] | 48 | packages=[ |
| 49 | "cord_workflow_airflow_extensions" |
| 50 | ], |
| 51 | package_dir={ |
| 52 | "cord_workflow_airflow_extensions": "src/cord_workflow_airflow_extensions" |
| 53 | }, |
Illyoung Choi | 5d59ab6 | 2019-06-24 16:15:27 -0700 | [diff] [blame] | 54 | install_requires=parse_requirements("requirements.txt"), |
| 55 | include_package_data=True, |
| 56 | ) |