Skip to content

Commit

Permalink
Merge pull request #403 from dimastbk/bump-dependencies
Browse files Browse the repository at this point in the history
deps: bump oauthlib, requests-oauthlib, aiofiles, remove asyncmock
  • Loading branch information
dimastbk authored May 24, 2024
2 parents b5dbb45 + 4d3bf73 commit 4170934
Show file tree
Hide file tree
Showing 14 changed files with 584 additions and 548 deletions.
1,091 changes: 563 additions & 528 deletions poetry.lock

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ packages = [

[tool.poetry.dependencies]
python = "^3.8"
oauthlib = "~=3.1.0"
requests-oauthlib = "~=1.3.0"
aiofiles = ">=0.7,<0.9"
oauthlib = "^3.1.0"
requests-oauthlib = ">=1.3.0,<3.0.0"
aiofiles = ">=0.7,<24"
zeebe-grpc = "^8.4.0"
typing-extensions = "^4.5.0"

Expand All @@ -35,25 +35,25 @@ pylint = "^2.17.5"
black = "^23.7.0"
mypy = "^1.4.1"
coveralls = "^3.3.1"
asyncmock = "^0.4.2"
responses = "^0.23.2"
bump2version = "^1.0.1"
sphinx-rtd-theme = "^1.2.2"
sphinx = "^6"
importlib-metadata = "^6.8.0"

[tool.poetry.group.stubs.dependencies]
types-aiofiles = ">=0.7,<24"
types-oauthlib = "^3.1.0"
types-requests-oauthlib = ">=1.3.0,<3.0.0"

[tool.mypy]
python_version = "3.8"

[[tool.mypy.overrides]]
module = [
"grpc",
"oauthlib",
"requests_oauthlib",
"zeebe_grpc.gateway_pb2",
"zeebe_grpc.gateway_pb2_grpc",
"requests",
"aiofiles"
]
ignore_missing_imports = true

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/channel/camunda_cloud_channel_test.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from unittest.mock import Mock, patch
from uuid import uuid4

import grpc
import pytest
import responses
from mock import Mock, patch

from pyzeebe import create_camunda_cloud_channel
from pyzeebe.errors import InvalidCamundaCloudCredentialsError
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/channel/insecure_channel_test.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from unittest.mock import Mock, patch
from uuid import uuid4

import grpc
import pytest
from mock import Mock, patch

from pyzeebe import create_insecure_channel
from pyzeebe.channel.channel_options import get_channel_options
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/channel/secure_channel_test.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from unittest.mock import Mock, patch
from uuid import uuid4

import grpc
import pytest
from mock import Mock, patch

from pyzeebe import create_secure_channel
from pyzeebe.channel.channel_options import get_channel_options
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/client/client_test.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from random import randint
from unittest.mock import AsyncMock
from uuid import uuid4

import pytest
from mock import AsyncMock

from pyzeebe.errors import ProcessDefinitionNotFoundError

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/client/sync_client_test.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from unittest.mock import AsyncMock
from uuid import uuid4

import grpc
import pytest
from mock import AsyncMock

from pyzeebe import SyncZeebeClient
from pyzeebe.errors import ProcessDefinitionNotFoundError
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/conftest.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
from random import randint
from threading import Event
from unittest.mock import AsyncMock, MagicMock, patch
from uuid import uuid4

import grpc
import pytest
import pytest_asyncio
from mock import AsyncMock, MagicMock, patch

from pyzeebe import Job, ZeebeClient, ZeebeWorker
from pyzeebe.grpc_internals.zeebe_adapter import ZeebeAdapter
Expand Down
3 changes: 2 additions & 1 deletion tests/unit/grpc_internals/zeebe_adapter_base_test.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from unittest.mock import AsyncMock

import grpc
import pytest
from mock import AsyncMock

from pyzeebe.errors import (
ZeebeBackPressureError,
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/grpc_internals/zeebe_process_adapter_test.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from random import randint
from unittest.mock import AsyncMock, patch
from uuid import uuid4

import grpc
import pytest
from mock import AsyncMock, patch

from pyzeebe.errors import (
InvalidJSONError,
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/job/job_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from unittest.mock import AsyncMock
from uuid import uuid4

import pytest
from mock import AsyncMock

from pyzeebe import JobStatus
from pyzeebe.errors import NoZeebeAdapterError
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/utils/gateway_mock.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import json
from random import randint
from typing import Dict, List
from unittest.mock import patch
from uuid import uuid4

import grpc
from mock import patch
from zeebe_grpc.gateway_pb2 import *
from zeebe_grpc.gateway_pb2_grpc import GatewayServicer

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/worker/job_executor_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import asyncio
from unittest.mock import AsyncMock, Mock

import pytest
from mock import AsyncMock, Mock

from pyzeebe.job.job import Job
from pyzeebe.task.task import Task
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/worker/task_router_test.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from unittest import mock
from uuid import uuid4

import mock
import pytest

from pyzeebe import TaskDecorator
Expand Down

0 comments on commit 4170934

Please sign in to comment.