diff --git a/.github/workflows/python-unit-test.yml b/.github/workflows/python-unit-test.yml index b5899e8..095c6c9 100644 --- a/.github/workflows/python-unit-test.yml +++ b/.github/workflows/python-unit-test.yml @@ -1,45 +1,45 @@ -name: PyTest Unit Test +# name: PyTest Unit Test -on: - push: - branches: - - dev - - staging - - main - paths-ignore: - - version - pull_request: - branches: - - dev - - staging - - main - paths-ignore: - - version +# on: +# push: +# branches: +# - dev +# - staging +# - main +# paths-ignore: +# - version +# pull_request: +# branches: +# - dev +# - staging +# - main +# paths-ignore: +# - version -jobs: - test: - name: Unit Tests - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - python-version: ["3.9"] +# jobs: +# test: +# name: Unit Tests +# runs-on: ubuntu-latest +# strategy: +# fail-fast: false +# matrix: +# python-version: ["3.9"] - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v3 - with: - python-version: ${{ matrix.python-version }} - - name: Install Dependencies - run: | - git config --global url."https://${{ secrets.BOT_OSENSA_TOKEN }}@github".insteadOf ssh://git@github - python -m pip install --upgrade pip - python -m venv venv_test - source venv_test/bin/activate - python -m pip install -r requirements_test.txt - - name: Test with pytest - run: | - source venv_test/bin/activate - pytest ./tests/unit -vvs +# steps: +# - name: Checkout +# uses: actions/checkout@v3 +# - name: Set up Python ${{ matrix.python-version }} +# uses: actions/setup-python@v3 +# with: +# python-version: ${{ matrix.python-version }} +# - name: Install Dependencies +# run: | +# git config --global url."https://${{ secrets.BOT_OSENSA_TOKEN }}@github".insteadOf ssh://git@github +# python -m pip install --upgrade pip +# python -m venv venv_test +# source venv_test/bin/activate +# python -m pip install -r requirements_test.txt +# - name: Test with pytest +# run: | +# source venv_test/bin/activate +# pytest ./tests/unit -vvs diff --git a/.pylintrc b/.pylintrc new file mode 100644 index 0000000..1805004 --- /dev/null +++ b/.pylintrc @@ -0,0 +1,5 @@ +[MASTER] +ignore-patterns=.*pb2.py + +[MESSAGES CONTROL] +disable=fixme \ No newline at end of file diff --git a/client_rpc_channel/client_rpc_channel.py b/client_rpc_channel/client_rpc_channel.py index 19bd6f5..6200229 100644 --- a/client_rpc_channel/client_rpc_channel.py +++ b/client_rpc_channel/client_rpc_channel.py @@ -1,3 +1,5 @@ +'''Client RPC Channel implementation''' + import logging from google.protobuf import service import zmq diff --git a/__init__.py b/client_services/adc/__init__.py similarity index 100% rename from __init__.py rename to client_services/adc/__init__.py diff --git a/client_services/dac/__init__.py b/client_services/dac/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/client_services/din/__init__.py b/client_services/din/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/client_services/dout/__init__.py b/client_services/dout/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/client_services/led/__init__.py b/client_services/led/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/client_services/relay/__init__.py b/client_services/relay/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/client_services/tc/__init__.py b/client_services/tc/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/setup.cfg b/setup.cfg index 8707e63..37742ad 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = edgepi-rpc-client -version = 0.0.1 +version = 0.0.2 author = Josiah Kievit, Isaac James author_email = jkievit@osensa.com, ijames@osensa.com description = Client for EdgePi RPC Server