Skip to content

Commit

Permalink
upgrade Hatch to 1.13.0 and adopt uv as installer (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
anakin87 authored Oct 21, 2024
1 parent 52d7567 commit 3fe656b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/api_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- main

env:
HATCH_VERSION: "1.9.3"
HATCH_VERSION: "1.13.0"
PYTHON_VERSION: "3.10"
SYNC_LAST_N_HAYSTACK_VERSIONS: 1

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pypi_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- "v[0-9]+.[0-9]+.[0-9]+*"

env:
HATCH_VERSION: "1.9.4"
HATCH_VERSION: "1.13.0"

jobs:
release-on-pypi:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ on:

env:
PYTHON_VERSION: "3.8"
HATCH_VERSION: "1.9.4"
HATCH_VERSION: "1.13.0"
PYTHONUNBUFFERED: "1"
FORCE_COLOR: "1"
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,13 @@ dependencies = ["haystack-ai", "pydantic"]
Homepage = "https://github.com/deepset-ai/haystack-experimental"

[tool.hatch.envs.default]
installer = "uv"
dependencies = [
# Pre-commit hook
"pre-commit",
# Type check
"mypy",
"pip",
# Test
"pytest",
"pytest-rerunfailures",
Expand Down Expand Up @@ -78,6 +80,7 @@ cov-report = ["- coverage combine", "coverage xml"]
cov = ["test-cov", "cov-report"]

[tool.hatch.envs.readme]
installer = "uv"
detached = true # To avoid installing the dependencies from the default environment
dependencies = ["haystack-pydoc-tools"]

Expand Down

0 comments on commit 3fe656b

Please sign in to comment.