Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion .github/utils/validate_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
import requests

# * integrations/<INTEGRATION_FOLDER_NAME>-v1.0.0
INTEGRATION_VERSION_REGEX = r"integrations/([a-zA-Z_]+)-v([0-9]\.[0-9]+\.[0-9]+)"
# * integrations/<INTEGRATION_FOLDER_NAME>-v1.0.0.post0 (for post-releases)
INTEGRATION_VERSION_REGEX = r"integrations/([a-zA-Z_]+)-v([0-9]\.[0-9]+\.[0-9]+(?:\.post[0-9]+)?)"


def validate_version_number(tag: str):
"""
Verify that a release version number follows semantic versioning rules by checking the latest version on PyPI.
Supports both regular versions (x.y.z) and post-release versions (x.y.z.postN) per PEP 440.
"""

matches = re.match(INTEGRATION_VERSION_REGEX, tag)
Expand All @@ -34,6 +36,21 @@ def validate_version_number(tag: str):
return
raise e

# Check if this is a post-release version
if ".post" in version_to_release:
# For post-releases (e.g., 5.4.0.post0), the base version should match the latest on PyPI
base_version = version_to_release.split(".post")[0]
if base_version == latest_version:
print(f"Post-release version {version_to_release} is valid for base version {base_version}")
return
else:
msg = (
f"Invalid post-release version: {version_to_release}. "
f"Post-release must be based on the latest PyPI version: {latest_version}"
)
raise ValueError(msg)

# Regular version check
x, y, z = [int(i) for i in latest_version.split(".")]

