mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-08-24 16:42:24 +02:00
Compare commits
3
Commits
cli==0.4.6
...
0.6
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
738f38cb35 | ||
|
|
252d6efbbf | ||
|
|
dc0ee4063d |
@@ -7,6 +7,12 @@ on:
|
|||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
description: "From which folder this pipeline executes"
|
description: "From which folder this pipeline executes"
|
||||||
|
|
||||||
|
release-branch:
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
default: "main"
|
||||||
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
PYTHON_VERSION: "3.10"
|
PYTHON_VERSION: "3.10"
|
||||||
@@ -16,7 +22,7 @@ permissions:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
if: github.ref == 'refs/heads/main'
|
if: github.ref == 'refs/heads/${{ inputs.release-branch }}'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ env:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
if: github.ref == 'refs/heads/main'
|
if: github.ref == 'refs/heads/0.6'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
@@ -79,6 +79,10 @@ jobs:
|
|||||||
echo short-pkg-name="$SHORT_PKG_NAME" >> $GITHUB_OUTPUT
|
echo short-pkg-name="$SHORT_PKG_NAME" >> $GITHUB_OUTPUT
|
||||||
echo version="$VERSION" >> $GITHUB_OUTPUT
|
echo version="$VERSION" >> $GITHUB_OUTPUT
|
||||||
echo tag="$TAG" >> $GITHUB_OUTPUT
|
echo tag="$TAG" >> $GITHUB_OUTPUT
|
||||||
|
echo "Pkg-name: $PKG_NAME"
|
||||||
|
echo "Short-pkg-name: $SHORT_PKG_NAME"
|
||||||
|
echo "Version: $VERSION"
|
||||||
|
echo "Tag: $TAG"
|
||||||
|
|
||||||
release-notes:
|
release-notes:
|
||||||
needs:
|
needs:
|
||||||
@@ -93,7 +97,7 @@ jobs:
|
|||||||
path: langgraph
|
path: langgraph
|
||||||
sparse-checkout: | # this only grabs files for relevant dir
|
sparse-checkout: | # this only grabs files for relevant dir
|
||||||
${{ inputs.working-directory }}
|
${{ inputs.working-directory }}
|
||||||
ref: main # this scopes to just master branch
|
ref: "0.6" #this scopes to just 0.6 branch
|
||||||
fetch-depth: 0 # this fetches entire commit history
|
fetch-depth: 0 # this fetches entire commit history
|
||||||
- name: Check Tags
|
- name: Check Tags
|
||||||
id: check-tags
|
id: check-tags
|
||||||
@@ -105,19 +109,48 @@ jobs:
|
|||||||
VERSION: ${{ needs.build.outputs.version }}
|
VERSION: ${{ needs.build.outputs.version }}
|
||||||
TAG: ${{ needs.build.outputs.tag }}
|
TAG: ${{ needs.build.outputs.tag }}
|
||||||
run: |
|
run: |
|
||||||
if [ -z $SHORT_PKG_NAME ]; then
|
# 1) Parse major/minor and enforce we're on the 0.6 series
|
||||||
REGEX="^\\d+\\.\\d+\\.\\d+((a|b|rc)\\d+)?\$"
|
MAJOR="${VERSION%%.*}"
|
||||||
else
|
REST="${VERSION#*.}"
|
||||||
REGEX="^$SHORT_PKG_NAME==\\d+\\.\\d+\\.\\d+((a|b|rc)\\d+)?\$"
|
MINOR="${REST%%.*}"
|
||||||
fi
|
|
||||||
echo $REGEX
|
# Minor/major numeric guard: fail if >= 0.7.* (or any non-0 major)
|
||||||
PREV_TAG=$(git tag --sort=-creatordate | grep -P $REGEX | head -1 || echo "")
|
if [ -z "$MAJOR" ] || [ -z "$MINOR" ]; then
|
||||||
echo $PREV_TAG
|
echo "Could not parse VERSION '$VERSION' to MAJOR.MINOR"
|
||||||
if [ "$TAG" == "$PREV_TAG" ]; then
|
|
||||||
echo "No new version to release"
|
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
echo prev-tag="$PREV_TAG" >> $GITHUB_OUTPUT
|
|
||||||
|
if [ "$MAJOR" -ne 0 ] || [ "$MINOR" -ne 6 ]; then
|
||||||
|
echo "Refusing to release VERSION '$VERSION' from 0.6 maintenance branch (got $MAJOR.$MINOR)"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# 2) Build a regex that only matches 0.6.* tags, handling both tag shapes
|
||||||
|
# - Plain: ^0\.6\.\d+((a|b|rc)\d+)?$
|
||||||
|
# - With prefix: ^<SHORT>==0\.6\.\d+((a|b|rc)\d+)?$
|
||||||
|
SERIES_REGEX="0\\.6"
|
||||||
|
if [ -z "$SHORT_PKG_NAME" ]; then
|
||||||
|
REGEX="^${SERIES_REGEX}\\.\\d+((a|b|rc)\\d+)?$"
|
||||||
|
else
|
||||||
|
# SHORT_PKG_NAME is already pre-sanitized by your step (e.g., no spaces).
|
||||||
|
REGEX="^${SHORT_PKG_NAME}==${SERIES_REGEX}\\.\\d+((a|b|rc)\\d+)?$"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Tag match regex: $REGEX"
|
||||||
|
|
||||||
|
# 3) Find the most recent tag in this series
|
||||||
|
PREV_TAG="$(git tag --sort=-creatordate | grep -P "$REGEX" | head -1 || true)"
|
||||||
|
echo "Previous tag in series: ${PREV_TAG:-<none>}"
|
||||||
|
|
||||||
|
# 4) If computed TAG equals the previous tag, there’s nothing new to release
|
||||||
|
if [ "$TAG" = "$PREV_TAG" ] && [ -n "$TAG" ]; then
|
||||||
|
echo "No new version to release for 0.6.x (TAG matches previous)."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# 5) Surface prev-tag for later steps
|
||||||
|
echo "prev-tag=$PREV_TAG" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: Generate release body
|
- name: Generate release body
|
||||||
id: generate-release-body
|
id: generate-release-body
|
||||||
working-directory: langgraph
|
working-directory: langgraph
|
||||||
@@ -149,6 +182,7 @@ jobs:
|
|||||||
uses: ./.github/workflows/_test_release.yml
|
uses: ./.github/workflows/_test_release.yml
|
||||||
with:
|
with:
|
||||||
working-directory: ${{ inputs.working-directory }}
|
working-directory: ${{ inputs.working-directory }}
|
||||||
|
release-branch: "0.6"
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
pre-release-checks:
|
pre-release-checks:
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "langgraph"
|
name = "langgraph"
|
||||||
version = "0.6.10"
|
version = "0.6.11"
|
||||||
description = "Building stateful, multi-actor applications with LLMs"
|
description = "Building stateful, multi-actor applications with LLMs"
|
||||||
authors = []
|
authors = []
|
||||||
requires-python = ">=3.9"
|
requires-python = ">=3.9"
|
||||||
@@ -13,7 +13,7 @@ license = "MIT"
|
|||||||
license-files = ['LICENSE']
|
license-files = ['LICENSE']
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"langchain-core>=0.1",
|
"langchain-core>=0.1",
|
||||||
"langgraph-checkpoint>=2.1.0,<3.0.0",
|
"langgraph-checkpoint>=2.1.0,<4.0.0",
|
||||||
"langgraph-sdk>=0.2.2,<0.3.0",
|
"langgraph-sdk>=0.2.2,<0.3.0",
|
||||||
"langgraph-prebuilt>=0.6.0,<0.7.0",
|
"langgraph-prebuilt>=0.6.0,<0.7.0",
|
||||||
"xxhash>=3.5.0",
|
"xxhash>=3.5.0",
|
||||||
|
|||||||
Generated
+2
-2
@@ -1428,7 +1428,7 @@ wheels = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "langgraph"
|
name = "langgraph"
|
||||||
version = "0.6.10"
|
version = "0.6.11"
|
||||||
source = { editable = "." }
|
source = { editable = "." }
|
||||||
dependencies = [
|
dependencies = [
|
||||||
{ name = "langchain-core" },
|
{ name = "langchain-core" },
|
||||||
@@ -1674,7 +1674,7 @@ dev = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "langgraph-prebuilt"
|
name = "langgraph-prebuilt"
|
||||||
version = "0.6.4"
|
version = "0.6.5"
|
||||||
source = { editable = "../prebuilt" }
|
source = { editable = "../prebuilt" }
|
||||||
dependencies = [
|
dependencies = [
|
||||||
{ name = "langchain-core" },
|
{ name = "langchain-core" },
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "langgraph-prebuilt"
|
name = "langgraph-prebuilt"
|
||||||
version = "0.6.4"
|
version = "0.6.5"
|
||||||
description = "Library with high-level APIs for creating and executing LangGraph agents and tools."
|
description = "Library with high-level APIs for creating and executing LangGraph agents and tools."
|
||||||
authors = []
|
authors = []
|
||||||
requires-python = ">=3.9"
|
requires-python = ">=3.9"
|
||||||
@@ -12,7 +12,7 @@ readme = "README.md"
|
|||||||
license = "MIT"
|
license = "MIT"
|
||||||
license-files = ['LICENSE']
|
license-files = ['LICENSE']
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"langgraph-checkpoint>=2.1.0,<3.0.0",
|
"langgraph-checkpoint>=2.1.0,<4.0.0",
|
||||||
"langchain-core>=0.3.67",
|
"langchain-core>=0.3.67",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
Generated
+2
-2
@@ -257,7 +257,7 @@ wheels = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "langgraph"
|
name = "langgraph"
|
||||||
version = "0.6.10"
|
version = "0.6.11"
|
||||||
source = { editable = "../langgraph" }
|
source = { editable = "../langgraph" }
|
||||||
dependencies = [
|
dependencies = [
|
||||||
{ name = "langchain-core" },
|
{ name = "langchain-core" },
|
||||||
@@ -403,7 +403,7 @@ dev = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "langgraph-prebuilt"
|
name = "langgraph-prebuilt"
|
||||||
version = "0.6.4"
|
version = "0.6.5"
|
||||||
source = { editable = "." }
|
source = { editable = "." }
|
||||||
dependencies = [
|
dependencies = [
|
||||||
{ name = "langchain-core" },
|
{ name = "langchain-core" },
|
||||||
|
|||||||
Reference in New Issue
Block a user