mirror of
https://fuchsia.googlesource.com/third_party/pigweed.googlesource.com/pigweed/pigweed
synced 2024-09-20 22:00:58 +00:00
c912ea7b77
This change adds a protoc plugin which generates code for pure raw RPC services, with pw_protobuf_compiler GN support. Change-Id: I485f3f35f2e126ef5239b9b3e99d2cfe5d27dfb3 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/22400 Commit-Queue: Alexei Frolov <frolv@google.com> Reviewed-by: Wyatt Hepler <hepler@google.com>
40 lines
1.2 KiB
Python
40 lines
1.2 KiB
Python
# Copyright 2020 The Pigweed Authors
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
|
# use this file except in compliance with the License. You may obtain a copy of
|
|
# the License at
|
|
#
|
|
# https://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
# License for the specific language governing permissions and limitations under
|
|
# the License.
|
|
"""pw_rpc"""
|
|
|
|
import setuptools # type: ignore
|
|
|
|
setuptools.setup(
|
|
name='pw_rpc',
|
|
version='0.0.1',
|
|
author='Pigweed Authors',
|
|
author_email='pigweed-developers@googlegroups.com',
|
|
description='On-device remote procedure calls',
|
|
packages=setuptools.find_packages(),
|
|
package_data={'pw_rpc': ['py.typed']},
|
|
zip_safe=False,
|
|
entry_points={
|
|
'console_scripts': [
|
|
'pw_rpc_codegen_nanopb = pw_rpc.plugin_nanopb:main',
|
|
'pw_rpc_codegen_raw = pw_rpc.plugin_raw:main'
|
|
]
|
|
},
|
|
install_requires=[
|
|
'protobuf',
|
|
# 'pw_protobuf_compiler',
|
|
# 'pw_status',
|
|
],
|
|
tests_require=['pw_build'],
|
|
)
|