blob: 1e84c5c802ca32ba3b9a4aaad58677116f4694d6 [file] [log] [blame]
Illyoung Choia9d2c2c2019-07-12 13:29:42 -07001# Copyright 2018-present Open Networking Foundation
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
15from __future__ import absolute_import
16
17from setuptools import setup
18
19
20def readme():
21 with open("README.rst") as f:
22 return f.read()
23
24
25def version():
26 with open("VERSION") as f:
27 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(
40 name="cord_workflow_controller_client",
41 version=version(),
42 description="A client library for CORD Workflow Controller",
43 url="https://gerrit.opencord.org/gitweb?p=cord-workflow-controller-client.git",
44 long_description=readme(),
45 author="Illyoung Choi",
46 author_email="iychoi@opennetworking.org",
47 classifiers=["License :: OSI Approved :: Apache Software License"],
48 license="Apache v2",
49 packages=["cord_workflow_controller_client"],
50 package_dir={"cord_workflow_controller_client": "src/cord_workflow_controller_client"},
51 install_requires=parse_requirements("requirements.txt"),
52 include_package_data=True,
53)