Skip to content

Commit

Permalink
Python: Bump Python version to 1.22.1 for a release (#10751)
Browse files Browse the repository at this point in the history
### Motivation and Context

Bump Python version to 1.22.1 for a release

<!-- Thank you for your contribution to the semantic-kernel repo!
Please help reviewers and future users, providing the following
information:
  1. Why is this change required?
  2. What problem does it solve?
  3. What scenario does it contribute to?
  4. If it fixes an open issue, please link to the issue here.
-->

### Description

Bump Python version to 1.22.1 for a release

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [X] The code builds clean without any errors or warnings
- [X] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [X] All unit tests pass, and I have added new tests where possible
- [X] I didn't break anyone 😄
  • Loading branch information
moonbox3 authored Mar 3, 2025
1 parent 3a799c8 commit 0153073
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions python/semantic_kernel/__init__.py
Original file line number Diff line number Diff line change
@@ -2,8 +2,8 @@

from semantic_kernel.kernel import Kernel

__version__ = "1.22.0"
__version__ = "1.22.1"

DEFAULT_RC_VERSION = f"{__version__}-rc1"
DEFAULT_RC_VERSION = f"{__version__}-rc2"

__all__ = ["DEFAULT_RC_VERSION", "Kernel", "__version__"]
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
from unittest.mock import MagicMock, Mock, patch

import pytest
from transformers import TextIteratorStreamer
from transformers import AutoTokenizer, TextIteratorStreamer

from semantic_kernel.connectors.ai.hugging_face.services.hf_text_completion import HuggingFaceTextCompletion
from semantic_kernel.connectors.ai.prompt_execution_settings import PromptExecutionSettings
@@ -135,6 +135,10 @@ async def test_text_completion_streaming(model_name, task, input_str):
"semantic_kernel.connectors.ai.hugging_face.services.hf_text_completion.Thread",
side_effect=Mock(spec=Thread),
),
patch(
"semantic_kernel.connectors.ai.hugging_face.services.hf_text_completion.AutoTokenizer",
side_effect=Mock(spec=AutoTokenizer),
),
patch(
"semantic_kernel.connectors.ai.hugging_face.services.hf_text_completion.TextIteratorStreamer",
return_value=mock_streamer,

0 comments on commit 0153073

Please sign in to comment.