Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 3.7 warnings, update version and changelog #83

Merged
merged 1 commit into from
May 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.1.18](https://github.com/wesky93/grpc_requests/releases/tag/v0.1.18) - 2024-05-18

## Added

- Support for lazy loading of services in async clients

## [0.1.17](https://github.com/wesky93/grpc_requests/releases/tag/v0.1.17) - 2024-04-22

## Added
Expand Down
2 changes: 1 addition & 1 deletion src/grpc_requests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
)
from .client import Client, ReflectionClient, StubClient, get_by_endpoint

__version__ = "0.1.17"
__version__ = "0.1.18"
6 changes: 6 additions & 0 deletions src/grpc_requests/aio.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
)

import grpc
import warnings
from google.protobuf import (
descriptor_pb2,
message_factory,
Expand Down Expand Up @@ -48,6 +49,11 @@ def get_metadata(package_name: str):
import pkg_resources
from typing_extensions import Protocol

warnings.warn(
"Support for Python 3.7 is deprecated and will be removed in version 0.1.19",
stacklevel=1,
)

def get_metadata(package_name: str):
return pkg_resources.get_distribution(package_name).version

Expand Down
6 changes: 6 additions & 0 deletions src/grpc_requests/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
)

import grpc
import warnings
from google.protobuf import descriptor_pb2, message_factory
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf.descriptor import MethodDescriptor, ServiceDescriptor
Expand All @@ -37,6 +38,11 @@ def get_metadata(package_name: str):
import pkg_resources
from typing_extensions import Protocol, TypedDict

warnings.warn(
"Support for Python 3.7 is deprecated and will be removed in version 0.1.19",
stacklevel=1,
)

def get_metadata(package_name: str):
return pkg_resources.get_distribution(package_name).version

Expand Down