Skip to content

fix: Fix GitHub Actions hatch/virtualenv compatibility#1140

Merged
nathan-stender merged 3 commits intomainfrom
fix/github-actions-hatch-compatibility
Mar 11, 2026
Merged

fix: Fix GitHub Actions hatch/virtualenv compatibility#1140
nathan-stender merged 3 commits intomainfrom
fix/github-actions-hatch-compatibility

Conversation

@nathan-stender
Copy link
Collaborator

Summary

  • Fix CI failures caused by incompatibility between hatch and virtualenv versions
  • Pin hatch to >=1.13.0 to ensure compatibility with latest virtualenv API
  • Update GitHub Actions to use latest versions (checkout@v4, setup-python@v5)
  • Add CHROM/ directory to .gitignore for local test data

Background

The error module 'virtualenv.discovery.builtin' has no attribute 'propose_interpreters' occurred because:

  • Virtualenv 20.26.0+ removed the internal propose_interpreters method
  • Older versions of hatch were using this internal API
  • When GitHub Actions installed the latest virtualenv with an older hatch, they became incompatible

Test plan

  • CI tests pass on this PR
  • All Python versions (3.10, 3.11, 3.12) successfully create test environments
  • Linting and quality checks pass

🤖 Generated with Claude Code

nathan-stender and others added 2 commits March 11, 2026 11:44
…lity

- Pin hatch to version >=1.13.0 to ensure compatibility with latest virtualenv
- Update GitHub Actions to use latest versions (checkout@v4, setup-python@v5)
- Fixes CI failures caused by virtualenv API changes removing propose_interpreters

Co-Authored-By: Claude Opus 4.1 <noreply@anthropic.com>
Ignore local Chromeleon test data files

Co-Authored-By: Claude Opus 4.1 <noreply@anthropic.com>
@nathan-stender nathan-stender requested review from a team and slopez-b as code owners March 11, 2026 15:53
Chardet 6.0.0 (released Feb 22, 2026) introduced breaking changes in encoding detection that caused test failures with UTF-16 and Windows-1252 encoded files. This pins chardet to 5.x to maintain compatibility.

Co-Authored-By: Claude Opus 4.1 <noreply@anthropic.com>
@nathan-stender nathan-stender merged commit f5b7fe8 into main Mar 11, 2026
7 checks passed
@nathan-stender nathan-stender deleted the fix/github-actions-hatch-compatibility branch March 11, 2026 19:56
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.

2 participants