arcade-mcp/.github/actions/setup-uv-env/action.yml
Eric Gustin c408208f83
Fix deprecation warning (#765)
`[tool.uv]`'s `dev-dependencies` is deprecated. I got tired of seeing
the warning.

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> Low risk build/CI tooling change, but it may affect environment setup
if `uv sync` extra resolution differs from the old `--dev` behavior.
> 
> **Overview**
> Removes the deprecated `dev-dependencies` config and instead defines
development requirements as a `dev` optional-dependency extra in
`pyproject.toml`.
> 
> Updates local/CI install paths (Makefile, composite action, and
install-test workflow) to install dev requirements via `uv sync --extra
all --extra dev` rather than `uv sync --dev`.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
472ab6e5e498b69d88ac8f08ba8414e901272f26. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->

<!-- BUGBOT_STATUS --><sup><a
href="https://cursor.com/dashboard?tab=bugbot">Cursor Bugbot</a> found 1
potential issue for commit <u>472ab6e</u></sup><!-- /BUGBOT_STATUS -->
2026-02-04 13:53:56 -08:00

54 lines
1.5 KiB
YAML

name: "setup-uv-env"
description: "Composite action to setup the Python and uv environment."
inputs:
python-version:
required: false
description: "The python version to use"
default: "3.11"
is-toolkit:
required: false
description: "Whether this is a toolkit package"
default: "false"
is-contrib:
required: false
description: "Whether this is a contrib package"
default: "false"
is-lib:
required: false
description: "Whether this is a library package"
default: "false"
working-directory:
required: false
description: "Working directory for the installation (used for toolkits)"
default: "."
runs:
using: "composite"
steps:
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
working-directory: ${{ inputs.working-directory }}
python-version: ${{ inputs.python-version }}
- name: Install toolkit dependencies
if: inputs.is-toolkit == 'true'
working-directory: ${{ inputs.working-directory }}
run: |
echo "Installing dependencies for ${{ inputs.working-directory }}"
make install-local
shell: bash
- name: Install contrib dependencies
if: inputs.is-contrib == 'true'
working-directory: ${{ inputs.working-directory }}
run: |
echo "Installing dependencies for ${{ inputs.working-directory }}"
make install
shell: bash
- name: Install libs dependencies
if: inputs.is-toolkit != 'true'
run: uv sync --extra all --extra dev
shell: bash