Skip to content

chore(ci): disable tox .venv redirect file - #17

Merged
abe-101 merged 1 commit into
mainfrom
chore/disable-tox-venv-redirect
Oct 12, 2026
Merged

abe-101 merged 1 commit into
mainfrom
chore/disable-tox-venv-redirect

Conversation

@abe-101

@abe-101 abe-101 commented Oct 12, 2026

Copy link
Copy Markdown
Member

Fixes the Python 3.14 CI failures seen on #16.

tox 4.65 writes a PEP 832 .venv redirect file (e.g. .tox/py314-django60) after a run. The next CI step, uv run coverage combine, expects .venv to be a directory, so it fails:

error: Project virtual environment directory `.../.venv` cannot be used because expected directory but found a file

Only the 3.14 jobs were affected because the redirect points at the first env_list entry, py314-django60. The tests themselves passed.

This sets venv_redirect = false in tox.ini. I checked locally with tox 4.65.4 that no .venv file is written anymore.

AI disclosure

Diagnosed and changed with Claude Code (Claude Opus 5.5, claude-opus-5-5), following pycalendar's AI policy. Details are in the commit message.

tox 4.65 writes a PEP 832 `.venv` redirect file pointing at a tox
environment. The CI coverage step then runs `uv run`, which expects
`.venv` to be a directory and fails with "expected directory but found
a file". This broke the Python 3.14 jobs. Turn the redirect off.

AI disclosure: diagnosed and changed with Claude Code (Claude Opus 5.5,
claude-opus-5-5). The model compared the CI logs of passing and failing
jobs, reproduced the `.venv` file locally with tox 4.65.4, found the
`venv_redirect` option in the tox source, and checked that setting it
to false stops the file being written. Prompted by the maintainer
asking why the 3.14 jobs failed.

Assistant-model: Claude Code
@codecov

codecov Bot commented Oct 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@abe-101
abe-101 merged commit dadc2ce into main Oct 12, 2026
19 checks passed
@abe-101
abe-101 deleted the chore/disable-tox-venv-redirect branch October 12, 2026 15:04

This branch was successfully deployed

1 active deployment
release — a5b66b8c Deployed Oct 12, 2026 by abe-101 via release #17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant