Skip to content

Commit 8967417

Browse files
mikeprosserniMike Prosser
andauthored
Add ni-apis as a submodule (#859)
* Add ni-apis submodule and update generation of session.proto * Add step to initialize ni-apis submodule in build workflow * exclude ni-apis from linting * move submodule to third_party * use ni.grpcdevice.v1.proto instead of session.proto * clean up .gitmodules * brad's feedback --------- Co-authored-by: Mike Prosser <[email protected]>
1 parent f743659 commit 8967417

File tree

15 files changed

+32
-729
lines changed

15 files changed

+32
-729
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ jobs:
1111
steps:
1212
- name: Check out repo
1313
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
14+
with:
15+
submodules: true
1416
- name: Set up Python
1517
uses: ni/python-actions/setup-python@9768589f3e50672173dad75a6fc181e4a85d33fa # v0.7.0
1618
id: setup-python

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "ni-apis"]
2+
path = third_party/ni-apis
3+
url = https://github.com/ni/ni-apis.git

generated/nidaqmx/_grpc_interpreter.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
from nidaqmx._base_interpreter import BaseEventHandler, BaseInterpreter
1818
from nidaqmx._stubs import nidaqmx_pb2 as grpc_types
1919
from nidaqmx._stubs import nidaqmx_pb2_grpc as nidaqmx_grpc
20-
from nidaqmx._stubs import session_pb2 as session_grpc_types
2120
from nidaqmx.constants import WaveformAttributeMode
2221
from nidaqmx.error_codes import DAQmxErrors
2322
from nidaqmx._grpc_time import convert_time_to_timestamp, convert_timestamp_to_time

generated/nidaqmx/_stubs/nidaqmx_pb2.py

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

generated/nidaqmx/_stubs/nidaqmx_pb2.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import google.protobuf.internal.containers
1616
import google.protobuf.internal.enum_type_wrapper
1717
import google.protobuf.message
1818
import google.protobuf.timestamp_pb2
19-
from nidaqmx._stubs import session_pb2
19+
import session_pb2
2020
import sys
2121
import typing
2222

generated/nidaqmx/_stubs/session_pb2.py

Lines changed: 0 additions & 52 deletions
This file was deleted.

generated/nidaqmx/_stubs/session_pb2.pyi

Lines changed: 0 additions & 240 deletions
This file was deleted.

0 commit comments

Comments
 (0)