chore: Add minimum uv version (#30634)

This commit is contained in:
Robbie
2025-04-01 14:05:53 +01:00
committed by GitHub
parent 9c7869ed85
commit 5c19cac639
11 changed files with 16 additions and 1 deletions

View File

@@ -26,6 +26,7 @@ runs:
uses: astral-sh/setup-uv@0c5e2b8115b80b4c7c5ddf6ffdd634974642d182 # v5.4.1
with:
enable-cache: true
pyproject-file: 'pyproject.toml'
- name: Install SAML (python3-saml) dependencies
shell: bash

View File

@@ -82,6 +82,7 @@ runs:
uses: astral-sh/setup-uv@0c5e2b8115b80b4c7c5ddf6ffdd634974642d182 # v5.4.1
with:
enable-cache: true
pyproject-file: 'pyproject.toml'
- name: Determine if hogql-parser has changed compared to master
shell: bash

View File

@@ -61,6 +61,7 @@ jobs:
uses: astral-sh/setup-uv@0c5e2b8115b80b4c7c5ddf6ffdd634974642d182 # v5.4.1
with:
enable-cache: true
pyproject-file: 'pyproject.toml'
- name: Install SAML (python3-saml) dependencies
shell: bash

View File

@@ -139,6 +139,7 @@ jobs:
uses: astral-sh/setup-uv@0c5e2b8115b80b4c7c5ddf6ffdd634974642d182 # v5.4.1
with:
enable-cache: true
pyproject-file: 'pyproject.toml'
- name: Install SAML (python3-saml) dependencies
run: |
@@ -316,6 +317,7 @@ jobs:
uses: astral-sh/setup-uv@0c5e2b8115b80b4c7c5ddf6ffdd634974642d182 # v5.4.1
with:
enable-cache: true
pyproject-file: 'pyproject.toml'
- name: Install SAML (python3-saml) dependencies
run: |

View File

@@ -106,6 +106,7 @@ jobs:
uses: astral-sh/setup-uv@0c5e2b8115b80b4c7c5ddf6ffdd634974642d182 # v5.4.1
with:
enable-cache: true
pyproject-file: 'pyproject.toml'
- name: Install SAML (python3-saml) dependencies
run: |

View File

@@ -74,6 +74,7 @@ jobs:
uses: astral-sh/setup-uv@0c5e2b8115b80b4c7c5ddf6ffdd634974642d182 # v5.4.1
with:
enable-cache: true
pyproject-file: 'pyproject.toml'
- name: Install SAML (python3-saml) dependencies
run: |
@@ -178,6 +179,7 @@ jobs:
uses: astral-sh/setup-uv@0c5e2b8115b80b4c7c5ddf6ffdd634974642d182 # v5.4.1
with:
enable-cache: true
pyproject-file: 'pyproject.toml'
- name: Install SAML (python3-saml) dependencies
run: |
sudo apt-get update

View File

@@ -120,6 +120,7 @@ jobs:
uses: astral-sh/setup-uv@0c5e2b8115b80b4c7c5ddf6ffdd634974642d182 # v5.4.1
with:
enable-cache: true
pyproject-file: 'pyproject.toml'
- name: Install rust
if: needs.changes.outputs.plugin-server == 'true'
@@ -236,6 +237,7 @@ jobs:
uses: astral-sh/setup-uv@0c5e2b8115b80b4c7c5ddf6ffdd634974642d182 # v5.4.1
with:
enable-cache: true
pyproject-file: 'pyproject.toml'
- name: Install SAML (python3-saml) dependencies
if: needs.changes.outputs.plugin-server == 'true'

View File

@@ -136,6 +136,7 @@ jobs:
uses: astral-sh/setup-uv@0c5e2b8115b80b4c7c5ddf6ffdd634974642d182 # v5.4.1
with:
enable-cache: true
pyproject-file: 'pyproject.toml'
- name: Install SAML (python3-saml) dependencies
if: needs.changes.outputs.rust == 'true' && matrix.package == 'feature-flags'

View File

@@ -47,6 +47,7 @@ jobs:
uses: astral-sh/setup-uv@0c5e2b8115b80b4c7c5ddf6ffdd634974642d182 # v5.4.1
with:
enable-cache: true
pyproject-file: 'pyproject.toml'
- name: Install pnpm
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4

View File

@@ -125,7 +125,7 @@ RUN apt-get update && \
"pkg-config" \
&& \
rm -rf /var/lib/apt/lists/* && \
pip install uv~=0.6 --no-cache-dir && \
pip install uv~=0.6.11 --no-cache-dir && \
UV_PROJECT_ENVIRONMENT=/python-runtime uv sync --frozen --no-dev --no-cache --compile-bytecode --no-binary-package lxml --no-binary-package xmlsec
ENV PATH=/python-runtime/bin:$PATH \

View File

@@ -186,6 +186,9 @@ dev = [
"watchdog==5.0.3",
]
[tool.uv]
required-version = ">=0.6.0"
[tool.uv.sources]
infi-clickhouse-orm = { git = "https://github.com/PostHog/infi.clickhouse_orm", rev = "9578c79f29635ee2c1d01b7979e89adab8383de2" }