blob: 5134678f43f9d18b8f422f02526196c19cf53747 [file] [log] [blame]
Martin Cosyns0efdc872021-09-27 16:24:30 +00001# 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
14import os
15from setuptools import setup, find_packages
16
17NAME = 'grpc_robot'
18with open('VERSION') as ff:
19 VERSION = ff.read().strip()
20with open('VERSION') as ff:
21 README = ff.read()
22with open('VERSION') as ff:
23 LICENSE = ff.read()
24
25
26def 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
35setup(
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)