mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-03 12:07:36 +00:00
chore(langchain): revert back to static versioning for now (#32719)
This commit is contained in:
29
.github/workflows/check_core_versions.yml
vendored
29
.github/workflows/check_core_versions.yml
vendored
@@ -20,15 +20,30 @@ jobs:
|
|||||||
|
|
||||||
- name: '✅ Verify pyproject.toml & version.py Match'
|
- name: '✅ Verify pyproject.toml & version.py Match'
|
||||||
run: |
|
run: |
|
||||||
PYPROJECT_VERSION=$(grep -Po '(?<=^version = ")[^"]*' libs/core/pyproject.toml)
|
# Check core versions
|
||||||
VERSION_PY_VERSION=$(grep -Po '(?<=^VERSION = ")[^"]*' libs/core/langchain_core/version.py)
|
CORE_PYPROJECT_VERSION=$(grep -Po '(?<=^version = ")[^"]*' libs/core/pyproject.toml)
|
||||||
|
CORE_VERSION_PY_VERSION=$(grep -Po '(?<=^VERSION = ")[^"]*' libs/core/langchain_core/version.py)
|
||||||
|
|
||||||
# Compare the two versions
|
# Compare core versions
|
||||||
if [ "$PYPROJECT_VERSION" != "$VERSION_PY_VERSION" ]; then
|
if [ "$CORE_PYPROJECT_VERSION" != "$CORE_VERSION_PY_VERSION" ]; then
|
||||||
echo "langchain-core versions in pyproject.toml and version.py do not match!"
|
echo "langchain-core versions in pyproject.toml and version.py do not match!"
|
||||||
echo "pyproject.toml version: $PYPROJECT_VERSION"
|
echo "pyproject.toml version: $CORE_PYPROJECT_VERSION"
|
||||||
echo "version.py version: $VERSION_PY_VERSION"
|
echo "version.py version: $CORE_VERSION_PY_VERSION"
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
echo "Versions match: $PYPROJECT_VERSION"
|
echo "Core versions match: $CORE_PYPROJECT_VERSION"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Check langchain_v1 versions
|
||||||
|
LANGCHAIN_PYPROJECT_VERSION=$(grep -Po '(?<=^version = ")[^"]*' libs/langchain_v1/pyproject.toml)
|
||||||
|
LANGCHAIN_INIT_PY_VERSION=$(grep -Po '(?<=^__version__ = ")[^"]*' libs/langchain_v1/langchain/__init__.py)
|
||||||
|
|
||||||
|
# Compare langchain_v1 versions
|
||||||
|
if [ "$LANGCHAIN_PYPROJECT_VERSION" != "$LANGCHAIN_INIT_PY_VERSION" ]; then
|
||||||
|
echo "langchain_v1 versions in pyproject.toml and __init__.py do not match!"
|
||||||
|
echo "pyproject.toml version: $LANGCHAIN_PYPROJECT_VERSION"
|
||||||
|
echo "version.py version: $LANGCHAIN_INIT_PY_VERSION"
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
echo "Langchain v1 versions match: $LANGCHAIN_PYPROJECT_VERSION"
|
||||||
fi
|
fi
|
||||||
|
@@ -12,16 +12,12 @@ dependencies = [
|
|||||||
"langgraph>=0.6.0",
|
"langgraph>=0.6.0",
|
||||||
"pydantic>=2.7.4",
|
"pydantic>=2.7.4",
|
||||||
]
|
]
|
||||||
dynamic = ["version"]
|
|
||||||
|
|
||||||
name = "langchain"
|
name = "langchain"
|
||||||
|
version = "1.0.0a1"
|
||||||
description = "Building applications with LLMs through composability"
|
description = "Building applications with LLMs through composability"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
|
||||||
[tool.pdm.version]
|
|
||||||
source = "file"
|
|
||||||
path = "langchain/__init__.py"
|
|
||||||
|
|
||||||
[project.optional-dependencies]
|
[project.optional-dependencies]
|
||||||
# community = ["langchain-community"]
|
# community = ["langchain-community"]
|
||||||
anthropic = ["langchain-anthropic"]
|
anthropic = ["langchain-anthropic"]
|
||||||
|
2
libs/langchain_v1/uv.lock
generated
2
libs/langchain_v1/uv.lock
generated
@@ -1431,7 +1431,7 @@ wheels = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "langchain"
|
name = "langchain"
|
||||||
version = "1.0.0.dev1"
|
version = "1.0.0a1"
|
||||||
source = { editable = "." }
|
source = { editable = "." }
|
||||||
dependencies = [
|
dependencies = [
|
||||||
{ name = "langchain-core" },
|
{ name = "langchain-core" },
|
||||||
|
Reference in New Issue
Block a user