diff --git a/.github/workflows/docs-action.yml b/.github/workflows/docs-action.yml index 9e7775d..0bab1fd 100644 --- a/.github/workflows/docs-action.yml +++ b/.github/workflows/docs-action.yml @@ -22,7 +22,10 @@ jobs: - name: Install Nox run: | python -m pip install --upgrade pip - pip install nox + pip install "nox==$NOX_VERSION" "uv==$UV_VERSION" + env: + NOX_VERSION: '2025.2.9' + UV_VERSION: '0.6.9' - name: Install Doc Requirements run: | diff --git a/.github/workflows/test-action.yml b/.github/workflows/test-action.yml index e257bf4..b997c16 100644 --- a/.github/workflows/test-action.yml +++ b/.github/workflows/test-action.yml @@ -32,7 +32,10 @@ jobs: - name: Install Nox run: | python -m pip install --upgrade pip - pip install nox + pip install "nox==$NOX_VERSION" "uv==$UV_VERSION" + env: + NOX_VERSION: '2025.2.9' + UV_VERSION: '0.6.9' - name: Install Test Requirements env: @@ -121,7 +124,10 @@ jobs: - name: Install Nox run: | python -m pip install --upgrade pip - pip install nox + pip install "nox==$env:NOX_VERSION" "uv==$env:UV_VERSION" + env: + NOX_VERSION: '2025.2.9' + UV_VERSION: '0.6.9' - name: Install Test Requirements shell: bash @@ -215,7 +221,10 @@ jobs: - name: Install Nox run: | python -m pip install --upgrade pip - pip install nox + pip install "nox==$NOX_VERSION" "uv==$UV_VERSION" + env: + NOX_VERSION: '2025.2.9' + UV_VERSION: '0.6.9' - name: Install Test Requirements env: diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c802461..5a4267a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -123,8 +123,8 @@ repos: files: ^((setup|noxfile)|src/.*)\.py$ require_serial: true additional_dependencies: - - nox==2024.10.9 - - uv==0.4.29 # Makes this hook much faster + - nox==2025.2.9 + - uv==0.6.9 # Makes this hook much faster - id: nox alias: lint-tests @@ -134,8 +134,8 @@ repos: files: ^tests/.*\.py$ require_serial: true additional_dependencies: - - nox==2024.10.9 - - uv==0.4.29 # Makes this hook much faster + - nox==2025.2.9 + - uv==0.6.9 # Makes this hook much faster - repo: https://github.com/Mateusz-Grzelinski/actionlint-py rev: 27445053da613c660ed5895d9616662059a53ca7 # v1.7.3.17 diff --git a/pyproject.toml b/pyproject.toml index 3102669..04426cb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -81,6 +81,11 @@ tests = [ [project.entry-points."salt.loader"] "saltext.kubernetes" = "saltext.kubernetes" +[tool.uv] +# Salt's legacy setup.py requires old setuptools. +# Since uv 0.6.0, it does not fall back to reading requirements from egg-info. +build-constraint-dependencies = ["setuptools<69"] + [tool.setuptools] zip-safe = false include-package-data = true