From cb557ef33ee04f5b6a79e2eee7deac001b67df94 Mon Sep 17 00:00:00 2001 From: Luke Alvoeiro Date: Fri, 23 Aug 2024 18:56:05 -0700 Subject: [PATCH 1/2] ci: setup release pipeline --- .github/workflows/pypi_release.yaml | 31 +++++++++++++++++++++++++++++ pyproject.toml | 2 +- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/pypi_release.yaml diff --git a/.github/workflows/pypi_release.yaml b/.github/workflows/pypi_release.yaml new file mode 100644 index 000000000000..fc407c7dee69 --- /dev/null +++ b/.github/workflows/pypi_release.yaml @@ -0,0 +1,31 @@ +name: PYPI Release + +on: + push: + branches: + - main + tags: + - 'v*' + +jobs: + pypi_release: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Install UV + run: curl -LsSf https://astral.sh/uv/install.sh | sh + + - name: Source Cargo Environment + run: source $HOME/.cargo/env + + - name: Build with UV + run: uvx --from build pyproject-build --installer uv + + - name: Publish + uses: pypa/gh-action-pypi-publish@v1.4.2 + with: + user: __token__ + password: ${{ secrets.PYPI_TOKEN_TEMP }} + packages_dir: ./dist/ diff --git a/pyproject.toml b/pyproject.toml index 6f3d1b352b60..01e1fad25c3b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,7 @@ dependencies = [ "attrs>=23.2.0", "rich>=13.7.1", "ruamel-yaml>=0.18.6", - "exchange>=0.7.6", + "ai-exchange>=0.8.0", "click>=8.1.7", "prompt-toolkit>=3.0.47", ] From 41a2f5b6f9351452286f1f17885f2c39748491d7 Mon Sep 17 00:00:00 2001 From: Luke Alvoeiro Date: Fri, 23 Aug 2024 19:06:46 -0700 Subject: [PATCH 2/2] update goose to goose-ai --- pyproject.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 01e1fad25c3b..18bff707ffef 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [project] -name = "goose" +name = "goose-ai" description = "a programming agent that runs on your machine" version = "0.8.0" readme = "README.md" @@ -15,6 +15,9 @@ dependencies = [ author = [{ name = "Block", email = "ai-oss-tools@block.xyz" }] packages = [{ include = "goose", from = "src" }] +[tool.hatch.build.targets.wheel] +packages = ["src/goose"] + [project.entry-points."goose.toolkit"] developer = "goose.toolkit.developer:Developer" github = "goose.toolkit.github:Github"