File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11[tool .poetry ]
22name = " adalflow"
3- version = " 1.1.0 "
3+ version = " 1.1.1 "
44description = " The Library to Build and Auto-optimize LLM Applications"
55authors = [" Li Yin <li@sylphai.com>" ]
66readme = " README.md"
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ # Simple script to publish AdalFlow to PyPI
4+ # Usage: ./scripts/publish.sh <version>
5+
6+ VERSION=$1
7+
8+ if [ -z " $VERSION " ]; then
9+ echo " Usage: $0 <version>"
10+ echo " Example: $0 1.1.3"
11+ exit 1
12+ fi
13+
14+ echo " Publishing AdalFlow version $VERSION to PyPI"
15+ echo " ==========================================="
16+
17+ # Get the script directory and project root
18+ SCRIPT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) "
19+ PROJECT_ROOT=" $( cd " $SCRIPT_DIR /.." && pwd ) "
20+
21+ # Navigate to adalflow package directory
22+ cd " $PROJECT_ROOT /adalflow"
23+
24+ # Update version using poetry
25+ echo " 1. Updating version to $VERSION ..."
26+ poetry version $VERSION
27+
28+ # Update version in __init__.py
29+ echo " 2. Updating __init__.py..."
30+ sed -i ' ' " s/__version__ = \" .*\" /__version__ = \" $VERSION \" /" adalflow/__init__.py
31+
32+ # Build the package
33+ echo " 3. Building package..."
34+ poetry build
35+
36+ # Publish to PyPI
37+ echo " 4. Publishing to PyPI..."
38+ poetry publish --skip-existing
39+
40+ echo " "
41+ echo " ✅ Successfully published AdalFlow $VERSION to PyPI!"
42+ echo " "
43+ echo " Next steps:"
44+ echo " 1. Commit the version changes: git add -A && git commit -m 'Release v$VERSION '"
45+ echo " 2. Create a git tag: git tag v$VERSION "
46+ echo " 3. Push to GitHub: git push origin main --tags"
You can’t perform that action at this time.
0 commit comments