diff --git a/.github/workflows/docstrings_linting.yml b/.github/workflows/docstrings_linting.yml index 3188db013..beb18facc 100644 --- a/.github/workflows/docstrings_linting.yml +++ b/.github/workflows/docstrings_linting.yml @@ -10,6 +10,9 @@ on: paths: - "**.py" +env: + HATCH_VERSION: "1.13.0" + jobs: docstrings-linting: runs-on: ubuntu-latest @@ -19,7 +22,7 @@ jobs: uses: actions/checkout@v4 - name: Install Hatch - run: pip install hatch=="1.9.3" + run: pip install hatch==${{ env.HATCH_VERSION }} - name: ruff docstrings linting run: hatch run ruff check haystack diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index e258002c5..b0911ea3b 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -18,7 +18,7 @@ on: env: PYTHON_VERSION: "3.8" OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} - HATCH_VERSION: "1.9.3" + HATCH_VERSION: "1.13.0" jobs: run: diff --git a/.github/workflows/pypi_release.yml b/.github/workflows/pypi_release.yml index 7d86e814a..807adff22 100644 --- a/.github/workflows/pypi_release.yml +++ b/.github/workflows/pypi_release.yml @@ -8,7 +8,7 @@ on: - "!v[0-9]+.[0-9]+.[0-9]-rc0" env: - HATCH_VERSION: "1.9.3" + HATCH_VERSION: "1.13.0" jobs: release-on-pypi: diff --git a/.github/workflows/readme_sync.yml b/.github/workflows/readme_sync.yml index 1d4dd1161..518d35e1c 100644 --- a/.github/workflows/readme_sync.yml +++ b/.github/workflows/readme_sync.yml @@ -13,7 +13,7 @@ on: - "!v1.[0-9]+.x" env: - HATCH_VERSION: "1.9.3" + HATCH_VERSION: "1.13.0" PYTHON_VERSION: "3.10" jobs: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 89c8fafb6..4f9df1a3f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -30,7 +30,7 @@ env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} HF_API_TOKEN: ${{ secrets.HUGGINGFACE_API_KEY }} PYTHON_VERSION: "3.8" - HATCH_VERSION: "1.9.3" + HATCH_VERSION: "1.13.0" jobs: format: diff --git a/pyproject.toml b/pyproject.toml index be286052b..ad009dc2f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -60,6 +60,7 @@ dependencies = [ ] [tool.hatch.envs.default] +installer = "uv" dependencies = [ "pre-commit", "ruff", @@ -151,6 +152,7 @@ types = "mypy --install-types --non-interactive --cache-dir=.mypy_cache/ {args:h lint = "pylint -ry -j 0 {args:haystack}" [tool.hatch.envs.readme] +installer = "uv" detached = true # To avoid installing the dependencies from the default environment dependencies = ["haystack-pydoc-tools"] diff --git a/releasenotes/notes/upgrade-hatch-uv-5e5cccdf7450d01f.yaml b/releasenotes/notes/upgrade-hatch-uv-5e5cccdf7450d01f.yaml new file mode 100644 index 000000000..a6a63d35c --- /dev/null +++ b/releasenotes/notes/upgrade-hatch-uv-5e5cccdf7450d01f.yaml @@ -0,0 +1,4 @@ +--- +enhancements: + - | + Upgrade Hatch to 1.13.0 and adopt uv as installer, to speed up the CI.