Skip to content

Commit

Permalink
Update to latest version for a bunch of dependencies (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
Marenz authored Sep 12, 2024
2 parents 762523d + 09ded10 commit e4e2897
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
1 change: 1 addition & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
## New Features

- Add input validation checks for `price`, `quantity`, `delivery_period`, `valid_until` and `execution_option`.
- Updated dependencies to latest versions

## Bug Fixes

Expand Down
11 changes: 6 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,13 @@ classifiers = [
requires-python = ">= 3.11, < 4"
# TODO(cookiecutter): Remove and add more dependencies if appropriate
dependencies = [
"frequenz-api-common >= 0.5.3, < 0.7.0",
"googleapis-common-protos >= 1.56.4, < 2",
"grpcio >= 1.65.5, < 2",
"frequenz-api-common >= 0.6.2, < 0.7.0",
"googleapis-common-protos >= 1.65.0, < 2",
"grpcio >= 1.66.1, < 2",
"frequenz-channels >= 1.0.0, < 2",
"frequenz-client-base[grpcio] >= 0.5.0, < 0.6.0",
"frequenz-api-electricity-trading >= 0.2.2, < 1",
"frequenz-client-base >= 0.6.1, < 0.7.0",
"frequenz-api-electricity-trading >= 0.2.3, < 1",
"protobuf >= 5.27.2, < 6",
]
dynamic = ["version"]

Expand Down
6 changes: 2 additions & 4 deletions src/frequenz/client/electricity_trading/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def validate_decimal_places(value: Decimal, decimal_places: int, name: str) -> N
) from exc


class Client(BaseApiClient[ElectricityTradingServiceStub, grpc.aio.Channel]):
class Client(BaseApiClient[ElectricityTradingServiceStub]):
"""Electricity trading client."""

def __init__(
Expand All @@ -93,9 +93,7 @@ def __init__(
connect: Whether to connect to the server immediately.
auth_key: The API key for the authorization.
"""
super().__init__(
server_url, ElectricityTradingServiceStub, grpc.aio.Channel, connect=connect
)
super().__init__(server_url, ElectricityTradingServiceStub, connect=connect)

self._gridpool_orders_streams: dict[
tuple[int, GridpoolOrderFilter],
Expand Down
2 changes: 1 addition & 1 deletion src/frequenz/client/electricity_trading/_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
from frequenz.api.common.v1.grid import delivery_area_pb2, delivery_duration_pb2
from frequenz.api.common.v1.market import energy_pb2, price_pb2
from frequenz.api.common.v1.pagination import pagination_params_pb2
from frequenz.api.common.v1.types import decimal_pb2
from frequenz.api.electricity_trading.v1 import electricity_trading_pb2
from google.protobuf import json_format, struct_pb2, timestamp_pb2
from google.type import decimal_pb2

_logger = logging.getLogger(__name__)

Expand Down
2 changes: 1 addition & 1 deletion tests/test_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
# pylint: disable=no-member
from frequenz.api.common.v1.grid import delivery_area_pb2, delivery_duration_pb2
from frequenz.api.common.v1.market import energy_pb2, price_pb2
from frequenz.api.common.v1.types import decimal_pb2
from frequenz.api.electricity_trading.v1 import electricity_trading_pb2
from google.protobuf import timestamp_pb2
from google.type import decimal_pb2

from frequenz.client.electricity_trading import (
Currency,
Expand Down

0 comments on commit e4e2897

Please sign in to comment.