blob: 2172867c16acf2ee9363caa281566b88b557524a [file] [log] [blame]
Martin Cosynsf88ed6e2020-12-02 10:30:10 +01001# Copyright 2020 ADTRAN, Inc.
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
13import os
14from setuptools import setup, find_packages
15
16NAME = 'grpc_robot'
17with open('VERSION') as ff:
18 VERSION = ff.read().strip()
19with open('VERSION') as ff:
20 README = ff.read()
21with open('VERSION') as ff:
22 LICENSE = ff.read()
23
24
25def package_data():
26 paths = []
27 for (path, directories, filenames) in os.walk(NAME):
28 for filename in filenames:
29 if os.path.splitext(filename)[-1] == '.json':
30 paths.append(os.path.join('..', path, filename))
31 return paths
32
33
34setup(
35 name=NAME,
36 version=VERSION,
37 description='Package for sending/recieving messages to/from a gRPC server.',
38 long_description=README,
39 long_description_content_type="text/markdown",
40 license=LICENSE,
41 classifiers=[
42 "Programming Language :: Python :: 3",
43 "Operating System :: OS Independent",
44 ],
45 install_requires=[
46 'six',
47 'robotframework>=3.1.2',
48 'grpcio',
49 'decorator',
50 'attrs',
51 'parsy'
52 ],
53 python_requires='>=3.6',
54 packages=find_packages(exclude='tests'),
55 package_data={
56 NAME: package_data(),
57 },
58 data_files=[("", ["LICENSE"])],
59 entry_points={
60 'console_scripts': ['grpc_robot.protop = grpc_robot.tools.protop:main'],
61 }
62)