Metadata-Version: 2.5
Name: arthur-common
Version: 2.4.116
Summary: Utility code common to Arthur platform components.
Author-email: Arthur <engineering@arthur.ai>
License: MIT
Requires-Python: >=3.12
Requires-Dist: datasketches>=5.1.0
Requires-Dist: duckdb>=1.5.2
Requires-Dist: fastapi>=0.115.8
Requires-Dist: fsspec>=2024.10.0
Requires-Dist: litellm==1.111.0
Requires-Dist: openinference-semantic-conventions<0.2.0,>=0.1.12
Requires-Dist: pandas<3.2.0,>=3.0.3
Requires-Dist: pydantic>=2
Requires-Dist: simple-settings>=1.2.0
Requires-Dist: types-python-dateutil>=2.9.0
Requires-Dist: types-requests>=2.32.0.20241016
Requires-Dist: typing-extensions>=4.7.1
Description-Content-Type: text/markdown

# Arthur Common

Arthur Common is a library that contains common operations between Arthur platform services.

## Installation

To install the package, use [uv](https://docs.astral.sh/uv/):

```bash
uv add arthur-common
```

or pip

```bash
pip install arthur-common
```

## Requirements

- Python 3.12+

## Development

To set up the development environment, ensure you have [uv](https://docs.astral.sh/uv/) installed, then run:

```bash
uv sync --all-groups
```

### Running Tests

This project uses [pytest](https://pytest.org/) for testing. To run the tests, execute:

```bash
uv run pytest
```

## Release process
Releases are automatic. Merging into `main` publishes a new patch version once CI passes:
1. **Arthur Common CI** runs on the merge commit.
2. When it passes, **Arthur Common Version Bump** bumps the patch version and pushes a "Bump version" commit to `main`.
3. That commit starts **Arthur Common Release**, which publishes to PyPI and tags the release.
4. Update the package version in the projects that use it (arthur-engine, arthur-scope).

A green CI run doesn't bump in two cases:
- Dependency updates: Renovate merges and commits whose message starts with `Update dependency`, `Update python minor and patch`, `Lock file maintenance`, `chore(deps)` or `fix(deps)`.
- `main` moved on: another commit landed after the one CI validated, so the bump is left to the newer commit's CI run.

Whatever a skipped run leaves unreleased ships with the next bump. A daily run (09:00 UTC) also bumps, but only if `pyproject.toml` or `src/` changed since the last "Bump version" commit and CI on `main` is green; docs or `uv.lock` changes wait for the next regular bump. That file filter applies only to the daily run: a non-denylisted commit that changes only `uv.lock` still releases after green CI.

The daily run doesn't retry a failed release: it measures from the "Bump version" commit, not the release tag, and only warns that the tag is missing. Re-run **Arthur Common Release** yourself; it skips files PyPI already holds, so a re-run also completes a partial upload or a missing tag.

For a minor or major release, go to **Actions** -> **Arthur Common Version Bump**, click **Run workflow** and pick the bump type. This skips the CI check and publishes whatever is on `main`, so confirm CI on `main` is green first.
