Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions build/defines.mak
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,6 @@ DEFAULT_PY_FILES_TO_GENERATE := \
$(basename $(notdir $(PROTO_FILE)))_pb2_grpc.py \
nidevice_pb2.py \
nidevice_pb2_grpc.py \
session_pb2.py \
session_pb2_grpc.py \
) \

DEFAULT_PY_FILES_TO_COPY := \
Expand Down
1 change: 0 additions & 1 deletion build/rules.mak
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ $(MODULE_DIR)/%: %.mako $(BUILD_HELPER_SCRIPTS) $(METADATA_FILES)
$(MODULE_DIR)/%_pb2.py: %.proto
$(call trace_to_console, "Generating",$@ and $(notdir $*)_pb2_grpc.py)
$(_hide_cmds)$(call log_command,python -m grpc_tools.protoc $(addprefix -I=,$(PROTO_DIRS)) --python_out=$(MODULE_DIR) --grpc_python_out=$(MODULE_DIR) $*.proto)
$(_hide_cmds)$(call log_command,sed -i 's/^import session_pb2/from . import session_pb2/' $(MODULE_DIR)/$*_pb2*.py)
$(_hide_cmds)$(call log_command,sed -i 's/^import nidevice_pb2/from . import nidevice_pb2/' $(MODULE_DIR)/$*_pb2*.py)
$(_hide_cmds)$(call log_command,sed -i 's/^import $(notdir $*)_pb2/from . import $(notdir $*)_pb2/' $(MODULE_DIR)/$*_pb2*.py)

Expand Down
2 changes: 1 addition & 1 deletion build/templates/_grpc_stub_interpreter.py.mako
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ are_complex_parameters_used = helper.are_complex_parameters_used(functions)

import grpc
import hightime # noqa: F401
import session_pb2 as session_grpc_types
import threading
import warnings

Expand All @@ -25,7 +26,6 @@ from . import nidevice_pb2 as grpc_complex_types # noqa: F401
% endif
from . import ${proto_name}_pb2 as grpc_types
from . import ${proto_name}_pb2_grpc as ${module_name}_grpc
from . import session_pb2 as session_grpc_types
% for c in config['custom_types']:

from . import ${c['file_name']} as ${c['file_name']} # noqa: F401
Expand Down
3 changes: 2 additions & 1 deletion build/templates/setup.py.mako
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ setup(
extras_require={
'grpc': [
'grpcio>=1.59.0,<2.0',
'protobuf>=4.21.6'
'protobuf>=4.21.6',
'ni-grpcdevice-v1-proto',
],
},
% endif
Expand Down
2 changes: 1 addition & 1 deletion generated/nidcpower/nidcpower/_grpc_stub_interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@

import grpc
import hightime # noqa: F401
import session_pb2 as session_grpc_types
import threading
import warnings

from . import enums as enums # noqa: F401
from . import errors as errors
from . import nidcpower_pb2 as grpc_types
from . import nidcpower_pb2_grpc as nidcpower_grpc
from . import session_pb2 as session_grpc_types

from . import lcr_measurement as lcr_measurement # noqa: F401

Expand Down
2 changes: 1 addition & 1 deletion generated/nidcpower/nidcpower/nidcpower_pb2.py

Large diffs are not rendered by default.

52 changes: 0 additions & 52 deletions generated/nidcpower/nidcpower/session_pb2.py

This file was deleted.

204 changes: 0 additions & 204 deletions generated/nidcpower/nidcpower/session_pb2_grpc.py

This file was deleted.

3 changes: 2 additions & 1 deletion generated/nidcpower/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ def read_contents(file_to_read):
extras_require={
'grpc': [
'grpcio>=1.59.0,<2.0',
'protobuf>=4.21.6'
'protobuf>=4.21.6',
'ni-grpcdevice-v1-proto',
],
},
classifiers=[
Expand Down
2 changes: 1 addition & 1 deletion generated/nidigital/nidigital/_grpc_stub_interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@

import grpc
import hightime # noqa: F401
import session_pb2 as session_grpc_types
import threading
import warnings

from . import enums as enums # noqa: F401
from . import errors as errors
from . import nidigitalpattern_pb2 as grpc_types
from . import nidigitalpattern_pb2_grpc as nidigital_grpc
from . import session_pb2 as session_grpc_types

from . import history_ram_cycle_information as history_ram_cycle_information # noqa: F401

Expand Down
2 changes: 1 addition & 1 deletion generated/nidigital/nidigital/nidigitalpattern_pb2.py

Large diffs are not rendered by default.

Loading
Loading