Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Release Notes

## 0.32.4

This release brings compatility with older versions of `filelock` when installing `dev-cmd` with the
`old-pythons` extra.

## 0.32.3

This release switches from a bespoke lock embedding in dev-cmd distributuons to use of the
Expand Down
2 changes: 1 addition & 1 deletion dev_cmd/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2024 John Sirois.
# Licensed under the Apache License, Version 2.0 (see LICENSE).

__version__ = "0.32.3"
__version__ = "0.32.4"
2 changes: 2 additions & 0 deletions dev_cmd/venv.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ def marker_environment(python: Python, quiet: bool = False) -> dict[str, str]:
fingerprint = _fingerprint(resolved_python.encode())
markers_file = _ensure_cache_dir() / "interpreters" / f"markers.{fingerprint}.json"
if not os.path.exists(markers_file):
markers_file.parent.mkdir(parents=True, exist_ok=True)
with (
FileLock(f"{markers_file}.lck"),
TemporaryDirectory(dir=markers_file.parent, prefix="packaging-venv.") as td,
Expand Down Expand Up @@ -245,6 +246,7 @@ def ensure(
venv_dir = _ensure_cache_dir() / "venvs" / fingerprint
layout_file = venv_dir / ".dev-cmd-venv-layout.json"
if not os.path.exists(venv_dir):
venv_dir.parent.mkdir(parents=True, exist_ok=True)
with FileLock(f"{venv_dir}.lck"):
if not os.path.exists(venv_dir):
print(
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ requires = [

# 1st support for license expressions was in setuptools 77.0.0.
"setuptools>=77",

"uv",
]
build-backend = "pex.build_backend.wrap"

Expand Down