Commit Graph
168 Commits
Author SHA1 Message Date
Evan Mattson 0fda22e8f5 Python: Bump ruff from 0.5.1 to 0.5.2 (#7358)
### Motivation and Context

Based on #7274, bumping ruff to 0.5.2. Required a manual PR as the
pre-commit.yaml file needs an update.

<!-- 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

Based on #7274, bumping ruff to 0.5.2. Required a manual PR as the
pre-commit.yaml file needs an update.

<!-- 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 😄
2024-07-19 14:09:23 +00:00
Tao Chen 79207ffbbc Python: Migrate to Ollama Python SDK (#7165)
### Motivation and Context

<!-- 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

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->
Currently, the Ollama AI connector uses `aiohttp` sessions to interface
with the local Ollama LLM service. However, we have made the decision to
transition to the official Ollama Python SDK.

Related to: https://github.com/microsoft/semantic-kernel/issues/6841,
https://github.com/microsoft/semantic-kernel/issues/7134

Test coverage report:

![image](https://github.com/microsoft/semantic-kernel/assets/12570346/8d414f71-fc1b-4870-b038-0f7d2985b985)

MyPy warnings: all cleared
### 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 😄
2024-07-16 22:38:21 +00:00
Evan Mattson 5e333d31dc Python: Bump ruff to 0.5.1 (#7180)
### Motivation and Context

Per a previous dependabot PR, bump ruff to 0.5.1.

<!-- 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

Per a previous dependabot PR, bump ruff to 0.5.1. This required manual
handling due to the pre-commit needing an update.

<!-- 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 😄
2024-07-10 07:17:53 +00:00
Evan Mattson f62b2cffc2 Python: Bump Python project version to 1.2.0 for a release. (#7177)
### Motivation and Context

Bump Python project version to 1.2.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 Python project version to 1.2.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
- [X] I didn't break anyone 😄
2024-07-09 18:17:39 +00:00
Nico MöllerandNico Möller ca7a58ed28 Python: #6499 Mistral AI Chat Completion (#7049)
### Motivation and Context

<!-- 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.
-->

 1. Why is this changed required ?
To enable Mistral Models with Semantic Kernel, there was the issue #6499
in the Backlog to add a MistralAI Connector
2. What problem does it solve ?
It solves the problem, that semantic kernel is not yet integrated with
MistralAI
3. What scenario does it contribute to?
The scenario is to use different connector than HF,OpenAI or
AzureOpenAI. When User's want to use Mistral they can easliy integrate
it now
4. If it fixes an open issue, please link to the issue here.
#6499 

### Description

The changes made are designed by the open_ai connector, i tried to stay
as close as possible to the structure.
For the integration i installed the mistral python package in the
repository.

I added the following Classes :
- MistrealAIChatPromptExcecutionSettings --> Responsible to administrate
the Prompt Execution against MistralAI
- MistralAIChatCompletion --> Responsible to coordinate the Classes and
for Content parsing
- MistralAISettings --> Basic Settings to work with the MistralAIClient

**To test the changes with the tests please add MISTRALAI_API_KEY and
MISTRALAI_CHAT_MODEL_ID as Enviorment Variable**

From a design decision i moved the processing of Functions from
Connectors to the ChatCompletionClientBaseClass

What is integrated yet :

- [X] Integrate Mistral AI ChatCompletion Models without Streaming
- [X] Integrate Mistral AI Chat Completion Models with Streaming
- [X] Simple Integration Test to test Streaming and non Streaming
- [x] Extended Testing including Unit Testing & More Integration Tests

### 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 😄

---------

Co-authored-by: Nico Möller <[email protected]>
2024-07-04 12:39:49 +00:00
Eduard van Valkenburg ed24889b7d Python: removed google palm (#7051)
### Motivation and Context

<!-- 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.
-->
Since Google Palm will be deprecated soon, removing Google Palm from SK.

Closes #6362 

### Description

<!-- 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 😄
2024-07-02 13:58:23 +00:00
Eduard van Valkenburg 775994e6c8 Python: restructured pyproject and removed some dependencies (#7005)
### Motivation and Context

<!-- 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.
-->
Went through all dependencies and removed unused ones, updated some with
security notices and restructured the pyproject file to make it easier
to use.

### Description

<!-- 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 😄
2024-06-28 23:03:07 +00:00
Tao ChenandEvan Mattson d22ee5af55 Python: Azure Model-as-a-Service Python connector (#6742)
### Motivation and Context

<!-- 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.
-->
Related to: https://github.com/microsoft/semantic-kernel/pull/6693

Azure Model-as-a-Service allows users to deploy certain models from the
Azure AI Studio model catalog as an API. This option also provides
pay-as-you-go access to the models hosted. Below are some of the models
that are supported:
- Microsoft Phi-3 family
- Meta Llama family (Llama 2 chat & Llama 3 instruct)
- Mistral-Small & Mistral-Large
- and more

We'd like to provide an AI connector for users of SK to use Azure
Model-as-a-Service.

### Description

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->
A new AI connector named `azure_ai_inference` is added to support Azure
Model-as-a-Service. This connector takes a new dependency on the Python
`azure.ai.inference` SDK.

### 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 😄

---------

Co-authored-by: Evan Mattson <[email protected]>
2024-06-24 22:00:57 +00:00
Evan Mattson 8fc645d1fe Python: Bump Python version to 1.1.2 for a release. (#6931)
### Motivation and Context

Bump Python version to 1.1.2 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.1.2 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 😄
2024-06-24 18:54:46 +00:00
Evan Mattson 65b7fd6fbf Python: Bump Python version to 1.1.1 for a release. (#6716)
### Motivation and Context

Bump Python version to 1.1.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.1.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 😄
2024-06-14 20:43:50 -04:00
dependabot[bot] 22e43601d1 Python: Bump pymilvus from 2.3.7 to 2.4.3 in /python (#6516)
Bumps [pymilvus](https://github.com/milvus-io/pymilvus) from 2.3.7 to
2.4.3.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/milvus-io/pymilvus/releases">pymilvus's
releases</a>.</em></p>
<blockquote>
<h2>PyMilvus 2.4.3 ReleaseNotes</h2>
<h2>What's Changed</h2>
<ul>
<li>support the report value in the dml and dql request by <a
href="https://github.com/SimFG"><code>@​SimFG</code></a> in <a
href="https://redirect.github.com/milvus-io/pymilvus/pull/2092">milvus-io/pymilvus#2092</a></li>
<li>enhance: Expand grpcio version to latest by <a
href="https://github.com/XuanYang-cn"><code>@​XuanYang-cn</code></a> in
<a
href="https://redirect.github.com/milvus-io/pymilvus/pull/2096">milvus-io/pymilvus#2096</a></li>
</ul>
<h2>Bug fixes:</h2>
<ul>
<li>fix sparse: accpet int/float wrapped in string by <a
href="https://github.com/zhengbuqian"><code>@​zhengbuqian</code></a> in
<a
href="https://redirect.github.com/milvus-io/pymilvus/pull/2095">milvus-io/pymilvus#2095</a></li>
<li>fix the str function of the extra list by <a
href="https://github.com/SimFG"><code>@​SimFG</code></a> in <a
href="https://redirect.github.com/milvus-io/pymilvus/pull/2098">milvus-io/pymilvus#2098</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/milvus-io/pymilvus/compare/v2.4.2...v2.4.3">https://github.com/milvus-io/pymilvus/compare/v2.4.2...v2.4.3</a></p>
<h2>PyMilvus 2.4.2 Release Notes</h2>
<h2>What's Changed</h2>
<ul>
<li>Support milvuslite by <a
href="https://github.com/junjiejiangjjj"><code>@​junjiejiangjjj</code></a>
in <a
href="https://redirect.github.com/milvus-io/pymilvus/pull/2075">milvus-io/pymilvus#2075</a></li>
<li>Make bulk_writer's requirments optional (<a
href="https://redirect.github.com/milvus-io/pymilvus/issues/2086">#2086</a>)
by <a
href="https://github.com/XuanYang-cn"><code>@​XuanYang-cn</code></a> in
<a
href="https://redirect.github.com/milvus-io/pymilvus/pull/2087">milvus-io/pymilvus#2087</a></li>
<li>enhance: Enable set_properties and describe_database api by <a
href="https://github.com/weiliu1031"><code>@​weiliu1031</code></a> in <a
href="https://redirect.github.com/milvus-io/pymilvus/pull/2084">milvus-io/pymilvus#2084</a></li>
</ul>
<h2>Bug fixes</h2>
<ul>
<li>fix: Remove params for property vars by <a
href="https://github.com/XuanYang-cn"><code>@​XuanYang-cn</code></a> in
<a
href="https://redirect.github.com/milvus-io/pymilvus/pull/2069">milvus-io/pymilvus#2069</a></li>
<li>change sparse related errors to ParamError by <a
href="https://github.com/zhengbuqian"><code>@​zhengbuqian</code></a> in
<a
href="https://redirect.github.com/milvus-io/pymilvus/pull/2070">milvus-io/pymilvus#2070</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/milvus-io/pymilvus/compare/v2.4.1...v2.4.2">https://github.com/milvus-io/pymilvus/compare/v2.4.1...v2.4.2</a></p>
<h2>PyMilvus 2.4.1 Release Notes</h2>
<h2>What's Changed</h2>
<h3>Bug fixes</h3>
<ul>
<li>Fix float16_example and bfloat16_example by <a
href="https://github.com/czs007"><code>@​czs007</code></a> in <a
href="https://redirect.github.com/milvus-io/pymilvus/pull/1993">milvus-io/pymilvus#1993</a></li>
<li>Use wrong placeholder type for bf16 and float16 by <a
href="https://github.com/XuanYang-cn"><code>@​XuanYang-cn</code></a> in
<a
href="https://redirect.github.com/milvus-io/pymilvus/pull/2012">milvus-io/pymilvus#2012</a></li>
<li>Restrict input/search type for vector fields (<a
href="https://redirect.github.com/milvus-io/pymilvus/issues/2025">#2025</a>)
by <a
href="https://github.com/XuanYang-cn"><code>@​XuanYang-cn</code></a> in
<a
href="https://redirect.github.com/milvus-io/pymilvus/pull/2029">milvus-io/pymilvus#2029</a></li>
<li>Fix import array via bulkwriter (<a
href="https://redirect.github.com/milvus-io/pymilvus/issues/2035">#2035</a>)
by <a href="https://github.com/bigsheeper"><code>@​bigsheeper</code></a>
in <a
href="https://redirect.github.com/milvus-io/pymilvus/pull/2036">milvus-io/pymilvus#2036</a></li>
<li>Pass offset parameter for hybrid search to server by <a
href="https://github.com/czs007"><code>@​czs007</code></a> in <a
href="https://redirect.github.com/milvus-io/pymilvus/pull/2052">milvus-io/pymilvus#2052</a></li>
</ul>
<h3>Enhancements</h3>
<ul>
<li>Add warning about gpu example by <a
href="https://github.com/czs007"><code>@​czs007</code></a> in <a
href="https://redirect.github.com/milvus-io/pymilvus/pull/1994">milvus-io/pymilvus#1994</a></li>
<li>Update sparse+dense hybrid search example by <a
href="https://github.com/zhengbuqian"><code>@​zhengbuqian</code></a> in
<a
href="https://redirect.github.com/milvus-io/pymilvus/pull/2014">milvus-io/pymilvus#2014</a></li>
<li>Convert params' value from string to int by <a
href="https://github.com/PowderLi"><code>@​PowderLi</code></a> in <a
href="https://redirect.github.com/milvus-io/pymilvus/pull/2026">milvus-io/pymilvus#2026</a></li>
<li>Support UDS by <a
href="https://github.com/junjiejiangjjj"><code>@​junjiejiangjjj</code></a>
in <a
href="https://redirect.github.com/milvus-io/pymilvus/pull/2030">milvus-io/pymilvus#2030</a></li>
<li>Update hello_hybrid_sparse_dense.py example to include BGE reranker
by <a
href="https://github.com/zhengbuqian"><code>@​zhengbuqian</code></a> in
<a
href="https://redirect.github.com/milvus-io/pymilvus/pull/2032">milvus-io/pymilvus#2032</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/milvus-io/pymilvus/compare/v2.4.0...v2.4.1">https://github.com/milvus-io/pymilvus/compare/v2.4.0...v2.4.1</a></p>
<h2>PyMilvus 2.4.0 Release Notes</h2>
<h3>Milvus 2.4.0-rc.1 related scenario-based features:</h3>
<p>Milvus has released version 2.4.0-rc.1. This version of pymilvus
incorporates the new features introduced in Milvus 2.4.0-rc.1</p>
<ul>
<li><strong>New GPU Index named <a
href="https://docs.rapids.ai/api/raft/nightly/cpp_api/neighbors_cagra/">CAGRA</a></strong>
Thanks to NVIDIA's contribution, this new GPU index provides a 10x
performance boost, especially for batch searches. Please refer to the
sample code in <code>examples/example_gpu_cagra.py</code></li>
<li><strong>Multi-vector and hybrid search</strong>
This feature helps store vector embeddings generated from multiple
models and conduct multi-vector searches accordingly. Please refer to
the sample code in
<code>examples/hello_hybrid_sparse_dense.py</code></li>
<li><strong>Sparse vectors</strong></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/milvus-io/pymilvus/commit/4351db05927c4a7f15a15be3ddc63a8c447a4994"><code>4351db0</code></a>
[2.4] fix the str function of the extra list (<a
href="https://redirect.github.com/milvus-io/pymilvus/issues/2098">#2098</a>)</li>
<li><a
href="https://github.com/milvus-io/pymilvus/commit/75200878e4bac5e34cb3882a9aedd023f14cb380"><code>7520087</code></a>
enhance: [2.4]Expand grpcio version to latest (<a
href="https://redirect.github.com/milvus-io/pymilvus/issues/2096">#2096</a>)</li>
<li><a
href="https://github.com/milvus-io/pymilvus/commit/0979edfd44e2c2a72b602e3edc61e1dcd81bd513"><code>0979edf</code></a>
[2.4] fix sparse: accpet int/float wrapped in string (<a
href="https://redirect.github.com/milvus-io/pymilvus/issues/2095">#2095</a>)</li>
<li><a
href="https://github.com/milvus-io/pymilvus/commit/c19be3caf64106ab1603cccdf974074ccf6ef3e8"><code>c19be3c</code></a>
[2.4] support the report value in the dml and dql request (<a
href="https://redirect.github.com/milvus-io/pymilvus/issues/2092">#2092</a>)</li>
<li><a
href="https://github.com/milvus-io/pymilvus/commit/5b5927221cc30a729902b739f1ffe0200e7868e0"><code>5b59272</code></a>
fix: Revert of dup cherry-pick <a
href="https://redirect.github.com/milvus-io/pymilvus/issues/1949">#1949</a>
(<a
href="https://redirect.github.com/milvus-io/pymilvus/issues/2088">#2088</a>)</li>
<li><a
href="https://github.com/milvus-io/pymilvus/commit/af202c5472d3fd480b6728580245eb854b7a50e5"><code>af202c5</code></a>
enhance: [2.4]Make bulk_writer's requirments optional (<a
href="https://redirect.github.com/milvus-io/pymilvus/issues/2086">#2086</a>)
(<a
href="https://redirect.github.com/milvus-io/pymilvus/issues/2087">#2087</a>)</li>
<li><a
href="https://github.com/milvus-io/pymilvus/commit/9fd084f2e7e4689d8f31fb73ceef38212d08eb4b"><code>9fd084f</code></a>
enhance: Cherry pick <a
href="https://redirect.github.com/milvus-io/pymilvus/issues/1949">#1949</a>,
<a
href="https://redirect.github.com/milvus-io/pymilvus/issues/2065">#2065</a>,
<a
href="https://redirect.github.com/milvus-io/pymilvus/issues/2077">#2077</a>
(<a
href="https://redirect.github.com/milvus-io/pymilvus/issues/2085">#2085</a>)</li>
<li><a
href="https://github.com/milvus-io/pymilvus/commit/e8f4a136992687970f6b29264d67d11f0b712da8"><code>e8f4a13</code></a>
enhance: Enable set_properties and describe_database api (<a
href="https://redirect.github.com/milvus-io/pymilvus/issues/2084">#2084</a>)</li>
<li><a
href="https://github.com/milvus-io/pymilvus/commit/5598667510e04ceb2dc5822626158bdad8f32aed"><code>5598667</code></a>
[2.4] remove scipy dependency for sparse while still supporting it (<a
href="https://redirect.github.com/milvus-io/pymilvus/issues/2076">#2076</a>)</li>
<li><a
href="https://github.com/milvus-io/pymilvus/commit/177a789c898cd60bd5218fb4294eb7cc06b73197"><code>177a789</code></a>
[2.4]Support milvuslite (<a
href="https://redirect.github.com/milvus-io/pymilvus/issues/2075">#2075</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/milvus-io/pymilvus/compare/v2.3.7...v2.4.3">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=pymilvus&package-manager=pip&previous-version=2.3.7&new-version=2.4.3)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-13 19:36:19 +00:00
dependabot[bot]andEvan Mattson 7ce417689f Python: Bump chromadb from 0.4.24 to 0.5.0 in /python (#6659)
Bumps [chromadb](https://github.com/chroma-core/chroma) from 0.4.24 to
0.5.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/chroma-core/chroma/releases">chromadb's
releases</a>.</em></p>
<blockquote>
<h2>0.5.0</h2>
<p>Version: <code>0.5.0</code>
Git ref: <code>refs/tags/0.5.0</code>
Build Date: <code>2024-04-23T23:09</code>
PIP Package: <code>chroma-0.5.0.tar.gz</code>
Github Container Registry Image:
<code>ghcr.io/chroma-core/chroma:0.5.0</code>
DockerHub Image: <code>chromadb/chroma:0.5.0</code></p>
<h2>What's Changed</h2>
<ul>
<li>[ENH] Helm chart by <a
href="https://github.com/beggers"><code>@​beggers</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/1776">chroma-core/chroma#1776</a></li>
<li>[CLN] Fix CI and a couple other cleanups by <a
href="https://github.com/beggers"><code>@​beggers</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/1788">chroma-core/chroma#1788</a></li>
<li>[ENH] get collection info for compactor by <a
href="https://github.com/weiligu"><code>@​weiligu</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/1778">chroma-core/chroma#1778</a></li>
<li>[ENH]: add rate limiting by <a
href="https://github.com/nicolasgere"><code>@​nicolasgere</code></a> in
<a
href="https://redirect.github.com/chroma-core/chroma/pull/1728">chroma-core/chroma#1728</a></li>
<li>[PERF]: Minor docker compose quality of life improvements by <a
href="https://github.com/tazarov"><code>@​tazarov</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/1753">chroma-core/chroma#1753</a></li>
<li>[ENH]: make rust docker image build faster with cache by <a
href="https://github.com/nicolasgere"><code>@​nicolasgere</code></a> in
<a
href="https://redirect.github.com/chroma-core/chroma/pull/1730">chroma-core/chroma#1730</a></li>
<li>[ENH] readme for local postgres setup by <a
href="https://github.com/weiligu"><code>@​weiligu</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/1795">chroma-core/chroma#1795</a></li>
<li>[ENH] FE talks to logservice by <a
href="https://github.com/weiligu"><code>@​weiligu</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/1793">chroma-core/chroma#1793</a></li>
<li>[ENH]: add quota add limit by <a
href="https://github.com/nicolasgere"><code>@​nicolasgere</code></a> in
<a
href="https://redirect.github.com/chroma-core/chroma/pull/1789">chroma-core/chroma#1789</a></li>
<li>[ENH]: add grpc python client interceptor by <a
href="https://github.com/nicolasgere"><code>@​nicolasgere</code></a> in
<a
href="https://redirect.github.com/chroma-core/chroma/pull/1802">chroma-core/chroma#1802</a></li>
<li>[ENH] Refactor k8s manifests for configurability by <a
href="https://github.com/beggers"><code>@​beggers</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/1808">chroma-core/chroma#1808</a></li>
<li>[ENH]: go grpc interceptor server by <a
href="https://github.com/nicolasgere"><code>@​nicolasgere</code></a> in
<a
href="https://redirect.github.com/chroma-core/chroma/pull/1803">chroma-core/chroma#1803</a></li>
<li>[ENH] add log id to pullLogs response by <a
href="https://github.com/weiligu"><code>@​weiligu</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/1809">chroma-core/chroma#1809</a></li>
<li>[ENH]: rename go module and move to shared pkg by <a
href="https://github.com/nicolasgere"><code>@​nicolasgere</code></a> in
<a
href="https://redirect.github.com/chroma-core/chroma/pull/1810">chroma-core/chroma#1810</a></li>
<li>[ENH] Add rust client to log service by <a
href="https://github.com/Ishiihara"><code>@​Ishiihara</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/1811">chroma-core/chroma#1811</a></li>
<li>[DOC] Update pull_request_template.md by <a
href="https://github.com/HammadB"><code>@​HammadB</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/1824">chroma-core/chroma#1824</a></li>
<li>[BLD] Remove hosted chroma workflow dispatches by <a
href="https://github.com/beggers"><code>@​beggers</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/1832">chroma-core/chroma#1832</a></li>
<li>[ENH]: OpenCLIP EF <code>device</code> param by <a
href="https://github.com/tazarov"><code>@​tazarov</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/1806">chroma-core/chroma#1806</a></li>
<li>[BUG]: Added missing $not_contains operator for WhereDocument by <a
href="https://github.com/tazarov"><code>@​tazarov</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/1781">chroma-core/chroma#1781</a></li>
<li>[BUG]: Deleting FTS entries upon deletion of individual records by
<a href="https://github.com/tazarov"><code>@​tazarov</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/1689">chroma-core/chroma#1689</a></li>
<li>[ENH]: Updates to validation errors by <a
href="https://github.com/tazarov"><code>@​tazarov</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/1703">chroma-core/chroma#1703</a></li>
<li>[DOC] add a bit more detail to the js client DEVELOP.md by <a
href="https://github.com/AlabasterAxe"><code>@​AlabasterAxe</code></a>
in <a
href="https://redirect.github.com/chroma-core/chroma/pull/1829">chroma-core/chroma#1829</a></li>
<li>[ENH]: add grpc client interceptor by <a
href="https://github.com/nicolasgere"><code>@​nicolasgere</code></a> in
<a
href="https://redirect.github.com/chroma-core/chroma/pull/1818">chroma-core/chroma#1818</a></li>
<li>[ENH] remove sysdb cache by <a
href="https://github.com/weiligu"><code>@​weiligu</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/1835">chroma-core/chroma#1835</a></li>
<li>[ENH] helm chart tweaks by <a
href="https://github.com/beggers"><code>@​beggers</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/1836">chroma-core/chroma#1836</a></li>
<li>[ENH] Helm CD to hosted by <a
href="https://github.com/beggers"><code>@​beggers</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/1840">chroma-core/chroma#1840</a></li>
<li>[ENH] Blockfile provider by <a
href="https://github.com/HammadB"><code>@​HammadB</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/1819">chroma-core/chroma#1819</a></li>
<li>[CLN] Run coordinator in <code>/bin/sh</code> by <a
href="https://github.com/beggers"><code>@​beggers</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/1816">chroma-core/chroma#1816</a></li>
<li>[ENH] log service staging by <a
href="https://github.com/weiligu"><code>@​weiligu</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/1843">chroma-core/chroma#1843</a></li>
<li>[ENH] Add system scheduler to allow tasks to run with a schedule by
<a href="https://github.com/Ishiihara"><code>@​Ishiihara</code></a> in
<a
href="https://redirect.github.com/chroma-core/chroma/pull/1839">chroma-core/chroma#1839</a></li>
<li>[ENH] Arrow-backed block by <a
href="https://github.com/HammadB"><code>@​HammadB</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/1820">chroma-core/chroma#1820</a></li>
<li>[ENH] Block builder by <a
href="https://github.com/HammadB"><code>@​HammadB</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/1821">chroma-core/chroma#1821</a></li>
<li>[ENH] Block iterator by <a
href="https://github.com/HammadB"><code>@​HammadB</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/1822">chroma-core/chroma#1822</a></li>
<li>[DOC] Update and rename README to README.md by <a
href="https://github.com/HammadB"><code>@​HammadB</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/1848">chroma-core/chroma#1848</a></li>
<li>[ENH] Compactor scheduler with system by <a
href="https://github.com/Ishiihara"><code>@​Ishiihara</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/1844">chroma-core/chroma#1844</a></li>
<li>[TST] Scheduler test fix by <a
href="https://github.com/HammadB"><code>@​HammadB</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/1851">chroma-core/chroma#1851</a></li>
<li>[TST] fix flacky coordinator tests by <a
href="https://github.com/weiligu"><code>@​weiligu</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/1852">chroma-core/chroma#1852</a></li>
<li>[ENH] last compaction time by <a
href="https://github.com/weiligu"><code>@​weiligu</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/1856">chroma-core/chroma#1856</a></li>
<li>[BLD] Add docker arg to build in release mode by <a
href="https://github.com/HammadB"><code>@​HammadB</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/1859">chroma-core/chroma#1859</a></li>
<li>[ENH] Block delta by <a
href="https://github.com/HammadB"><code>@​HammadB</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/1823">chroma-core/chroma#1823</a></li>
<li>[ENH] Sparse index by <a
href="https://github.com/HammadB"><code>@​HammadB</code></a> in <a
href="https://redirect.github.com/chroma-core/chroma/pull/1825">chroma-core/chroma#1825</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/chroma-core/chroma/commit/26b8ac67628e7b87ce53f067c0e95986378ccbaa"><code>26b8ac6</code></a>
[RELEASE] Release 0.5.0 (<a
href="https://redirect.github.com/chroma-core/chroma/issues/2047">#2047</a>)</li>
<li><a
href="https://github.com/chroma-core/chroma/commit/5d909d4f8afd08e437e0bdcf08dbfdcd4da9b26a"><code>5d909d4</code></a>
[BLD] add lint workflow (<a
href="https://redirect.github.com/chroma-core/chroma/issues/2045">#2045</a>)</li>
<li><a
href="https://github.com/chroma-core/chroma/commit/e5ec1b39171f62db4efe549207e488bbbdb9a12c"><code>e5ec1b3</code></a>
[ENH]: use name/uuid to get collection (<a
href="https://redirect.github.com/chroma-core/chroma/issues/2040">#2040</a>)</li>
<li><a
href="https://github.com/chroma-core/chroma/commit/ce5c6b35e7ee7b2786eec6e3f5e7c821fb30d844"><code>ce5c6b3</code></a>
[TST] Try to fix a sporadic test failure (<a
href="https://redirect.github.com/chroma-core/chroma/issues/2030">#2030</a>)</li>
<li><a
href="https://github.com/chroma-core/chroma/commit/e3d2b8aacc7a9a5da35fc726f48f25750aaf57e9"><code>e3d2b8a</code></a>
[BUG] Fix JS client regression (<a
href="https://redirect.github.com/chroma-core/chroma/issues/2026">#2026</a>)</li>
<li><a
href="https://github.com/chroma-core/chroma/commit/729e6578d5649e2c9a8f586b35d33629e52c61e4"><code>729e657</code></a>
[ENH] Simplify auth and correctly overwrite singleton tenant+db (<a
href="https://redirect.github.com/chroma-core/chroma/issues/1970">#1970</a>)</li>
<li><a
href="https://github.com/chroma-core/chroma/commit/f44d9e82d2c1ff4348f0ddd8ae32597f3bccf057"><code>f44d9e8</code></a>
[BUG] Make the gracefulperiod to be 0 for pod deletion (<a
href="https://redirect.github.com/chroma-core/chroma/issues/2011">#2011</a>)</li>
<li><a
href="https://github.com/chroma-core/chroma/commit/8848300ffc584eb9fce5aead02f3cf35985af375"><code>8848300</code></a>
[ENH]: Add offset/limit collection sysdb (<a
href="https://redirect.github.com/chroma-core/chroma/issues/1999">#1999</a>)</li>
<li><a
href="https://github.com/chroma-core/chroma/commit/df29a4166df0027d51e841218852f54194d45598"><code>df29a41</code></a>
[ENH] Make TestSysDb thread safe (<a
href="https://redirect.github.com/chroma-core/chroma/issues/2010">#2010</a>)</li>
<li><a
href="https://github.com/chroma-core/chroma/commit/663a02d9fd9804924297f16042fbbb117fd02042"><code>663a02d</code></a>
[ENH] Rust write segments and flush S3 operator skeleton (<a
href="https://redirect.github.com/chroma-core/chroma/issues/2009">#2009</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/chroma-core/chroma/compare/0.4.24...0.5.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=chromadb&package-manager=pip&previous-version=0.4.24&new-version=0.5.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Evan Mattson <[email protected]>
2024-06-13 17:22:41 +00:00
Evan Mattson 890eab10ca Python: Bump Python version to 1.1.0 for a release. (#6699)
### Motivation and Context

Bump Python version to 1.1.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 Python version to 1.1.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
- [X] I didn't break anyone 😄
2024-06-13 16:31:26 +00:00
Evan Mattson 693758a964 Python: Bump Python version to 1.0.5 for a release. (#6564)
### Motivation and Context

Bump Python version to 1.0.5 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.0.5 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 😄
2024-06-05 17:03:57 +00:00
Evan Mattson eab0e67ba0 Python: Bump Python version to 1.0.4 for a release. (#6488)
### Motivation and Context

Bump Python version to 1.0.4 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.0.4 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 😄
2024-06-03 17:37:39 +00:00
dependabot[bot] 7297f4d66c Python: Bump regex from 2023.12.25 to 2024.5.15 in /python (#6291)
Bumps [regex](https://github.com/mrabarnett/mrab-regex) from 2023.12.25
to 2024.5.15.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/mrabarnett/mrab-regex/blob/hg/changelog.txt">regex's
changelog</a>.</em></p>
<blockquote>
<p>Version: 2024.5.15</p>
<pre><code>Git issue 530: hangs with fuzzy and optionals
<p>It's not hanging, it'll finish eventually. It's just an example of
catastrophic backtracking.</p>
<p>The error printed when Ctrl+C is pressed does show a bug, though,
which is now fixed.
</code></pre></p>
<p>Version: 2024.5.10</p>
<pre><code>Updated for Python 3.13.
<p>&lt;time.h&gt; now needs to be included explicitly because Python.h
no longer includes it.
</code></pre></p>
<p>Version: 2024.4.28</p>
<pre><code>Git issue 527: `VERBOSE`/`X` flag breaks `\N` escapes
</code></pre>
<p>Version: 2024.4.16</p>
<pre><code>Git issue 525: segfault when fuzzy matching empty list
</code></pre>
<p>Version: 2023.12.25</p>
<pre><code>Cannot get release notification action in main.yml to work.
Commenting it out for now.
</code></pre>
<p>Version: 2023.12.24</p>
<pre><code>Fixed invalid main.yml.
</code></pre>
<p>Version: 2023.12.23</p>
<pre><code>The escape function no longer escapes \x00. It's not
necessary.
<p>Inline flags can now be turned off and apply to what follows.</p>
<p>Added \R to match line endings.
</code></pre></p>
<p>Version: 2023.10.3</p>
<pre><code>Updated to Unicode 15.1.0.
</code></pre>
<p>Version: 2023.8.8</p>
<pre><code>Git issue 508: Regex doesn't build using CPython main
(3.13.0a0)
Removed usage of _PyBytes_Join and did a little tidying of the code that
makes the result string.
</code></pre>
<p>Version: 2023.6.3</p>
<pre><code>Git issue 498: Conditional negative lookahead inside positive
lookahead fails to match
</code></pre>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/mrabarnett/mrab-regex/commit/8eabb4223e4b1d4c7b6a4496328e00eee5e352e5"><code>8eabb42</code></a>
Git issue 530: hangs with fuzzy and optionals</li>
<li><a
href="https://github.com/mrabarnett/mrab-regex/commit/be139ffc3a18a7ead6939ea19015dc41e3682ec4"><code>be139ff</code></a>
Updated for Python 3.13.</li>
<li><a
href="https://github.com/mrabarnett/mrab-regex/commit/2e3272be48e32367cb1110dba5329ace06312017"><code>2e3272b</code></a>
Git issue 527: <code>VERBOSE</code>/<code>X</code> flag breaks
<code>\N</code> escapes</li>
<li><a
href="https://github.com/mrabarnett/mrab-regex/commit/9c950f2c25a5b1221a059761c5f90b9ee0f31763"><code>9c950f2</code></a>
Updated changelog.</li>
<li><a
href="https://github.com/mrabarnett/mrab-regex/commit/5d65c8a727eb3e81d5681ec0be84e02af0f9b20b"><code>5d65c8a</code></a>
Git issue 525: segfault when fuzzy matching empty list</li>
<li><a
href="https://github.com/mrabarnett/mrab-regex/commit/4f2ed52b3d73f39541026cf74f7c23106086b0b5"><code>4f2ed52</code></a>
Cannot get release notification action in main.yml to work. Commenting
it out...</li>
<li>See full diff in <a
href="https://github.com/mrabarnett/mrab-regex/compare/2023.12.25...2024.5.15">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=regex&package-manager=pip&previous-version=2023.12.25&new-version=2024.5.15)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-31 18:09:13 +00:00
Eduard van Valkenburg fbb26b5cf6 Python: further improvements to checks and docs in dev_setup (#6445)
### Motivation and Context

<!-- 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.
-->
Added a section on documentation to the DEV_SETUP
Added a check for the copyright row to pre-commit
Closes #5629

### Description

<!-- 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 😄
2024-05-31 13:06:41 +00:00
dependabot[bot]andEvan Mattson 377287f4a7 Python: Bump pyarrow from 15.0.2 to 16.1.0 in /python (#6290)
Bumps [pyarrow](https://github.com/apache/arrow) from 15.0.2 to 16.1.0.
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/apache/arrow/commit/7dd1d34074af176d9e861a360e135ae57b21cf96"><code>7dd1d34</code></a>
MINOR: [Release] Update versions for 16.1.0</li>
<li><a
href="https://github.com/apache/arrow/commit/ca3e9d1b6fbf9a1e2d2fe34a387041132ecddd3e"><code>ca3e9d1</code></a>
MINOR: [Release] Update .deb/.rpm changelogs for 16.1.0</li>
<li><a
href="https://github.com/apache/arrow/commit/63a42871f206edf9889f1617eac29b11514df316"><code>63a4287</code></a>
MINOR: [Release] Update CHANGELOG.md for 16.1.0</li>
<li><a
href="https://github.com/apache/arrow/commit/58742877144a4f728c99682cae52898ccab5f954"><code>5874287</code></a>
<a
href="https://redirect.github.com/apache/arrow/issues/41594">GH-41594</a>:
[Go] Support reading <code>date64</code> type &amp; properly validate
list-like ty...</li>
<li><a
href="https://github.com/apache/arrow/commit/81940c69e6843c22c2fa61ad05c668c3241b3016"><code>81940c6</code></a>
<a
href="https://redirect.github.com/apache/arrow/issues/41431">GH-41431</a>:
[C++][Parquet][Dataset] Fix repeated scan on encrypted dataset (<a
href="https://redirect.github.com/apache/arrow/issues/41">#41</a>...</li>
<li><a
href="https://github.com/apache/arrow/commit/be62f6c5717d960282c70f6150725b306919a672"><code>be62f6c</code></a>
<a
href="https://redirect.github.com/apache/arrow/issues/41577">GH-41577</a>:
[Java][Packaging] Add org.apache.arrow.memory.core to
--add-opens=j...</li>
<li><a
href="https://github.com/apache/arrow/commit/6cfebb947e9c91b3a823e5dc7a1672d1b0a0141e"><code>6cfebb9</code></a>
<a
href="https://redirect.github.com/apache/arrow/issues/41562">GH-41562</a>:
[C++][Parquet] Decoding: Fix num_value handling in
ByteStreamSplitD...</li>
<li><a
href="https://github.com/apache/arrow/commit/dcfeceb93f29b343cedbee4a2f93cbdbc4eed8e7"><code>dcfeceb</code></a>
<a
href="https://redirect.github.com/apache/arrow/issues/41140">GH-41140</a>:
[C#] Account for offset and length in union arrays (<a
href="https://redirect.github.com/apache/arrow/issues/41165">#41165</a>)</li>
<li><a
href="https://github.com/apache/arrow/commit/b28633cfe5263ac977598f058b53d76f95d3d1fc"><code>b28633c</code></a>
MINOR: [Release] Manually commit fix to avoid cherry-pick conflict for
changi...</li>
<li><a
href="https://github.com/apache/arrow/commit/ac8af222dd2e5800e2c6cbf45a5bdbb2309deed4"><code>ac8af22</code></a>
<a
href="https://redirect.github.com/apache/arrow/issues/41566">GH-41566</a>:
[CI][Packaging] macOS wheel for Catalina fails to build on macOS
ar...</li>
<li>Additional commits viewable in <a
href="https://github.com/apache/arrow/compare/go/v15.0.2...go/v16.1.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=pyarrow&package-manager=pip&previous-version=15.0.2&new-version=16.1.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Evan Mattson <[email protected]>
2024-05-31 08:45:20 +00:00
Eduard van Valkenburg e03b3fa168 Python: Run notebooks as tests (#6430)
### Motivation and Context

<!-- 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.
-->
Run notebooks as tests, working for all gettings started notebooks.
Also updated learn resources samples test, this can now easily be
extended with other sample scripts.

Closes: #4637
Partially closes: #4638

### Description

<!-- 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 😄
2024-05-29 15:50:55 +00:00
Evan Mattson 246b84357f Python: Bump Python version to 1.0.3 for a release. (#6432)
### Motivation and Context

Bump Python version to 1.0.3 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.0.3 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: -->

- [ ] The code builds clean without any errors or warnings
- [ ] 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
- [ ] All unit tests pass, and I have added new tests where possible
- [ ] I didn't break anyone 😄
2024-05-28 16:51:05 -04:00
Eduard van Valkenburg 9e99933a27 Python: new pre-commit actions and pre-commit as GHA (#6376)
### Motivation and Context

<!-- 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.
-->

- Added static code checking to pre-commit (check-ast and
nbqa-check-ast)
- Added Bandit security checking to pre-commit
- Added pre-commit step to python-lint workflow, if it works, can delete
seperate mypy, ruff and black tests

### Description

<!-- 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 😄
2024-05-28 15:28:04 +00:00
Evan Mattson 43b7d40d8b Python: Bump Python version to 1.0.2 for a release (#6380)
### Motivation and Context

Bump Python version to 1.0.2 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.0.2 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 😄
2024-05-23 14:12:27 -04:00
Evan Mattson f304114060 Python: Bump Python version to 1.0.1 for a release. (#6368)
### Motivation and Context

Bump Python version to 1.0.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.0.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 😄
2024-05-22 16:08:13 +00:00
Eduard van Valkenburg 8f97c28c73 Python: updated pyproject and lock (#6363)
### Motivation and Context

<!-- 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.
-->
replace a bunch of other package update PRs
Removed obsolete package specification for py<3.10

### Description

<!-- 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 😄
2024-05-22 14:46:12 +00:00
Evan Mattson 2b96abfb2f Python: Bump Python version to v1.0.0 (#6345)
### Motivation and Context

Bump Python version to v1.0.0

<!-- 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 v1.0.0

<!-- 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 😄
2024-05-20 20:02:15 -04:00
ec93cb45eb Python: Adds a memory connector for Azure Cosmos DB for NoSQL (#6195)
### Motivation and Context

Azure Cosmos DB is adding Vector Similarity APIs to the NoSQL project,
and would like Semantic Kernel users to be able to leverage them.

This adds a Memory Connector implementation for Azure Cosmos DB's,
including support for the new vector search functionality coming soon in
Cosmos DB.

<!-- 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

<!-- 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: -->

- [ ] The code builds clean without any errors or warnings
- [ ] 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
- [ ] All unit tests pass, and I have added new tests where possible
- [ ] I didn't break anyone 😄

---------

Co-authored-by: Eduard van Valkenburg <[email protected]>
Co-authored-by: Evan Mattson <[email protected]>
2024-05-18 12:32:30 +00:00
Evan Mattson 49980638ed Python: Bump version to 1.0.0rc1. (#6321)
### Motivation and Context

Python: Bump version to 1.0.0rc1.

<!-- 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

Python: Bump version to 1.0.0rc1.

<!-- 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 😄
2024-05-17 18:32:18 -04:00
Evan Mattson 33f278c477 Python: Bump python version to 0.9.9b1 for release. (#6299)
### Motivation and Context

Bump python version to 0.9.9b1 for 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 0.9.9b1 for 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 😄
2024-05-16 18:18:22 +00:00
Evan Mattson 46f5ea15a2 Python: Introduce Pydantic settings (#6193)
### Motivation and Context

SK Python is tightly coupled to the use of a `.env` file to read all
secrets, keys, endpoints, and more. This doesn't scale well for users
who wish to be able to use environment variables with their SK
Applications. By introducing Pydantic Settings, it is possible to use
both environment variables as well as have a fall-back to a `.env` file
(via a `env_file_path` parameter), if desired.

By introducing Pydantic Settings, we are removing the requirement to
have to create Text/Embedding/Chat completion objects with an `api_key`
or other previously required information (in the case of
AzureChatCompletion that means an `endpoint`, an `api_key`, a
`deployment_name`, and an `api_version`). When the AI connector is
created, the Pydantic settings are loaded either via env vars or the
fall-back `.env` file, and that means the user can create a chat
completion object like:

```python
chat_completion = OpenAIChatCompletion(service_id="test")
```

or, to optionally override the `ai_model_id` env var:

```python
chat_completion = OpenAIChatCompletion(service_id="test", ai_model_id="gpt-4-1106")
```
Note: we have left the ability to specific an `api_key`/`org_id` for
`OpenAIChatCompletion` or a `deployment_name`, `endpoint`, `base_url`,
and `api_version` for `AzureChatCompletion` as before, but if your
settings are configured to use env vars/.env file then there is no need
to pass this information.

<!-- 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

The PR introduces the use of Pydantic settings and removes the use of
the python-dotenv library.
- Closes #1779 
- Updates notebooks, samples, code and tests to remove the explicit
config of api_key or other previous .env files values.
- Adds new unit test config using monkeypatch to simulate env variables
for testing
- All unit and integration tests passing

<!-- 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 😄
2024-05-16 11:44:40 +00:00
Evan Mattson 7b4aba4797 Python: Bump Python version to 0.9.8b1 for a release. (#6178)
### Motivation and Context

Bump Python version to 0.9.8b1 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 0.9.8b1 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 😄
2024-05-09 19:06:08 -04:00
Lazaro HurtadoandLazaro Hurtado 9e70e7172b Python: updating pinecone client (#6021)
### Motivation and Context

<!-- 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?
  3. What problem does it solve?
  4. What scenario does it contribute to?
  5. If it fixes an open issue, please link to the issue here.
-->

### Description
1. Why is this change required?
    - Allow developers to use Pinecone as a memory store
2. What problem does it solve?
- Currently using the Pinecone memory store class throws the deprecation
error message show below:
`AttributeError: init is no longer a top-level attribute of the pinecone
package.`
This PR fixes this issue by updating `pinecone-client` to a new major
version and using the new initialization.
3. If it fixes an open issue, please link to the issue here.
    #4914 

### 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 😄

---------

Co-authored-by: Lazaro Hurtado <[email protected]>
2024-05-08 17:44:34 +00:00
Evan Mattson 6ce7e1ef5e Python: Bump py version for release (#6123)
### Motivation and Context

Bump py version for release from 0.9.6b1 -> 0.9.7b1.

<!-- 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 for release from 0.9.6b1 -> 0.9.7b1.

<!-- 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 😄
2024-05-06 12:54:30 +00:00
Evan Mattson 9a44506220 Python: add new samples and fix streaming tool call FunctionCallContent formation (#5877)
### Motivation and Context

We're working towards creating a core set of syntax examples (there are
four total). The core examples will be available in all 3 SK languages.

<!-- 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

This PR introduces two (of the four) new kernel syntax examples, which
will align with the new kernel examples coming soon for both dotnet and
Java. #5784
- Introduce a custom weather plugin that in conjunction with the core
TimePlugin, make use of auto function calling.
- Introduce a kernel syntax example that shows how to integrate with the
Microsoft Graph API to create a "restaurant booking." Note: this doesn't
actually place a real reservation, but shows how to interact with
msgraph.
- Also fixes an issue where the streaming tool call argument formation
was broken. Closes #6106

<!-- 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 😄
2024-05-02 22:15:07 +00:00
dependabot[bot] 3cb279774a Python: Bump ruff from 0.3.7 to 0.4.1 in /python (#5966)
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.3.7 to 0.4.1.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/astral-sh/ruff/releases">ruff's
releases</a>.</em></p>
<blockquote>
<h2>v0.4.1</h2>
<h2>Changes</h2>
<h3>Preview features</h3>
<ul>
<li>[<code>pylint</code>] Implement <code>invalid-hash-returned</code>
(<code>PLE0309</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/10961">#10961</a>)</li>
<li>[<code>pylint</code>] Implement <code>invalid-index-returned</code>
(<code>PLE0305</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/10962">#10962</a>)</li>
</ul>
<h3>Bug fixes</h3>
<ul>
<li>[<code>pylint</code>] Allow <code>NoReturn</code>-like functions for
<code>__str__</code>, <code>__len__</code>, etc. (<code>PLE0307</code>)
(<a
href="https://redirect.github.com/astral-sh/ruff/pull/11017">#11017</a>)</li>
<li>Parser: Use empty range when there's &quot;gap&quot; in token source
(<a
href="https://redirect.github.com/astral-sh/ruff/pull/11032">#11032</a>)</li>
<li>[<code>ruff</code>] Ignore stub functions in
<code>unused-async</code> (<code>RUF029</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11026">#11026</a>)</li>
<li>Parser: Expect indented case block instead of match stmt (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11033">#11033</a>)</li>
</ul>
<h2>Contributors</h2>
<ul>
<li><a
href="https://github.com/AlexWaygood"><code>@​AlexWaygood</code></a></li>
<li><a
href="https://github.com/HenryAsa"><code>@​HenryAsa</code></a></li>
<li><a
href="https://github.com/MithicSpirit"><code>@​MithicSpirit</code></a></li>
<li><a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a></li>
<li><a
href="https://github.com/dhruvmanila"><code>@​dhruvmanila</code></a></li>
<li><a
href="https://github.com/tibor-reiss"><code>@​tibor-reiss</code></a></li>
</ul>
<h2>v0.4.0</h2>
<h2>Changes</h2>
<h3>A new, hand-written parser</h3>
<p>Ruff's new parser is <strong>&gt;2x faster</strong>, which translates
to a <strong>20-40% speedup</strong> for all linting and formatting
invocations. There's a lot to say about this exciting change, so check
out the <a href="https://astral.sh/blog/ruff-v0.4.0">blog post</a> for
more details!</p>
<p>See <a
href="https://redirect.github.com/astral-sh/ruff/pull/10036">#10036</a>
for implementation details.</p>
<h3>A new language server in Rust</h3>
<p>With this release, we also want to highlight our new language server.
<code>ruff server</code> is a Rust-powered language server that comes
built-in with Ruff. It can be used with any editor that supports the <a
href="https://microsoft.github.io/language-server-protocol/">Language
Server Protocol</a> (LSP). It uses a multi-threaded, lock-free
architecture inspired by <code>rust-analyzer</code> and it will open the
door for a lot of exciting features. It’s also faster than our previous
<a href="https://github.com/astral-sh/ruff-lsp">Python-based language
server</a> -- but you probably guessed that already.</p>
<p><code>ruff server</code> is only in alpha, but it has a lot of
features that you can try out today:</p>
<ul>
<li>Lints Python files automatically and shows quick-fixes when
available</li>
<li>Formats Python files, with support for range formatting</li>
<li>Comes with commands for quickly performing actions:
<code>ruff.applyAutofix</code>, <code>ruff.applyFormat</code>, and
<code>ruff.applyOrganizeImports</code></li>
<li>Supports <code>source.fixAll</code> and
<code>source.organizeImports</code> source actions</li>
<li>Automatically reloads your project configuration when you change
it</li>
</ul>
<p>To setup <code>ruff server</code> with your editor, refer to the <a
href="https://github.com/astral-sh/ruff/blob/main/crates/ruff_server/README.md">README.md</a>.</p>
<h3>Preview features</h3>
<ul>
<li>[<code>pycodestyle</code>] Do not trigger <code>E3</code> rules on
<code>def</code>s following a function/method with a dummy body (<a
href="https://redirect.github.com/astral-sh/ruff/pull/10704">#10704</a>)</li>
<li>[<code>pylint</code>] Implement <code>invalid-bytes-returned</code>
(<code>E0308</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/10959">#10959</a>)</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md">ruff's
changelog</a>.</em></p>
<blockquote>
<h2>0.4.1</h2>
<h3>Preview features</h3>
<ul>
<li>[<code>pylint</code>] Implement <code>invalid-hash-returned</code>
(<code>PLE0309</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/10961">#10961</a>)</li>
<li>[<code>pylint</code>] Implement <code>invalid-index-returned</code>
(<code>PLE0305</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/10962">#10962</a>)</li>
</ul>
<h3>Bug fixes</h3>
<ul>
<li>[<code>pylint</code>] Allow <code>NoReturn</code>-like functions for
<code>__str__</code>, <code>__len__</code>, etc. (<code>PLE0307</code>)
(<a
href="https://redirect.github.com/astral-sh/ruff/pull/11017">#11017</a>)</li>
<li>Parser: Use empty range when there's &quot;gap&quot; in token source
(<a
href="https://redirect.github.com/astral-sh/ruff/pull/11032">#11032</a>)</li>
<li>[<code>ruff</code>] Ignore stub functions in
<code>unused-async</code> (<code>RUF029</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11026">#11026</a>)</li>
<li>Parser: Expect indented case block instead of match stmt (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11033">#11033</a>)</li>
</ul>
<h2>0.4.0</h2>
<h3>A new, hand-written parser</h3>
<p>Ruff's new parser is <strong>&gt;2x faster</strong>, which translates
to a <strong>20-40% speedup</strong> for all linting and formatting
invocations.
There's a lot to say about this exciting change, so check out the <a
href="https://astral.sh/blog/ruff-v0.4.0">blog post</a> for more
details!</p>
<p>See <a
href="https://redirect.github.com/astral-sh/ruff/pull/10036">#10036</a>
for implementation details.</p>
<h3>A new language server in Rust</h3>
<p>With this release, we also want to highlight our new language server.
<code>ruff server</code> is a Rust-powered language
server that comes built-in with Ruff. It can be used with any editor
that supports the <a
href="https://microsoft.github.io/language-server-protocol/">Language
Server Protocol</a> (LSP).
It uses a multi-threaded, lock-free architecture inspired by
<code>rust-analyzer</code> and it will open the door for a lot
of exciting features. It’s also faster than our previous <a
href="https://github.com/astral-sh/ruff-lsp">Python-based language
server</a>
-- but you probably guessed that already.</p>
<p><code>ruff server</code> is only in alpha, but it has a lot of
features that you can try out today:</p>
<ul>
<li>Lints Python files automatically and shows quick-fixes when
available</li>
<li>Formats Python files, with support for range formatting</li>
<li>Comes with commands for quickly performing actions:
<code>ruff.applyAutofix</code>, <code>ruff.applyFormat</code>, and
<code>ruff.applyOrganizeImports</code></li>
<li>Supports <code>source.fixAll</code> and
<code>source.organizeImports</code> source actions</li>
<li>Automatically reloads your project configuration when you change
it</li>
</ul>
<p>To setup <code>ruff server</code> with your editor, refer to the <a
href="https://github.com/astral-sh/ruff/blob/main/crates/ruff_server/README.md">README.md</a>.</p>
<h3>Preview features</h3>
<ul>
<li>[<code>pycodestyle</code>] Do not trigger <code>E3</code> rules on
<code>def</code>s following a function/method with a dummy body (<a
href="https://redirect.github.com/astral-sh/ruff/pull/10704">#10704</a>)</li>
<li>[<code>pylint</code>] Implement <code>invalid-bytes-returned</code>
(<code>E0308</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/10959">#10959</a>)</li>
<li>[<code>pylint</code>] Implement <code>invalid-length-returned</code>
(<code>E0303</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/10963">#10963</a>)</li>
<li>[<code>pylint</code>] Implement <code>self-cls-assignment</code>
(<code>W0642</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/9267">#9267</a>)</li>
<li>[<code>pylint</code>] Omit stubs from <code>invalid-bool</code> and
<code>invalid-str-return-type</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11008">#11008</a>)</li>
<li>[<code>ruff</code>] New rule <code>unused-async</code>
(<code>RUF029</code>) to detect unneeded <code>async</code> keywords on
functions (<a
href="https://redirect.github.com/astral-sh/ruff/pull/9966">#9966</a>)</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/astral-sh/ruff/commit/0ff25a540c550d8d2f562844354f84eb292b9c4b"><code>0ff25a5</code></a>
Bump version to 0.4.1 (<a
href="https://redirect.github.com/astral-sh/ruff/issues/11035">#11035</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/34873ec009952f74b6248e10222690364f65c9ac"><code>34873ec</code></a>
Add a script to fuzz the parser (courtesy of
<code>pysource-codegen</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/issues/11015">#11015</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/d3cd61f804bae7428c8bd3ac8d4a2b8bb3640e4c"><code>d3cd61f</code></a>
Use empty range when there's &quot;gap&quot; in token source (<a
href="https://redirect.github.com/astral-sh/ruff/issues/11032">#11032</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/9b80cc09ee4f91c378308844d80106d201539e46"><code>9b80cc0</code></a>
Select fewer ruff rules when linting Python files in
<code>scripts/</code> (<a
href="https://redirect.github.com/astral-sh/ruff/issues/11034">#11034</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/9bb23b0a38bd0532dc70c018b99a1ad30774f31c"><code>9bb23b0</code></a>
Expect indented case block instead of match stmt (<a
href="https://redirect.github.com/astral-sh/ruff/issues/11033">#11033</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/06c248a126b403caa088f3fa6546f85b0ba2b1d5"><code>06c248a</code></a>
[<code>ruff]</code> Ignore stub functions in <code>unused-async</code>
(<code>RUF029</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/issues/11026">#11026</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/27902b7130afed05c2d4c653592ff90db88e27dc"><code>27902b7</code></a>
[<code>pylint</code>] Implement <code>invalid-index-returned</code>
(<code>PLE0305</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/issues/10962">#10962</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/97acf1d59bd9f1ec4d842549921452aafc0229cc"><code>97acf1d</code></a>
ENH: Bump <code>ruff</code> dependency versions to support the latest
release of `v0.4.0...</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/adf63d90139b9412edc65986b5b4b7a7e667301c"><code>adf63d9</code></a>
[<code>pylint</code>] Implement <code>invalid-hash-returned</code>
(<code>PLE0309</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/issues/10961">#10961</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/5d3c9f2637c4ec0c32cad22eae6c2fa39be74c6c"><code>5d3c9f2</code></a>
<code>ruff server</code>: fix Neovim setup guide command (<a
href="https://redirect.github.com/astral-sh/ruff/issues/11021">#11021</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/astral-sh/ruff/compare/v0.3.7...v0.4.1">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=ruff&package-manager=pip&previous-version=0.3.7&new-version=0.4.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-23 11:44:47 +00:00
Eduard van Valkenburg 299094a493 Python: drop support for python before 3.10 (#5947)
### Motivation and Context

<!-- 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.
-->
This PR drops support for python 3.8 and 3.9.

Python 3.8 will go out of support in October 2024 and people should not
be building on top of that now.
Python 3.10 introduces the new style of typing and for
KernelFunctionFromMethod that is a crucial feature and maintaining that
with backward compatibility is a lot of work and limits us, hence we
will also drop support for 3.9.

Closes #5628

### Description

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->
Changed pyproject to reflect this
Changed CICD to only run on 3.10, 3.11 and 3.12.

### 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 😄
2024-04-22 13:42:49 +02:00
Eduard van Valkenburg dc54c6f203 Python: mypy coverage for functions (#5883)
### Motivation and Context

<!-- 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.
-->
extend mypy typing coverage to all classes in 'functions' folder.

### Description

<!-- 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 😄
2024-04-16 14:21:29 +00:00
Evan Mattson 65275737d6 Python: Bump project version for release. Fix missing imports in notebooks. (#5871)
### Motivation and Context

Bumping the pyproject.toml version and related notebook version
references for a release. Some of the Jupyter notebooks were missing the
imports to be able to run properly.

<!-- 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

The PR 
- bumps the pyproject.toml version and related notebook version
references for a release.
- Fixes the missing notebook imports. 
- Fixes a service_id/request settings bug in one kernel syntax example.
Closes #5148

<!-- 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 😄
2024-04-15 15:13:51 +00:00
dependabot[bot]andEvan Mattson a81bed2d82 Python: Bump pyarrow from 14.0.2 to 15.0.2 in /python (#5647)
Bumps [pyarrow](https://github.com/apache/arrow) from 14.0.2 to 15.0.2.
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/apache/arrow/commit/e03105efc38edca4ca429bf967a17b4d0fbebe40"><code>e03105e</code></a>
MINOR: [Release] Update versions for 15.0.2</li>
<li><a
href="https://github.com/apache/arrow/commit/af83909f42cd43698a39e9eb0413dabc0d720db2"><code>af83909</code></a>
MINOR: [Release] Update .deb/.rpm changelogs for 15.0.2</li>
<li><a
href="https://github.com/apache/arrow/commit/e81ddfe56e4d993978de06ba54ee0d4ec97b8bc9"><code>e81ddfe</code></a>
MINOR: [Release] Update CHANGELOG.md for 15.0.2</li>
<li><a
href="https://github.com/apache/arrow/commit/481fab10f07059f1a4143dffedf38a2d2ae4e141"><code>481fab1</code></a>
<a
href="https://redirect.github.com/apache/arrow/issues/40252">GH-40252</a>:
[C++] Make span SFINAE standards-conforming to enable compilation
w...</li>
<li><a
href="https://github.com/apache/arrow/commit/cb35c53398d7305901a1ab7ace9b416fa1627b09"><code>cb35c53</code></a>
<a
href="https://redirect.github.com/apache/arrow/issues/40248">GH-40248</a>:
[R] fallback to the correct libtool when we find a GNU one (<a
href="https://redirect.github.com/apache/arrow/issues/40259">#40259</a>)</li>
<li><a
href="https://github.com/apache/arrow/commit/6921d54cf25dcb32e46f211d4cf4e84b759046e0"><code>6921d54</code></a>
<a
href="https://redirect.github.com/apache/arrow/issues/39582">GH-39582</a>:
[C++][Acero] Increase size of Acero TempStack (<a
href="https://redirect.github.com/apache/arrow/issues/40007">#40007</a>)</li>
<li><a
href="https://github.com/apache/arrow/commit/0969975dda352059eb5f830c5368db4144ebf8ed"><code>0969975</code></a>
<a
href="https://redirect.github.com/apache/arrow/issues/40068">GH-40068</a>:
[C++] Possible data race when reading metadata of a parquet file
(...</li>
<li><a
href="https://github.com/apache/arrow/commit/5cd4f07c7b309bbbdbdf18a0f2325055287cbc74"><code>5cd4f07</code></a>
<a
href="https://redirect.github.com/apache/arrow/issues/40485">GH-40485</a>:
[Python][CI] Skip failing test_dateutil_tzinfo_to_string (<a
href="https://redirect.github.com/apache/arrow/issues/40486">#40486</a>)</li>
<li><a
href="https://github.com/apache/arrow/commit/1c352a898ce5be02c2e08c8201b97457b1a33f68"><code>1c352a8</code></a>
<a
href="https://redirect.github.com/apache/arrow/issues/39943">GH-39943</a>:
[CI][Python] Update manylinux images to avoid GPG problems
download...</li>
<li><a
href="https://github.com/apache/arrow/commit/a6cabb248a464a023eb2f799e8e8102ec62a1145"><code>a6cabb2</code></a>
<a
href="https://redirect.github.com/apache/arrow/issues/40386">GH-40386</a>:
[Python] Fix except clauses (<a
href="https://redirect.github.com/apache/arrow/issues/40387">#40387</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/apache/arrow/compare/go/v14.0.2...go/v15.0.2">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=pyarrow&package-manager=pip&previous-version=14.0.2&new-version=15.0.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Evan Mattson <[email protected]>
2024-04-01 16:58:51 +00:00
Evan Mattson 37edd5fb7e Python: Bump versions to 0.9.5b1 for release. (#5713)
### Motivation and Context

Bump versions to 0.9.5b1 for 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 versions to 0.9.5b1 for 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 😄
2024-04-01 15:40:29 +00:00
Evan Mattson c4c7464f07 Python: Introduce operations to handle OpenAI plugins, improve OpenAPI plugins, and allow for auth (#5695)
### Motivation and Context

Python had the ability to handle operations for OpenAPI plugins, but at
a basic level. It did not have the ability to handle OpenAI plugins, nor
did it allow the user to configure an authentication callback. This PR
brings in that functionality.

<!-- 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

This PR:
- Allows a user to handle OpenAI plugins with/without auth. Closes #5355
- Improves the functionality around handling OpenAPI specs.
- Introduces an auth callback mechanism to allow for REST API calls to
use auth
- Introduces OpenAI/OpenAPI function execution settings.
- Provides two new kernel examples that show how to handle a simple
OpenAI plugin (Klarna) as well as a more complex plugin (Azure Key
Vault) that requires auth.
- Updates unit tests.

<!-- 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 😄
2024-04-01 15:01:08 +00:00
Eduard van Valkenburg 14a0881989 Python: mypy clears kernel.py (#5689)
### Motivation and Context

<!-- 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.
-->
Fixed all mypy errors for kernel.py
In preparation of extending that to all files in semantic_kernel
Also got the pre-commit hook working on a commit, with mypy checks

fixes #5630

### Description

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->
Moved pre-commit-config to base folder, can now be extended to have
specific hooks for other languages
fixed things in kernel.py to satisfy mypy
used assert for some things, so that they can be skipped when running in
-o mode.

### 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 😄
2024-03-28 15:10:28 +00:00
Evan Mattson d1b8f259ee Python: Bump python version to 0.9.4b1 for release (#5577)
### Motivation and Context

Bump python version to 0.9.4b1 for 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 0.9.4b1 for 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 😄
2024-03-20 18:14:40 +00:00
Eduard van Valkenburg 1cf984cc99 Python: Enhanced pre commit and tasks (#5512)
### Motivation and Context

<!-- 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.
-->
To further make the SK python robust and make it easier to get
high-quality PRs, some work on the pre-commit-config.yaml and adding a
mypy settings ini.

### Description

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->
Added two steps to the pre-commit-config, the first for pypy, the second
for tests with coverage.
Over time we want to mandate these checks to run against a PR before it
goes to github, that will also reduce the number of ruff and black fix
commits, and non-passing unit tests.

Added a mypy.ini, currently all but the root folder is excluded, so that
we can gradually introduce mypy coverage, did the first pieces in
kernel.py, including switch to new style annotations (using from
`__future__ import annotations`) in Kernel.


### 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 😄
2024-03-19 20:20:09 +00:00
Evan Mattson a580225040 Python: Bump python package versions to 0.9.3b1 for release. (#5497)
### Motivation and Context

Bump python package versions to 0.9.3b1 for 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 package versions to 0.9.3b1 for 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 😄
2024-03-15 14:22:33 +00:00
Evan Mattson 0a1a7cabe8 Python: support Jinja2 templating (#5483)
### Motivation and Context

Jinja2 is a heavily supported Python templating language and we're
introducing it to SK Python.

<!-- 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

This PR brings in the ability to specify Jinja2 templates for use within
SK Python:
- Closes #5343 

<!-- 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 😄
2024-03-15 13:23:25 +00:00
Eduard van Valkenburg 3af69df7ea Python: Handlebars template support (#5466)
### Motivation and Context

<!-- 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.
-->
Introducing Handlebars templating to the Python Semantic Kernel!

Closes: #5446
Prework for: #4641

### Description

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->
Adds HandlebarsPromptTemplate as a subclass of PromptTemplateBase
Adds second literal to the PromptTemplateConfig definition
Adds helpers for Handlebars (system_helpers) and
`create_helper_from_function` function
Moves fully_qualified_name into KernelFunctionMetadata instead of in
different extensions.
Defaults are still 'semantic-kernel' templates, and without making
explicit changes that still is the norm.
Adds a azure_chat_gpt_handlebars.py sample

### 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 😄
2024-03-14 14:00:05 +00:00
8ddba7387b Python: Bump openapi-core from 0.18.2 to 0.19.0 in /python (#5306)
Bumps [openapi-core](https://github.com/python-openapi/openapi-core)
from 0.18.2 to 0.19.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/python-openapi/openapi-core/releases">openapi-core's
releases</a>.</em></p>
<blockquote>
<h2>0.19.0</h2>
<p>This version focuses on OpenAPI app and support for binary requests
and responses.</p>
<h2>Features</h2>
<ul>
<li>FastAPI integration <a
href="https://redirect.github.com/python-openapi/openapi-core/issues/738">#738</a></li>
<li>Mimetype parameters (i.e. charset) handling <a
href="https://redirect.github.com/python-openapi/openapi-core/issues/678">#678</a></li>
<li>Parameter deserializers renamed to Style deserializers <a
href="https://redirect.github.com/python-openapi/openapi-core/issues/676">#676</a></li>
<li>Unmarshalling processor enhancement <a
href="https://redirect.github.com/python-openapi/openapi-core/issues/625">#625</a>
<ul>
<li>Option to skip response validation in Django, Falcon and Flask
integrations <a
href="https://redirect.github.com/python-openapi/openapi-core/issues/667">#667</a></li>
</ul>
</li>
<li>use explicit arguments (instead of kwargs) in Spec.from_dict and add
short note in documentation how to use base_url for Spec.from_dict</li>
<li>Parameter and header get value refactor <a
href="https://redirect.github.com/python-openapi/openapi-core/issues/677">#677</a></li>
<li>Python 3.12 support <a
href="https://redirect.github.com/python-openapi/openapi-core/issues/684">#684</a></li>
<li>Bump openapi-spec-validator from 0.6.0 to 0.7.0 <a
href="https://redirect.github.com/python-openapi/openapi-core/issues/685">#685</a>
<ul>
<li>Use openapi-spec-validator spec version finder <a
href="https://redirect.github.com/python-openapi/openapi-core/issues/691">#691</a></li>
</ul>
</li>
<li>Move to <code>SchemaPath</code> from jsonschema-path package <a
href="https://redirect.github.com/python-openapi/openapi-core/issues/690">#690</a></li>
<li>Specification validation as part of shortcuts <a
href="https://redirect.github.com/python-openapi/openapi-core/issues/686">#686</a></li>
<li>Style deserializing reimplementation with support for all styles <a
href="https://redirect.github.com/python-openapi/openapi-core/issues/694">#694</a></li>
<li>Media type encoding support <a
href="https://redirect.github.com/python-openapi/openapi-core/issues/646">#646</a></li>
<li>Replace <code>mimetype</code> with <code>content_type</code> to
include content parameters <a
href="https://redirect.github.com/python-openapi/openapi-core/issues/699">#699</a></li>
<li>Suport for primitive properties casting of urlencoded objects. <a
href="https://redirect.github.com/python-openapi/openapi-core/issues/701">#701</a></li>
<li>Request response binary format support <a
href="https://redirect.github.com/python-openapi/openapi-core/issues/710">#710</a></li>
<li>Starlette middleware <a
href="https://redirect.github.com/python-openapi/openapi-core/issues/680">#680</a></li>
<li>OpenAPI app and high level integration <a
href="https://redirect.github.com/python-openapi/openapi-core/issues/716">#716</a></li>
</ul>
<h2>Bug fixes</h2>
<ul>
<li>aiohttp request host_url include scheme <a
href="https://redirect.github.com/python-openapi/openapi-core/issues/673">#673</a></li>
<li>aiohttp response body check none <a
href="https://redirect.github.com/python-openapi/openapi-core/issues/674">#674</a></li>
<li>Validate empty request body fix <a
href="https://redirect.github.com/python-openapi/openapi-core/issues/713">#713</a></li>
<li>Path finder returns default server <a
href="https://redirect.github.com/python-openapi/openapi-core/issues/648">#648</a></li>
<li>OpenAPI config passed to validators and unmarshallers fix <a
href="https://redirect.github.com/python-openapi/openapi-core/issues/779">#779</a></li>
<li>milti types schema format unmarshal fix <a
href="https://redirect.github.com/python-openapi/openapi-core/issues/562">#562</a></li>
</ul>
<h2>Deprecations</h2>
<ul>
<li><code>Spec</code> class is deprecated. Use <code>SchemaPath</code>
from jsonschema-path package.</li>
</ul>
<h2>Breaking changes</h2>
<ul>
<li><code>request_class</code>/<code>response_class</code> renamed to
<code>request_cls</code>/<code>response_cls</code> in unmarshalling
processors (Django, Falcon and Flask integrations) <a
href="https://redirect.github.com/python-openapi/openapi-core/issues/667">#667</a></li>
<li><code>ParameterDeserializersFactory</code> renamed to
<code>StyleDeserializersFactory</code> <a
href="https://redirect.github.com/python-openapi/openapi-core/issues/676">#676</a></li>
<li>unmarshalling byte and binary formats return bytes <a
href="https://redirect.github.com/python-openapi/openapi-core/issues/647">#647</a></li>
<li>Specification validation is no longer part of <code>Spec</code>
object creation and moved to be part of <code>OpenAPI</code> object
creation. <a
href="https://redirect.github.com/python-openapi/openapi-core/issues/686">#686</a>
<a
href="https://redirect.github.com/python-openapi/openapi-core/issues/716">#716</a></li>
<li><code>Request</code> and <code>Response</code> protocols'
<code>mimetype</code> attribute replaced with <code>content_type</code>
<a
href="https://redirect.github.com/python-openapi/openapi-core/issues/699">#699</a></li>
<li><code>Request</code> protocol's <code>body</code> attribute returns
bytes instead of str <a
href="https://redirect.github.com/python-openapi/openapi-core/issues/710">#710</a></li>
<li><code>Response</code> protocol's <code>data</code> attribute returns
bytes instead of str <a
href="https://redirect.github.com/python-openapi/openapi-core/issues/710">#710</a></li>
<li>Unmarshalling no longer raises
<code>FormatUnmarshalError</code></li>
</ul>
<h2>0.19.0a2</h2>
<p>This version focuses on OpenAPI app and support for binary requests
and responses.</p>
<h2>Bug fixes</h2>
<ul>
<li>Path finder returns default server <a
href="https://redirect.github.com/python-openapi/openapi-core/issues/648">#648</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/python-openapi/openapi-core/commit/46d94e978a4d7d4eb72b86b76a2d23574b7c50d3"><code>46d94e9</code></a>
Version 0.19.0</li>
<li><a
href="https://github.com/python-openapi/openapi-core/commit/322198326d838aabe8dd5fb2d45ec283246e393a"><code>3221983</code></a>
FastAPI docs formatting fix</li>
<li><a
href="https://github.com/python-openapi/openapi-core/commit/fcddf6b645a9dab2ebc9e1817e2d20007cb3989e"><code>fcddf6b</code></a>
Merge pull request <a
href="https://redirect.github.com/python-openapi/openapi-core/issues/738">#738</a>
from python-openapi/feature/fastapi-integration</li>
<li><a
href="https://github.com/python-openapi/openapi-core/commit/383d0974d4c90f0dbb5777bac09045ea8ae1c91b"><code>383d097</code></a>
Merge pull request <a
href="https://redirect.github.com/python-openapi/openapi-core/issues/783">#783</a>
from python-openapi/dependabot/pip/jsonschema-4.21.1</li>
<li><a
href="https://github.com/python-openapi/openapi-core/commit/38e67d35dde0e525d4c34f0858498ad02b93e5e9"><code>38e67d3</code></a>
Merge pull request <a
href="https://redirect.github.com/python-openapi/openapi-core/issues/784">#784</a>
from python-openapi/dependabot/pip/black-24.2.0</li>
<li><a
href="https://github.com/python-openapi/openapi-core/commit/f732b16db6c2c39b7724790e7328c9c5ef7785b3"><code>f732b16</code></a>
Merge pull request <a
href="https://redirect.github.com/python-openapi/openapi-core/issues/785">#785</a>
from python-openapi/dependabot/pip/parse-1.20.1</li>
<li><a
href="https://github.com/python-openapi/openapi-core/commit/9d31ee8bd21b1230bdfde780768fa6eeacfd4d41"><code>9d31ee8</code></a>
Merge pull request <a
href="https://redirect.github.com/python-openapi/openapi-core/issues/786">#786</a>
from python-openapi/dependabot/pip/python-multipart-0...</li>
<li><a
href="https://github.com/python-openapi/openapi-core/commit/89836a0699fa1b2e2b4b54a3dabbd0cd51937df4"><code>89836a0</code></a>
Bump python-multipart from 0.0.6 to 0.0.9</li>
<li><a
href="https://github.com/python-openapi/openapi-core/commit/dab8ff9df1e62ccb3b5bdbba4ac96b4c6c5f3d53"><code>dab8ff9</code></a>
Bump parse from 1.20.0 to 1.20.1</li>
<li><a
href="https://github.com/python-openapi/openapi-core/commit/80befcaa2ecc6fff7aa0c25f930defdb5de88f12"><code>80befca</code></a>
Bump black from 24.1.1 to 24.2.0</li>
<li>Additional commits viewable in <a
href="https://github.com/python-openapi/openapi-core/compare/0.18.2...0.19.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=openapi-core&package-manager=pip&previous-version=0.18.2&new-version=0.19.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Evan Mattson <[email protected]>
Co-authored-by: Eduard van Valkenburg <[email protected]>
2024-03-13 21:31:41 +00:00
Evan Mattson 2ccf85bb83 Python: Bump python version to 0.9.2b1 for release. (#5462)
### Motivation and Context
Bump python version to 0.9.2b1 for 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 0.9.2b1 for 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 😄
2024-03-13 15:16:40 +00:00
Eduard van Valkenburg 2bc3de72da Python: Add extras and minor package updates (#5440)
### Motivation and Context

<!-- 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.
-->
Poetry groups are not the same as pip extras, so I removed the
individual groups per service, replaced with the ones needed for unit
tests and for integration tests (all).

Then added Extras, for each connector, as well as a `all` extra. Also
added a notebooks extra, this can be used instead of the first cell in
the notebooks as `pip install -U semantic-kernel[notebooks]` closing
#4713

Made all dependencies part of the main, tagged with optional.

Closes #5322

### 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 😄
2024-03-12 15:25:24 +00:00
Eduard van Valkenburg 275db86fd1 Python: add py3.12 to unit tests (#5191)
### Motivation and Context

<!-- 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.
-->
Since Python 3.12 is now released we should test with it. In the fall
3.8 will be out of support so then we should remove support for that.

Since Numpy no longer support py 3.8 as of
[1.25](https://numpy.org/doc/stable/release/1.25.0-notes.html) we pin
that for py3.8, including other packages that depend on older version of
numpy for py3.8, and allow the new versions to work against newer
version of python.

Closes #5144 

### Description

<!-- 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 😄
2024-03-12 09:27:55 +00:00