Skip to content

Commit b712ffc

Browse files
authored
Python: Bump py version to 1.40.0 for a release (#13619)
### Motivation and Context Bump py version to 1.40.0 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 py version to 1.40.0 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 - [ ] I didn't break anyone 😄
1 parent 781881a commit b712ffc

File tree

5 files changed

+4135
-4243
lines changed

5 files changed

+4135
-4243
lines changed

.github/workflows/python-test-coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- name: Install the project
3737
run: uv sync --all-extras --dev -U --prerelease=if-necessary-or-explicit
3838
- name: Test with pytest
39-
run: uv run --frozen pytest -q --junitxml=pytest.xml --cov=semantic_kernel --cov-report=term-missing:skip-covered --cov-report=xml:python-coverage.xml ./tests/unit
39+
run: uv run --frozen pytest -q --junitxml=pytest.xml --cov=semantic_kernel --cov-report=term-missing:skip-covered --cov-report=xml:python-coverage.xml ./tests/unit --ignore=./tests/unit/processes/dapr_runtime
4040
- name: Upload coverage report
4141
uses: actions/upload-artifact@v4
4242
with:

.github/workflows/python-unit-tests.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@ jobs:
2020
python-version: ["3.10", "3.11", "3.12"]
2121
os: [ubuntu-latest, windows-latest, macos-latest]
2222
experimental: [false]
23+
test-suite: ["unit-all-except-dapr", "dapr"]
2324
include:
2425
- python-version: "3.13"
2526
os: "ubuntu-latest"
2627
experimental: true
28+
test-suite: "unit-all-except-dapr"
2729
env:
2830
UV_PYTHON: ${{ matrix.python-version }}
2931
permissions:
@@ -40,14 +42,24 @@ jobs:
4042
enable-cache: true
4143
cache-suffix: ${{ runner.os }}-${{ matrix.python-version }}
4244
cache-dependency-glob: "**/uv.lock"
43-
- name: Install the project
45+
- name: Install the project (all extras)
46+
if: matrix.test-suite == 'unit-all-except-dapr'
4447
run: uv sync --all-extras --dev -U --prerelease=if-necessary-or-explicit
45-
- name: Test with pytest
48+
- name: Install the project (dapr tests)
49+
if: matrix.test-suite == 'dapr'
50+
run: uv sync --extra pandas --dev -U --prerelease=if-necessary-or-explicit && uv pip install "dapr>=1.14.0" "dapr-ext-fastapi>=1.14.0" "flask-dapr>=1.14.0"
51+
- name: Test with pytest (all except dapr)
52+
if: matrix.test-suite == 'unit-all-except-dapr'
4653
env:
4754
PYTHON_GIL: ${{ matrix.gil }}
48-
run: uv run --frozen pytest --junitxml=pytest.xml ./tests/unit
55+
run: uv run --frozen pytest --junitxml=pytest.xml ./tests/unit --ignore=tests/unit/processes/dapr_runtime
56+
- name: Test dapr with pytest
57+
if: matrix.test-suite == 'dapr'
58+
env:
59+
PYTHON_GIL: ${{ matrix.gil }}
60+
run: uv run --frozen pytest --junitxml=pytest-dapr.xml ./tests/unit/processes/dapr_runtime
4961
- name: Surface failing tests
50-
if: ${{ !matrix.experimental }}
62+
if: ${{ !matrix.experimental && matrix.test-suite == 'unit-all-except-dapr' }}
5163
uses: pmeier/pytest-results-action@v0.7.2
5264
with:
5365
path: python/pytest.xml

python/pyproject.toml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ dependencies = [
5454
"websockets >= 13, < 16",
5555
"aiortc>=1.9.0",
5656
# Protobuf
57-
"protobuf",
5857
# explicit typing extensions
5958
"typing-extensions>=4.13",
6059
"mcp>=1.26.0",
@@ -84,11 +83,6 @@ copilotstudio = [
8483
"microsoft-agents-copilotstudio-client >= 0.3.1",
8584
"microsoft-agents-activity >= 0.3.1"
8685
]
87-
dapr = [
88-
"dapr>=1.14.0",
89-
"dapr-ext-fastapi>=1.14.0",
90-
"flask-dapr>=1.14.0",
91-
]
9286
faiss = [
9387
"faiss-cpu>=1.10.0"
9488
]

python/semantic_kernel/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from semantic_kernel.kernel import Kernel
44

5-
__version__ = "1.39.4"
5+
__version__ = "1.40.0"
66

77
DEFAULT_RC_VERSION = f"{__version__}-rc9"
88

0 commit comments

Comments
 (0)