From 86cf2d3ff8f6492efe1221c673daf1c290f95305 Mon Sep 17 00:00:00 2001 From: golanha Date: Tue, 11 Feb 2025 10:08:49 +0200 Subject: [PATCH 1/4] remove 3.7 --- .github/workflows/pr.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 5cba2d64..60e1595a 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -17,7 +17,7 @@ jobs: name: Python ${{ matrix.python-version }} strategy: matrix: - python-version: ["3.7", "3.8", "3.9", "3.10"] + python-version: ["3.8", "3.9", "3.10"] fail-fast: false # Steps represent a sequence of tasks that will be executed as part of the job steps: From e6305ff74706ed2335d62dbc635dec3234519fa5 Mon Sep 17 00:00:00 2001 From: golanha Date: Tue, 11 Feb 2025 10:24:51 +0200 Subject: [PATCH 2/4] Correct pymongo version --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index fcf0ad2e..2c9c0eff 100644 --- a/setup.py +++ b/setup.py @@ -20,7 +20,7 @@ 'Events==0.4', 'websocket-client==0.57.0', 'simplejson==3.17.2', - 'pymongo==8.0.4', + 'pymongo==4.10.1', 'msgpack==1.0.2', 'boto3<=1.17.20', "wsaccel==0.6.2", From 83fde0ba877a9fe3e343d1d3ae139ccf742d001d Mon Sep 17 00:00:00 2001 From: golanha Date: Tue, 11 Feb 2025 11:19:24 +0200 Subject: [PATCH 3/4] upgrade zmq --- .github/workflows/pr.yaml | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 60e1595a..ba0e6903 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -35,7 +35,7 @@ jobs: - name: Setup python uses: actions/setup-python@v2 with: - python-version: '3.7' + python-version: '3.8' architecture: x64 - run: ./tools/ci/coverage.sh env: diff --git a/setup.py b/setup.py index 2c9c0eff..96b29b84 100644 --- a/setup.py +++ b/setup.py @@ -25,7 +25,7 @@ 'boto3<=1.17.20', "wsaccel==0.6.2", "six==1.15.0", - 'pyzmq<=22.0.3', + 'pyzmq<=26.2.1', 'jaeger-client==4.0.0; python_version < "3.2.0"', 'jaeger-client>=4.4.0; python_version >= "3.2.0"', "pympler==0.9" From 1bc2e3a4caeb287eb9619a1511c945ec735eb133 Mon Sep 17 00:00:00 2001 From: golanha Date: Tue, 11 Feb 2025 11:59:57 +0200 Subject: [PATCH 4/4] pylint --- hkube_python_wrapper/communication/DataRequest.py | 4 ++-- .../communication/zmq/streaming/ZMQListener.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hkube_python_wrapper/communication/DataRequest.py b/hkube_python_wrapper/communication/DataRequest.py index 129624ec..72ba6fd0 100644 --- a/hkube_python_wrapper/communication/DataRequest.py +++ b/hkube_python_wrapper/communication/DataRequest.py @@ -29,8 +29,8 @@ def invoke(self): responseFrames = adapter.invokeAdapter() results = [] for i in range(0, int(len(responseFrames)/2)): - header = responseFrames[i*2] - content = responseFrames[i*2+1] + header = responseFrames[i*2] # pylint: disable=E1136 + content = responseFrames[i*2+1] # pylint: disable=E1136 decoded = self.encoding.decode(header=header, value=content) results.append((len(content), decoded)) return results diff --git a/hkube_python_wrapper/communication/zmq/streaming/ZMQListener.py b/hkube_python_wrapper/communication/zmq/streaming/ZMQListener.py index 6c83f4c8..f05f124f 100644 --- a/hkube_python_wrapper/communication/zmq/streaming/ZMQListener.py +++ b/hkube_python_wrapper/communication/zmq/streaming/ZMQListener.py @@ -84,7 +84,7 @@ def _readMessage(self, timeout=POLL_MS): if (result == zmq.POLLIN): self._pollTimeoutCount = 0 frames = self._worker.recv_multipart() - signal = frames[0] + signal = frames[0] # pylint: disable=E1136 if (signal == signals.PPP_MSG): hasMsg = True