From 90a4ff68029ceda58867b48a028b068a754939f2 Mon Sep 17 00:00:00 2001 From: Patrick Baus Date: Thu, 23 May 2024 15:24:58 +0200 Subject: [PATCH] Updated dependencies to address CVE-2024-26134 (#2) * Updated dependencies to cbor2 >= 5.6.2 * Bump version to 0.16.3 --- .github/workflows/publish-pypi.yml | 2 +- .github/workflows/publish-test-pypi.yml | 2 +- .github/workflows/pylint.yml | 2 +- .pre-commit-config.yaml | 8 ++++---- labnode_async/__init__.py | 1 + labnode_async/_version.py | 2 +- pyproject.toml | 2 +- 7 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/publish-pypi.yml b/.github/workflows/publish-pypi.yml index 2b4a83f..b241da3 100644 --- a/.github/workflows/publish-pypi.yml +++ b/.github/workflows/publish-pypi.yml @@ -13,7 +13,7 @@ jobs: strategy: matrix: - python-version: ["3.10"] + python-version: [ "3.12" ] steps: - name: Checkout source repository diff --git a/.github/workflows/publish-test-pypi.yml b/.github/workflows/publish-test-pypi.yml index 54a35ab..f95b990 100644 --- a/.github/workflows/publish-test-pypi.yml +++ b/.github/workflows/publish-test-pypi.yml @@ -16,7 +16,7 @@ jobs: strategy: matrix: - python-version: ["3.10"] + python-version: [ "3.12" ] steps: - name: Checkout source repository diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index bff5afc..ae6cbf3 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -19,7 +19,7 @@ jobs: strategy: matrix: - python-version: ["3.10"] + python-version: [ "3.10", "3.11", "3.12" ] steps: - name: Checkout source repository diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d9707ab..edf87a9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ # See https://pre-commit.com/hooks.html for more hooks repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.5.0 hooks: # Check for invalid files - id: check-toml @@ -14,7 +14,7 @@ repos: args: [--fix=lf] - id: check-executables-have-shebangs - repo: https://github.com/psf/black - rev: 23.9.1 + rev: 24.4.2 hooks: - id: black args: ['labnode_async'] @@ -24,7 +24,7 @@ repos: - id: blacken-docs args: [--line-length=120] - repo: https://github.com/PyCQA/isort - rev: 5.12.0 + rev: 5.13.2 hooks: - id: isort - repo: local @@ -36,6 +36,6 @@ repos: types: [python] require_serial: true - repo: https://github.com/pre-commit/mirrors-mypy - rev: 'v1.5.1' + rev: 'v1.10.0' hooks: - id: mypy diff --git a/labnode_async/__init__.py b/labnode_async/__init__.py index 4e6681e..93790f9 100644 --- a/labnode_async/__init__.py +++ b/labnode_async/__init__.py @@ -1,6 +1,7 @@ """ The Python implementation for the Labnode API. It supports both :class:`~IPConnection` and :class:`~SerialConnection`. """ + from ._version import __version__ from .ip_connection import IPConnection from .pid_controller import FeedbackDirection, PidController diff --git a/labnode_async/_version.py b/labnode_async/_version.py index 5f5182d..e40d84e 100644 --- a/labnode_async/_version.py +++ b/labnode_async/_version.py @@ -1,2 +1,2 @@ # pylint: disable=missing-module-docstring -__version__ = "0.16.2" +__version__ = "0.16.3" diff --git a/pyproject.toml b/pyproject.toml index 503fd69..fccf981 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -74,7 +74,7 @@ markers = [ requires = [ "setuptools>=61.0", "typing-extensions; python_version <'3.11'", - "cbor2", + "cbor2>=5.6.2", "cobs", "pyserial-asyncio", ]