diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7114b09..d429591 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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 @@ -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" +``` diff --git a/README.md b/README.md index cb300bb..c5fb5bf 100644 --- a/README.md +++ b/README.md @@ -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+). diff --git a/VERSION b/VERSION index 8acdd82..4e379d2 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.0.1 +0.0.2 diff --git a/core/Cargo.lock b/core/Cargo.lock index 5874107..d2655c7 100644 --- a/core/Cargo.lock +++ b/core/Cargo.lock @@ -228,7 +228,7 @@ checksum = "d0881ea181b1df73ff77ffaaf9c7544ecc11e82fba9b5f27b262a3c73a332555" [[package]] name = "eac" -version = "0.0.1" +version = "0.0.2" dependencies = [ "anyhow", "chrono", diff --git a/core/Cargo.toml b/core/Cargo.toml index bc4d6aa..204beb5 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -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" diff --git a/docs/app/introduction/page.mdx b/docs/app/introduction/page.mdx index 0dddcfd..179757f 100644 --- a/docs/app/introduction/page.mdx +++ b/docs/app/introduction/page.mdx @@ -56,7 +56,7 @@ Then install the SDK into the environment your evals run in: ```sh -pip install -e sdks/python # needs Python 3.11+ +pip install eac-sdk # needs Python 3.11+ ``` diff --git a/docs/components/landing.tsx b/docs/components/landing.tsx index 3d9ae81..8bb5c05 100644 --- a/docs/components/landing.tsx +++ b/docs/components/landing.tsx @@ -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 diff --git a/sdks/python/README.md b/sdks/python/README.md index b2d3906..eec37c7 100644 --- a/sdks/python/README.md +++ b/sdks/python/README.md @@ -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`. @@ -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. diff --git a/sdks/python/eac/_version.py b/sdks/python/eac/_version.py index 3f28fb3..cc0faad 100644 --- a/sdks/python/eac/_version.py +++ b/sdks/python/eac/_version.py @@ -1,3 +1,3 @@ """Generated by `make version` from VERSION. Don't edit it by hand.""" -__version__ = "0.0.1" +__version__ = "0.0.2" diff --git a/sdks/python/pyproject.toml b/sdks/python/pyproject.toml index 75fed4e..7b39544 100644 --- a/sdks/python/pyproject.toml +++ b/sdks/python/pyproject.toml @@ -9,6 +9,7 @@ dependencies = [] [project.urls] Homepage = "https://github.com/getsentry/eac" +Documentation = "https://eac.sentry.dev" [build-system] requires = ["hatchling"]