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
51 changes: 0 additions & 51 deletions .github/workflows/check-requirements.yml

This file was deleted.

10 changes: 2 additions & 8 deletions requirements/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,10 @@ This file contains all dependencies needed to run the CodeCarbon API server (car

### Updating the file

When you modify dependencies in `pyproject.toml` or when `uv.lock` changes (especially those under the `[project.optional-dependencies.api]` section), you **must** regenerate this file:
When you modify dependencies in `pyproject.toml` (especially those under the `[project.optional-dependencies.api]` section), you **must** regenerate this file:

```bash
uv export --extra api --no-hashes --format requirements-txt > requirements/requirements-api.txt
uv pip compile pyproject.toml --extra api --output-file requirements/requirements-api.txt
```

Then commit the updated file.

**Note:** This uses `uv.lock` to ensure fully reproducible builds with the exact same versions that are tested in CI.

### CI Check

A GitHub Actions workflow (`.github/workflows/check-requirements.yml`) automatically verifies that this file is up-to-date on every pull request that modifies `pyproject.toml`. If the check fails, simply run the command above and commit the changes.
Loading
Loading