acceptable_new_versions = [
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/CI_docusaurus_sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ name: Core / Sync API reference with Docusaurus
on:
push:
tags:
- "**-v[0-9].[0-9]+.[0-9]+"
- "**-v[0-9].[0-9]+.[0-9]+*"

workflow_dispatch: # Activate this workflow manually
inputs:
tag:
description: "Tag with this format: integrations/<INTEGRATION_FOLDER_NAME>-v1.0.0. When running this workflow manually, version is irrelevant so you can use any value."
description: "Tag with this format: integrations/<INTEGRATION_FOLDER_NAME>-v1.0.0 or integrations/<INTEGRATION_FOLDER_NAME>-v1.0.0.post0. When running this workflow manually, version is irrelevant so you can use any value."
required: true
type: string
default: integrations/<INTEGRATION_FOLDER_NAME>-v1.0.0
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/CI_pypi_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,21 @@ name: Core / Project release on PyPi

# The pushed tag must be formatted like so:
# * integrations/<INTEGRATION_FOLDER_NAME>-v1.0.0
# * integrations/<INTEGRATION_FOLDER_NAME>-v1.0.0.post0 (for post-releases)
#
# For example, if we want to release version 1.0.99
# of the google-vertex-haystack integration we'd have to push the tag:
#
# integrations/google_vertex-v1.0.99
#
# For a final post-release (e.g., for archiving):
#
# integrations/google_vertex-v1.0.99.post0

on:
push:
tags:
- "**-v[0-9].[0-9]+.[0-9]+"
- "**-v[0-9].[0-9]+.[0-9]+*"

jobs:
release-on-pypi:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ Please check out our [Contribution Guidelines](CONTRIBUTING.md) for all the deta
| [elasticsearch-haystack](integrations/elasticsearch/) | Document Store | [![PyPI - Version](https://img.shields.io/pypi/v/elasticsearch-haystack.svg)](https://pypi.org/project/elasticsearch-haystack) | [![Test / elasticsearch](https://github.com/deepset-ai/haystack-core-integrations/actions/workflows/elasticsearch.yml/badge.svg)](https://github.com/deepset-ai/haystack-core-integrations/actions/workflows/elasticsearch.yml) |
| [fastembed-haystack](integrations/fastembed/) | Embedder, Ranker | [![PyPI - Version](https://img.shields.io/pypi/v/fastembed-haystack.svg)](https://pypi.org/project/fastembed-haystack/) | [![Test / fastembed](https://github.com/deepset-ai/haystack-core-integrations/actions/workflows/fastembed.yml/badge.svg)](https://github.com/deepset-ai/haystack-core-integrations/actions/workflows/fastembed.yml) |
| [github-haystack](integrations/github/) | Connector | [![PyPI - Version](https://img.shields.io/pypi/v/github-haystack.svg)](https://pypi.org/project/github-haystack) | [![Test / github](https://github.com/deepset-ai/haystack-core-integrations/actions/workflows/github.yml/badge.svg)](https://github.com/deepset-ai/haystack-core-integrations/actions/workflows/github.yml) |
| [google-ai-haystack](integrations/google_ai/) | Generator | [![PyPI - Version](https://img.shields.io/pypi/v/google-ai-haystack.svg)](https://pypi.org/project/google-ai-haystack) | [![Test / google-ai](https://github.com/deepset-ai/haystack-core-integrations/actions/workflows/google_ai.yml/badge.svg)](https://github.com/deepset-ai/haystack-core-integrations/actions/workflows/google_ai.yml) |
| [google-ai-haystack](integrations/google_ai/) | Generator | [![PyPI - Version](https://img.shields.io/pypi/v/google-ai-haystack.svg)](https://pypi.org/project/google-ai-haystack) | **Archived** - use [google-genai-haystack](https://pypi.org/project/google-genai-haystack) instead |
| [google-genai-haystack](integrations/google_genai/) | Embedder, Generator | [![PyPI - Version](https://img.shields.io/pypi/v/google-genai-haystack.svg)](https://pypi.org/project/google-genai-haystack) | [![Test / google-genai](https://github.com/deepset-ai/haystack-core-integrations/actions/workflows/google_genai.yml/badge.svg)](https://github.com/deepset-ai/haystack-core-integrations/actions/workflows/google_genai.yml) |
| [google-vertex-haystack](integrations/google_vertex/) | Embedder, Generator | [![PyPI - Version](https://img.shields.io/pypi/v/google-vertex-haystack.svg)](https://pypi.org/project/google-vertex-haystack) | [![Test / google-vertex](https://github.com/deepset-ai/haystack-core-integrations/actions/workflows/google_vertex.yml/badge.svg)](https://github.com/deepset-ai/haystack-core-integrations/actions/workflows/google_vertex.yml) |
| [google-vertex-haystack](integrations/google_vertex/) | Embedder, Generator | [![PyPI - Version](https://img.shields.io/pypi/v/google-vertex-haystack.svg)](https://pypi.org/project/google-vertex-haystack) | **Archived** - use [google-genai-haystack](https://pypi.org/project/google-genai-haystack) instead |
| [hanlp-haystack](integrations/hanlp/) | Preprocessor | [![PyPI - Version](https://img.shields.io/pypi/v/hanlp-haystack.svg)](https://pypi.org/project/hanlp-haystack) | [![Test / hanlp](https://github.com/deepset-ai/haystack-core-integrations/actions/workflows/hanlp.yml/badge.svg)](https://github.com/deepset-ai/haystack-core-integrations/actions/workflows/hanlp.yml) |
| [jina-haystack](integrations/jina/) | Connector, Embedder, Ranker | [![PyPI - Version](https://img.shields.io/pypi/v/jina-haystack.svg)](https://pypi.org/project/jina-haystack) | [![Test / jina](https://github.com/deepset-ai/haystack-core-integrations/actions/workflows/jina.yml/badge.svg)](https://github.com/deepset-ai/haystack-core-integrations/actions/workflows/jina.yml) |
| [langfuse-haystack](integrations/langfuse/) | Tracer | [![PyPI - Version](https://img.shields.io/pypi/v/langfuse-haystack.svg?color=orange)](https://pypi.org/project/langfuse-haystack) | [![Test / langfuse](https://github.com/deepset-ai/haystack-core-integrations/actions/workflows/langfuse.yml/badge.svg)](https://github.com/deepset-ai/haystack-core-integrations/actions/workflows/langfuse.yml) |
Expand Down
9 changes: 9 additions & 0 deletions integrations/google_ai/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# google-ai-haystack

> [!WARNING]
> This integration is **archived** and no longer maintained.
>
> Please use **[google-genai-haystack](https://pypi.org/project/google-genai-haystack)** instead.
>
> [Installation and documentation](https://haystack.deepset.ai/integrations/google-genai)

---

[![PyPI - Version](https://img.shields.io/pypi/v/google-ai-haystack.svg)](https://pypi.org/project/google-ai-haystack)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/google-ai-haystack.svg)](https://pypi.org/project/google-ai-haystack)

Expand Down
9 changes: 9 additions & 0 deletions integrations/google_vertex/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# google-vertex-haystack

> [!WARNING]
> This integration is **archived** and no longer maintained.
>
> Please use **[google-genai-haystack](https://pypi.org/project/google-genai-haystack)** instead.
>
> [Installation and documentation](https://haystack.deepset.ai/integrations/google-genai)

---

[![PyPI - Version](https://img.shields.io/pypi/v/google-vertex-haystack.svg)](https://pypi.org/project/google-vertex-haystack)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/google-vertex-haystack.svg)](https://pypi.org/project/google-vertex-haystack)

Expand Down