Skip to content

Commit 0816baa

Browse files
authored
⬆️Upgrade to UV 0.7, pre-commit tools and dump installation of pip/setuptools/wheels (#8000)
1 parent 7f28bbc commit 0816baa

File tree

29 files changed

+29
-34
lines changed

29 files changed

+29
-34
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ repos:
2222
- id: no-commit-to-branch
2323
# NOTE: Keep order as pyupgrade (will update code) then pycln (remove unused imports), then isort (sort them) and black (final formatting)
2424
- repo: https://github.com/asottile/pyupgrade
25-
rev: v3.19.1
25+
rev: v3.20.0
2626
hooks:
2727
- id: pyupgrade
2828
args:
@@ -36,7 +36,7 @@ repos:
3636
args: [--all, --expand-stars]
3737
name: prune imports
3838
- repo: https://github.com/PyCQA/isort
39-
rev: 6.0.0
39+
rev: 6.0.1
4040
hooks:
4141
- id: isort
4242
args: ["--profile", "black"]

Makefile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -502,11 +502,6 @@ push-version: tag-version
502502
.venv: .check-uv-installed
503503
@uv venv $@
504504
@echo "# upgrading tools to latest version in" && $@/bin/python --version
505-
@uv pip --quiet install --upgrade \
506-
pip~=24.0 \
507-
wheel \
508-
setuptools \
509-
uv
510505
@uv pip list
511506

512507
devenv: .venv test_python_version .vscode/settings.json .vscode/launch.json ## create a development environment (configs, virtual-env, hooks, ...)

packages/postgres-database/docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# syntax=docker/dockerfile:1
22
ARG PYTHON_VERSION="3.11.9"
3-
ARG UV_VERSION="0.6"
3+
ARG UV_VERSION="0.7"
44
FROM ghcr.io/astral-sh/uv:${UV_VERSION} AS uv_build
55
# we docker image is built based on debian
66
FROM python:${PYTHON_VERSION}-slim-bookworm AS base

packages/postgres-database/scripts/erd/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Define arguments in the global scope
44
ARG PYTHON_VERSION="3.11.9"
5-
ARG UV_VERSION="0.6"
5+
ARG UV_VERSION="0.7"
66
FROM ghcr.io/astral-sh/uv:${UV_VERSION} AS uv_build
77
# we docker image is built based on debian
88
FROM python:${PYTHON_VERSION}-slim-bookworm AS base

packages/service-integration/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Define arguments in the global scope
44
ARG PYTHON_VERSION="3.11.9"
5-
ARG UV_VERSION="0.6"
5+
ARG UV_VERSION="0.7"
66
FROM ghcr.io/astral-sh/uv:${UV_VERSION} AS uv_build
77

88
FROM python:${PYTHON_VERSION}-slim-bookworm AS base-arm64

requirements/tools/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#
1010
#
1111
ARG PYTHON_VERSION="3.11.9"
12-
ARG UV_VERSION="0.6"
12+
ARG UV_VERSION="0.7"
1313
FROM ghcr.io/astral-sh/uv:${UV_VERSION} AS uv_build
1414
# we docker image is built based on debian
1515
FROM python:${PYTHON_VERSION}-slim-bookworm AS base

scripts/erd/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#
99

1010
ARG PYTHON_VERSION="3.11.9"
11-
ARG UV_VERSION="0.6"
11+
ARG UV_VERSION="0.7"
1212
FROM ghcr.io/astral-sh/uv:${UV_VERSION} AS uv_build
1313
# we docker image is built based on debian
1414
FROM python:${PYTHON_VERSION}-slim-bookworm AS base

scripts/maintenance/migrate_project/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# syntax=docker/dockerfile:1
2-
ARG UV_VERSION="0.6"
2+
ARG UV_VERSION="0.7"
33
FROM ghcr.io/astral-sh/uv:${UV_VERSION} AS uv_build
44
# we docker image is built based on debian
55
FROM python:3.11.9-buster

scripts/openapi/oas_resolver/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Usage:
33
# docker build . -t oas_resolver
44
# docker run -v /path/to/api:/input -v /path/to/compiled/file:/output oas_resolver /input/path/to/openapi.yaml /output/output_file.yaml
5-
ARG UV_VERSION="0.6"
5+
ARG UV_VERSION="0.7"
66
FROM ghcr.io/astral-sh/uv:${UV_VERSION} AS uv_build
77
# we docker image is built based on debian
88
FROM python:3.6-alpine

scripts/pydeps-docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#
1010
#
1111
ARG PYTHON_VERSION="3.11.9"
12-
ARG UV_VERSION="0.6"
12+
ARG UV_VERSION="0.7"
1313
FROM ghcr.io/astral-sh/uv:${UV_VERSION} AS uv_build
1414
# we docker image is built based on debian
1515
FROM python:${PYTHON_VERSION}-slim-bookworm AS base

0 commit comments

Comments
 (0)