Martin Cosyns | 0efdc87 | 2021-09-27 16:24:30 +0000 | [diff] [blame] | 1 | # Copyright 2020-present Open Networking Foundation |
| 2 | # Original copyright 2020-present ADTRAN, Inc. |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | import os |
| 15 | from setuptools import setup, find_packages |
| 16 | |
| 17 | NAME = 'grpc_robot' |
| 18 | with open('VERSION') as ff: |
| 19 | VERSION = ff.read().strip() |
| 20 | with open('VERSION') as ff: |
| 21 | README = ff.read() |
| 22 | with open('VERSION') as ff: |
| 23 | LICENSE = ff.read() |
| 24 | |
| 25 | |
| 26 | def package_data(): |
| 27 | paths = [] |
| 28 | for (path, directories, filenames) in os.walk(NAME): |
| 29 | for filename in filenames: |
| 30 | if os.path.splitext(filename)[-1] == '.json': |
| 31 | paths.append(os.path.join('..', path, filename)) |
| 32 | return paths |
| 33 | |
| 34 | |
| 35 | setup( |
| 36 | name=NAME, |
| 37 | version=VERSION, |
| 38 | description='Package for sending/recieving messages to/from a gRPC server.', |
| 39 | long_description=README, |
| 40 | long_description_content_type="text/markdown", |
| 41 | license=LICENSE, |
| 42 | classifiers=[ |
| 43 | "Programming Language :: Python :: 3", |
| 44 | "Operating System :: OS Independent", |
| 45 | ], |
| 46 | install_requires=[ |
| 47 | 'six', |
| 48 | 'robotframework>=3.1.2', |
| 49 | 'grpcio', |
| 50 | 'decorator', |
| 51 | 'attrs', |
| 52 | 'parsy', |
| 53 | 'device-management-interface>=0.9.1', |
| 54 | 'voltha-protos>=4.0.13' |
| 55 | ], |
| 56 | python_requires='>=3.6', |
| 57 | packages=find_packages(exclude='tests'), |
| 58 | package_data={ |
| 59 | NAME: package_data(), |
| 60 | }, |
| 61 | data_files=[("", ["LICENSE"])], |
| 62 | entry_points={ |
| 63 | 'console_scripts': ['grpc_robot.protop = grpc_robot.tools.protop:main'], |
| 64 | } |
| 65 | ) |