-
Notifications
You must be signed in to change notification settings - Fork 0
chore: hatchling/hatch-vcs dynamic versioning, release CI, Makefile, and dev docs #16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
H00N24
wants to merge
8
commits into
master
Choose a base branch
from
ondrej/uv-and-pypi-release
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 7 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
996f2d6
chore: switch to hatchling/hatch-vcs dynamic versioning and add dunamai
H00N24 d079e43
chore: add release CI workflow, Makefile, and development setup docs
H00N24 ce8bb9a
docs: install certora-cloud-cli from git+ssh
H00N24 7832178
CI and AWS
H00N24 793559f
chore: refresh uv.lock with latest dependency versions
H00N24 e448225
fix: bump langgraph pin to >=1.0.13 to match langgraph-prebuilt API
H00N24 1f49233
Removing unused code
H00N24 ac73daa
Lock langgraph-prebuilt==1.0.8 & langgraph==1.0.5
H00N24 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| version: 2 | ||
| updates: | ||
| - package-ecosystem: "github-actions" | ||
| directory: "/" | ||
| schedule: | ||
| interval: "weekly" | ||
| groups: | ||
| all-dependencies: | ||
| patterns: | ||
| - "*" | ||
| open-pull-requests-limit: 5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,86 @@ | ||
| name: CI | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main, master] | ||
| tags: ["v*.*.*"] | ||
| pull_request: | ||
| branches: [main, master] | ||
|
|
||
| env: | ||
| AWS_REGION: us-west-2 | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| build_package: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| with: | ||
| fetch-depth: 0 | ||
| - uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0 | ||
| - id: build | ||
| run: | | ||
| uv build | ||
| ls -1 dist/ | ||
| - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | ||
| with: | ||
| name: graphcore-build | ||
| path: dist/ | ||
| if-no-files-found: error | ||
|
|
||
| tests: | ||
| needs: [build_package] | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| - uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0 | ||
| - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 | ||
| with: | ||
| name: graphcore-build | ||
| path: dist/ | ||
| - name: Install from wheel | ||
| run: | | ||
| uv sync --frozen --no-install-project --group test --group ci | ||
| uv pip install --force-reinstall --no-deps dist/*.whl | ||
| - name: Run pytest | ||
| if: success() || failure() | ||
| run: make pytest | ||
| - name: Run pyright | ||
| if: success() || failure() | ||
| run: make pyright | ||
|
|
||
| codeartifact_pypi_upload: | ||
| name: AWS CodeArtifact PyPI Upload | ||
| needs: [build_package, tests] | ||
| if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v') | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| id-token: write | ||
| contents: write | ||
| steps: | ||
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| - uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0 | ||
| - uses: aws-actions/configure-aws-credentials@d979d5b3a71173a29b74b5b88418bfda9437d885 # v6.1.1 | ||
| with: | ||
| role-to-assume: ${{ secrets.AWS_ROLE }} | ||
| aws-region: ${{ env.AWS_REGION }} | ||
| - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 | ||
| with: | ||
| name: graphcore-build | ||
| path: dist/ | ||
| - name: Upload package | ||
| env: | ||
| UV_PUBLISH_USERNAME: aws | ||
| run: | | ||
| export UV_PUBLISH_PASSWORD="$(aws codeartifact get-authorization-token --domain certora --domain-owner 092457480553 --region us-west-2 --query authorizationToken --output text)" | ||
| uv publish --index certora | ||
| - name: GitHub Release | ||
| if: startsWith(github.ref, 'refs/tags/v') | ||
| uses: softprops/action-gh-release@b4309332981a82ec1c5618f44dd2e27cc8bfbfda # v3.0.0 | ||
| with: | ||
| files: | | ||
| dist/*.whl | ||
| dist/*.tar.gz |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,3 +2,4 @@ | |
| .venv/ | ||
| build/ | ||
| *.egg-info/ | ||
| */_version.py | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| .PHONY: install | ||
| install: | ||
| uv sync | ||
|
|
||
| .PHONY: update-deps | ||
| update-deps: | ||
| uv lock --upgrade | ||
| uv sync | ||
|
|
||
| .PHONY: build | ||
| build: | ||
| uv build | ||
|
|
||
| .PHONY: pytest | ||
| pytest: | ||
| uv run pytest tests/ | ||
|
|
||
| .PHONY: pyright | ||
| pyright: | ||
| uv run pyright . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,30 +1,40 @@ | ||
| [build-system] | ||
| requires = ["setuptools>=61.0", "wheel"] | ||
| build-backend = "setuptools.build_meta" | ||
| requires = ["hatchling", "hatch-vcs"] | ||
| build-backend = "hatchling.build" | ||
|
|
||
| [project] | ||
| name = "graphcore" | ||
| version = "0.1.0" | ||
| dynamic = ["version"] | ||
| description = "A reusable framework for writing LLM-powered applications that iterate using various client side tools" | ||
| readme = "README.md" | ||
| requires-python = ">=3.12" | ||
| license = {text = "GPL-3.0"} | ||
| authors = [ | ||
| {name = "Certora Ltd."} | ||
| ] | ||
|
|
||
| license = { text = "GPL-3.0" } | ||
| authors = [{ name = "Certora Ltd." }] | ||
|
|
||
| dependencies = [ | ||
| "langchain>=1.2", | ||
| "langchain-anthropic>=1.4", | ||
| "langchain-core>=1.2", | ||
| "langgraph==1.0.5", | ||
| "langgraph>=1.0.13", | ||
| "psycopg[binary]>=3.2", | ||
| "psycopg[pool]>=3.2" | ||
| "psycopg[pool]>=3.2", | ||
| ] | ||
|
|
||
| [dependency-groups] | ||
| test = ["pytest>=9.0", "pytest-asyncio>=1.3", "testcontainers>=4.0"] | ||
| ci = ["pyright"] | ||
|
|
||
| [tool.setuptools] | ||
| packages = ["graphcore", "graphcore.tools"] | ||
| [tool.hatch.version] | ||
| source = "vcs" | ||
|
|
||
| [tool.hatch.build.hooks.vcs] | ||
| version-file = "graphcore/_version.py" | ||
|
|
||
| [tool.hatch.build.targets.wheel] | ||
| packages = ["graphcore"] | ||
|
|
||
| [[tool.uv.index]] | ||
| name = "certora" | ||
| url = "https://certora-092457480553.d.codeartifact.us-west-2.amazonaws.com/pypi/Certora-Internal/simple/" | ||
| publish-url = "https://certora-092457480553.d.codeartifact.us-west-2.amazonaws.com/pypi/Certora-Internal/" | ||
| explicit = true | ||
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was updated to make the CI pass (langchain-ai/langgraph#7404) , do we want to lock to
1.0.5with lock onlanggraph-prebuilt?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
upstream ai composer just pins to
langgraph-prebuilt==1.0.8. More to the point, updating past 1.0.5 introduces a change in how langgraph handles checkpoints that is very disruptive for our tooling and extremely difficult for us to program around. In other words 1.0.5 is the max langgraph version we're going to be using for the time being.