Skip to content

πŸ™Œ OpenHands: AI-Driven Development

feat: update version to 0.6.2. added Action to update pyproject on Release (#2552)

tobitege1117dfebeb47
diff --git a/.github/workflows/update-pyproject-version.yml b/.github/workflows/update-pyproject-version.yml
new file mode 100644
index 0000000000..24fa5429c5
--- /dev/null
+++ b/.github/workflows/update-pyproject-version.yml
@@ -0,0 +1,48 @@
+name: Update pyproject.toml Version and Tags
+
+on:
+ release:
+ types:
+ - published
+
+jobs:
+ update-pyproject-and-tags:
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v4
+ with:
+ fetch-depth: 0 # Fetch all history for all branches and tags
+
+ - name: Set up Python
+ uses: actions/setup-python@v5
+ with:
+ python-version: "3.11"
+
+ - name: Install dependencies
+ run: |
+ python -m pip install --upgrade pip
+ pip install toml
+
+ - name: Get release tag
+ id: get_release_tag
+ run: echo "RELEASE_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
+
+ - name: Update pyproject.toml with release tag
+ run: |
+ python -c "
+ import toml
+ with open('pyproject.toml', 'r') as f:
+ data = toml.load(f)
+ data['tool']['poetry']['version'] = '${{ env.RELEASE_TAG }}'
+ with open('pyproject.toml', 'w') as f:
+ toml.dump(data, f)
+ "
+
+ - name: Commit and push pyproject.toml changes
+ uses: stefanzweifel/git-auto-commit-action@v4
+ with:
+ commit_message: "Update pyproject.toml version to ${{ env.RELEASE_TAG }}"
+ branch: main
+ file_pattern: pyproject.toml
diff --git a/pyproject.toml b/pyproject.toml
index 7dc7695a67..fd3cb77c45 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
[tool.poetry]
name = "opendevin"
-version = "0.1.0"
+version = "0.6.2"
description = "OpenDevin: Code Less, Make More"
authors = ["OpenDevin"]
license = "MIT"
@@ -67,7 +67,6 @@ reportlab = "*"
[tool.coverage.run]
concurrency = ["gevent"]
-
[tool.poetry.group.evaluation.dependencies]
streamlit = "*"
whatthepatch = "*"