Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 17 additions & 9 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,15 @@ Releases run through [Craft](https://craft.sentry.dev), configured in
branch and a release issue in
[`getsentry/publish`](https://github.com/getsentry/publish).
3. Review the changelog on the release branch and wait for CI to pass.
4. Ask someone else to add the `accepted` label to the issue. Craft then
4. Check the issue's targets. A checked target is skipped, so leave `github`,
`pypi` and `sentry-pypi` unchecked.
5. Ask someone else to add the `accepted` label to the issue. Craft then
publishes everything and merges the branch back into `main`.

The `sentry-pypi` target doesn't upload anything itself. It adds the version to
`packages.ini` in [`getsentry/pypi`](https://github.com/getsentry/pypi), whose
CI fetches it from public PyPI. So it only works once `pypi` has published.

### Testing locally

Craft can't publish to your machine, but its dry runs show what a release
Expand All @@ -53,16 +59,18 @@ uv add --editable path/to/eac/sdks/python # the SDK, in your project

### Trying a release in another project

Install the CLI and the SDK from a GitHub release, here `0.0.1`:
Install a release's CLI and SDK, here `0.0.2`:

```sh
EAC_VERSION=0.0.1 bash docs/public/install # the installer at eac.sentry.dev/install
gh release download 0.0.1 -R getsentry/eac -p 'eac_sdk-*.whl' -D /tmp/eac
uv pip install /tmp/eac/eac_sdk-0.0.1-py3-none-any.whl # in your project
EAC_VERSION=0.0.2 bash docs/public/install # the installer at eac.sentry.dev/install
uv add eac-sdk==0.0.2 # in your project
```

### Before the first PyPI release
To install the SDK from Sentry's internal index instead, add it to the
project's `pyproject.toml`. It lists a version once `getsentry/pypi`'s CI has
built it:

- Get approval to publish the SDK. PyPI is public, and the sdist includes its
source.
- Onboard to `getsentry/publish` for the release bot and PyPI credentials.
```toml
[[tool.uv.index]]
url = "https://pypi.devinfra.sentry.io/simple"
```
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,16 @@ eac is a command line tool & SDKs to write evals for AI systems. It handles fixt

📚 [Full Documentation](https://eac.sentry.dev)

> [!WARNING]
> eac is an early release, used internally at Sentry. There may be breaking changes in the futures.

## Get started

### 1. Install

```sh
curl -fsSL https://eac.sentry.dev/install | bash # the CLI, on macOS or Linux

git clone https://github.com/getsentry/eac.git
pip install -e eac/sdks/python # the SDK, needs Python 3.11+
pip install eac-sdk # the SDK, needs Python 3.11+
```

To build the CLI from source instead, run `make install` in the repo (needs Rust 1.87+).
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.1
0.0.2
2 changes: 1 addition & 1 deletion core/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "eac"
version = "0.0.1"
version = "0.0.2"
edition = "2021"
description = "Run evals defined in code"
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion docs/app/introduction/page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Then install the SDK into the environment your evals run in:
<ForLanguage lang="python">

```sh
pip install -e sdks/python # needs Python 3.11+
pip install eac-sdk # needs Python 3.11+
```

</ForLanguage>
Expand Down
2 changes: 1 addition & 1 deletion docs/components/landing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ const SDKS: Record<
> = {
python: {
install: `# needs Python 3.11+
pip install "eac-sdk @ git+${REPO_URL}#subdirectory=sdks/python"`,
pip install eac-sdk`,
file: 'dataset.py',
offline: {
datasetYml: `name: chat
Expand Down
12 changes: 7 additions & 5 deletions sdks/python/README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
# eac Python SDK

Write evals in Python and run them with the `eac` CLI.
[`examples/sentry-assistant-python`](../../examples/sentry-assistant-python)
Write evals in Python and run them with the [`eac` CLI](https://eac.sentry.dev).
[`examples/sentry-assistant-python`](https://github.com/getsentry/eac/tree/main/examples/sentry-assistant-python)
uses most of what's below on a small, real agent.

> **Early release:** eac is used internally at Sentry. There may be breaking changes in the future.

## Install

The SDK needs Python 3.11 or newer. Install it into the environment your evals
run in:

```sh
pip install -e path/to/eac/sdks/python
pip install eac-sdk
# or
uv add --editable path/to/eac/sdks/python
uv add eac-sdk
```

It installs as `eac-sdk` and imports as `eac`.
Expand Down Expand Up @@ -430,4 +432,4 @@ create async clients inside it rather than keeping them on `self`. eac runs
cases in parallel with `concurrency`, which starts more workers, so your code
handles one case at a time.

[`core/README.md`](../../core/README.md) is the CLI's full reference.
[`core/README.md`](https://github.com/getsentry/eac/blob/main/core/README.md) is the CLI's full reference.
2 changes: 1 addition & 1 deletion sdks/python/eac/_version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""Generated by `make version` from VERSION. Don't edit it by hand."""

__version__ = "0.0.1"
__version__ = "0.0.2"
1 change: 1 addition & 0 deletions sdks/python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ dependencies = []

[project.urls]
Homepage = "https://github.com/getsentry/eac"
Documentation = "https://eac.sentry.dev"

[build-system]
requires = ["hatchling"]
Expand Down
Loading