Skip to content

Commit 099db38

Browse files
Li YinLi Yin
authored andcommitted
Release v1.1.1
1 parent a06d98e commit 099db38

2 files changed

Lines changed: 47 additions & 1 deletion

File tree

adalflow/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "adalflow"
3-
version = "1.1.0"
3+
version = "1.1.1"
44
description = "The Library to Build and Auto-optimize LLM Applications"
55
authors = ["Li Yin <li@sylphai.com>"]
66
readme = "README.md"

scripts/publish.sh

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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"

0 commit comments

Comments
 (0)