mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-19 17:45:25 +00:00
fix release notes
This commit is contained in:
parent
262cea030a
commit
537f42a30f
34
.github/workflows/_release.yml
vendored
34
.github/workflows/_release.yml
vendored
@ -100,15 +100,32 @@ jobs:
|
|||||||
PKG_NAME: ${{ needs.build.outputs.pkg-name }}
|
PKG_NAME: ${{ needs.build.outputs.pkg-name }}
|
||||||
VERSION: ${{ needs.build.outputs.version }}
|
VERSION: ${{ needs.build.outputs.version }}
|
||||||
run: |
|
run: |
|
||||||
PREV_TAG="$PKG_NAME==${VERSION%.*}.$(( ${VERSION##*.} - 1 ))"; [[ "${VERSION##*.}" -eq 0 ]] && PREV_TAG=""
|
# Handle regular versions and pre-release versions differently
|
||||||
|
if [[ "$VERSION" == *"-"* ]]; then
|
||||||
|
# This is a pre-release version (contains a hyphen)
|
||||||
|
# Extract the base version without the pre-release suffix
|
||||||
|
BASE_VERSION=${VERSION%%-*}
|
||||||
|
# Look for the latest release of the same base version
|
||||||
|
REGEX="^$PKG_NAME==$BASE_VERSION\$"
|
||||||
|
PREV_TAG=$(git tag --sort=-creatordate | (grep -P "$REGEX" || true) | head -1)
|
||||||
|
|
||||||
|
# If no exact base version match, look for the latest release of any kind
|
||||||
|
if [ -z "$PREV_TAG" ]; then
|
||||||
|
REGEX="^$PKG_NAME==\\d+\\.\\d+\\.\\d+\$"
|
||||||
|
PREV_TAG=$(git tag --sort=-creatordate | (grep -P "$REGEX" || true) | head -1)
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
# Regular version handling
|
||||||
|
PREV_TAG="$PKG_NAME==${VERSION%.*}.$(( ${VERSION##*.} - 1 ))"; [[ "${VERSION##*.}" -eq 0 ]] && PREV_TAG=""
|
||||||
|
|
||||||
# backup case if releasing e.g. 0.3.0, looks up last release
|
# backup case if releasing e.g. 0.3.0, looks up last release
|
||||||
# note if last release (chronologically) was e.g. 0.1.47 it will get
|
# note if last release (chronologically) was e.g. 0.1.47 it will get
|
||||||
# that instead of the last 0.2 release
|
# that instead of the last 0.2 release
|
||||||
if [ -z "$PREV_TAG" ]; then
|
if [ -z "$PREV_TAG" ]; then
|
||||||
REGEX="^$PKG_NAME==\\d+\\.\\d+\\.\\d+\$"
|
REGEX="^$PKG_NAME==\\d+\\.\\d+\\.\\d+\$"
|
||||||
echo $REGEX
|
echo $REGEX
|
||||||
PREV_TAG=$(git tag --sort=-creatordate | (grep -P $REGEX || true) | head -1)
|
PREV_TAG=$(git tag --sort=-creatordate | (grep -P $REGEX || true) | head -1)
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# if PREV_TAG is empty, let it be empty
|
# if PREV_TAG is empty, let it be empty
|
||||||
@ -121,7 +138,6 @@ jobs:
|
|||||||
echo "Previous tag $PREV_TAG not found in git repo"
|
echo "Previous tag $PREV_TAG not found in git repo"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
TAG="${PKG_NAME}==${VERSION}"
|
TAG="${PKG_NAME}==${VERSION}"
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
version = 1
|
version = 1
|
||||||
|
revision = 1
|
||||||
requires-python = ">=3.9, <4.0"
|
requires-python = ">=3.9, <4.0"
|
||||||
resolution-markers = [
|
resolution-markers = [
|
||||||
"python_full_version >= '3.12.4'",
|
"python_full_version >= '3.12.4'",
|
||||||
@ -462,7 +463,7 @@ wheels = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "langchain-core"
|
name = "langchain-core"
|
||||||
version = "0.3.43"
|
version = "0.3.45rc1"
|
||||||
source = { editable = "../../core" }
|
source = { editable = "../../core" }
|
||||||
dependencies = [
|
dependencies = [
|
||||||
{ name = "jsonpatch" },
|
{ name = "jsonpatch" },
|
||||||
|
Loading…
Reference in New Issue
Block a user