PYTHON-5570 Do not freeze the lockfile (#2555)

This commit is contained in:
Steven Silvester 2025-09-23 14:08:13 -05:00 committed by GitHub
parent 266caf02c4
commit 29c4c2cc0f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 15 additions and 12 deletions

View File

@ -47,13 +47,13 @@ if [ -f $HOME/.visualStudioEnv.sh ]; then
SSH_TTY=1 source $HOME/.visualStudioEnv.sh SSH_TTY=1 source $HOME/.visualStudioEnv.sh
set -u set -u
fi fi
uv sync --frozen uv sync
echo "Setting up python environment... done." echo "Setting up python environment... done."
# Ensure there is a pre-commit hook if there is a git checkout. # Ensure there is a pre-commit hook if there is a git checkout.
if [ -d .git ] && [ ! -f .git/hooks/pre-commit ]; then if [ -d .git ] && [ ! -f .git/hooks/pre-commit ]; then
uv run --frozen pre-commit install uv run pre-commit install
fi fi
popd > /dev/null popd > /dev/null

View File

@ -105,12 +105,6 @@ repos:
# - test/test_client.py:188: te ==> the, be, we, to # - test/test_client.py:188: te ==> the, be, we, to
args: ["-L", "fle,fo,infinit,isnt,nin,te,aks"] args: ["-L", "fle,fo,infinit,isnt,nin,te,aks"]
- repo: https://github.com/astral-sh/uv-pre-commit
# uv version.
rev: 0.8.17
hooks:
- id: uv-lock
- repo: local - repo: local
hooks: hooks:
- id: executable-shell - id: executable-shell
@ -128,3 +122,14 @@ repos:
language: python language: python
require_serial: true require_serial: true
additional_dependencies: ["shrub.py>=3.10.0", "pyyaml>=6.0.2"] additional_dependencies: ["shrub.py>=3.10.0", "pyyaml>=6.0.2"]
- id: uv-lock
name: uv-lock
entry: uv lock
language: python
require_serial: true
files: ^(uv\.lock|pyproject\.toml|requirements.txt|requirements/.*\.txt)$
pass_filenames: false
fail_fast: true
additional_dependencies:
- "uv>=0.8.4"

View File

@ -1,7 +1,5 @@
# See https://just.systems/man/en/ for instructions # See https://just.systems/man/en/ for instructions
set shell := ["bash", "-c"] set shell := ["bash", "-c"]
# Do not modify the lock file when running justfile commands.
export UV_FROZEN := "1"
# Commonly used command segments. # Commonly used command segments.
typing_run := "uv run --group typing --extra aws --extra encryption --extra ocsp --extra snappy --extra test --extra zstd" typing_run := "uv run --group typing --extra aws --extra encryption --extra ocsp --extra snappy --extra test --extra zstd"
@ -16,7 +14,7 @@ default:
[private] [private]
resync: resync:
@uv sync --quiet --frozen @uv sync --quiet
install: install:
bash .evergreen/scripts/setup-dev-env.sh bash .evergreen/scripts/setup-dev-env.sh

2
uv.lock generated
View File

@ -1309,7 +1309,7 @@ requires-dist = [
{ name = "furo", marker = "extra == 'docs'", specifier = "==2025.7.19" }, { name = "furo", marker = "extra == 'docs'", specifier = "==2025.7.19" },
{ name = "importlib-metadata", marker = "python_full_version < '3.13' and extra == 'test'", specifier = ">=7.0" }, { name = "importlib-metadata", marker = "python_full_version < '3.13' and extra == 'test'", specifier = ">=7.0" },
{ name = "pykerberos", marker = "os_name != 'nt' and extra == 'gssapi'" }, { name = "pykerberos", marker = "os_name != 'nt' and extra == 'gssapi'" },
{ name = "pymongo-auth-aws", marker = "extra == 'aws'", specifier = ">=1.1.0,<2.0.0" }, { name = "pymongo-auth-aws", marker = "extra == 'aws'", specifier = ">=1.1.1,<2.0.0" },
{ name = "pymongo-auth-aws", marker = "extra == 'encryption'", specifier = ">=1.1.0,<2.0.0" }, { name = "pymongo-auth-aws", marker = "extra == 'encryption'", specifier = ">=1.1.0,<2.0.0" },
{ name = "pymongocrypt", marker = "extra == 'encryption'", specifier = ">=1.13.0,<2.0.0" }, { name = "pymongocrypt", marker = "extra == 'encryption'", specifier = ">=1.13.0,<2.0.0" },
{ name = "pyopenssl", marker = "extra == 'ocsp'", specifier = ">=17.2.0" }, { name = "pyopenssl", marker = "extra == 'ocsp'", specifier = ">=17.2.0" },