File tree Expand file tree Collapse file tree 3 files changed +0
-21
lines changed Expand file tree Collapse file tree 3 files changed +0
-21
lines changed Original file line number Diff line number Diff line change 4040 uv pip install langchain langchain-core langchain_anthropic langchain_openai
4141 - name : Build ${{ matrix.python-version }}
4242 run : uv build
43- - name : Check version alignment
44- run : make check-version
4543 - name : Lint ${{ matrix.python-version }}
4644 run : make lint
4745 - name : Run Unit tests ${{ matrix.python-version }}
Original file line number Diff line number Diff line change 3232 enable-cache : true
3333 - name : Build project for distribution
3434 run : cd python && uv build
35- - name : Check Version
36- id : check-version
37- run : |
38- cd python && echo version=$(grep '^version =' pyproject.toml | sed 's/version = "\(.*\)"/\1/') >> $GITHUB_OUTPUT
3935 - name : Create Release
4036 uses : ncipollo/release-action@v1
4137 with :
Original file line number Diff line number Diff line change @@ -81,18 +81,3 @@ sync-version:
8181 $(eval VERSION := $(shell grep '^version =' pyproject.toml | sed 's/version = "\(.* \) "/\1/') )
8282 sed -i ' ' ' s/__version__ = "[^"]*"/__version__ = "$(VERSION)"/' langsmith/__init__.py
8383 echo " Synced version: $( VERSION) "
84-
85- check-version :
86- # Get version from pyproject.toml
87- $(eval VERSION := $(shell grep '^version =' pyproject.toml | sed 's/version = "\(.* \) "/\1/') )
88- # Get version from __init__.py
89- $(eval INIT_VERSION := $(shell grep '__version__ =' langsmith/__init__.py | sed 's/__version__ = "\(.* \) "/\1/') )
90- @echo " Checking version alignment..."
91- @echo " pyproject.toml version: $( VERSION) "
92- @echo " __init__.py version: $( INIT_VERSION) "
93- @if [ " $( VERSION) " = " $( INIT_VERSION) " ]; then \
94- echo " ✅ Versions are aligned" ; \
95- else \
96- echo " ❌ Version mismatch! Please run 'make sync-version' to sync versions" ; \
97- exit 1; \
98- fi
You can’t perform that action at this time.
0 commit comments