Skip to content

Pin virtualenv<21 for Python 3.9 CI jobs#78

Draft
ajalon1 wants to merge 2 commits intomkdocs:masterfrom
ajalon1:fix/pin-virtualenv-py39
Draft

Pin virtualenv<21 for Python 3.9 CI jobs#78
ajalon1 wants to merge 2 commits intomkdocs:masterfrom
ajalon1:fix/pin-virtualenv-py39

Conversation

@ajalon1
Copy link
Copy Markdown

@ajalon1 ajalon1 commented Apr 6, 2026

My company DataRobot still uses this plugin, and we'd like to push a change upstream. However, I see that CI fails and the build itself doesn't work.

virtualenv 21.0.0 dropped Python 3.9 support, causing hatch environment creation to fail with:

Environment `test` is incompatible: module 'virtualenv.discovery.builtin' has no attribute 'propose_interpreters'

This adds a conditional CI step that pins virtualenv<21 for Python 3.9 matrix jobs.

See also: pypa/hatch#2193

virtualenv 21.0.0 dropped Python 3.9 support, causing hatch env
creation to fail with 'propose_interpreters' attribute error.

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
mkdocs <1.4 imports pkg_resources, which was removed in setuptools
82.0, breaking the minimal versions CI job.

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
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