Skip to content

chore: make virtualenv<21 pin conditional on Python < 3.10#72

Merged
jericht merged 1 commit intoaws-deadline:mainlinefrom
jericht:jericht/revert_fix_build
Mar 12, 2026
Merged

chore: make virtualenv<21 pin conditional on Python < 3.10#72
jericht merged 1 commit intoaws-deadline:mainlinefrom
jericht:jericht/revert_fix_build

Conversation

@jericht
Copy link

@jericht jericht commented Mar 10, 2026

What was the problem/requirement? (What/Why)

The temporary pin of virtualenv<21 was applied globally to fix build issues with Python 3.8. However, this unnecessarily restricts Python 3.10+ from using the latest virtualenv versions, which have important fixes including hatch v1.16.5.

What was the solution? (How)

Use PEP 508 environment markers to conditionally pin virtualenv<21 only for Python versions less than 3.10:

pip install --upgrade hatch 'virtualenv<21; python_version < "3.10"'

This allows:

  • Python 3.8 and 3.9: Use virtualenv<21 (required for compatibility)
  • Python 3.10+: Use the latest virtualenv (no restrictions)

What is the impact of this change?

Build and test workflows for Python 3.10+ will now use the latest compatible version of virtualenv instead of being pinned to versions below 21, while maintaining compatibility with Python 3.8 and 3.9.

How was this change tested?

Tested via CI workflows across all Python versions.

Was this change documented?

N/A - Workflow configuration change

Does this PR introduce new dependencies?

  • This PR adds one or more new dependency Python packages.
  • This PR does not add any new dependencies.

Is this a breaking change?

No. This maintains existing behavior for Python 3.8/3.9 while allowing newer virtualenv for Python 3.10+.

Does this change impact security?

No.


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@jericht jericht requested a review from a team as a code owner March 10, 2026 18:54
@jericht jericht force-pushed the jericht/revert_fix_build branch 2 times, most recently from b826468 to 0ab46fb Compare March 10, 2026 18:58
@jericht jericht changed the title chore: Revert "chore: temporary pin virtualenv<21 to fix build (#70)" chore: make virtualenv<21 pin conditional on Python < 3.10 Mar 10, 2026
@jericht jericht force-pushed the jericht/revert_fix_build branch from 0ab46fb to 95df02e Compare March 10, 2026 18:59
Use PEP 508 environment markers to only pin virtualenv<21 for Python
versions less than 3.10, as virtualenv 21+ dropped Python 3.8 support.

This allows Python 3.10+ to use the latest virtualenv while maintaining
compatibility with Python 3.8 and 3.9.

Signed-off-by: Jericho Tolentino <68654047+jericht@users.noreply.github.com>
@jericht jericht force-pushed the jericht/revert_fix_build branch from 95df02e to 4e160e3 Compare March 10, 2026 19:48
@jericht jericht merged commit 977cf3d into aws-deadline:mainline Mar 12, 2026
4 checks passed
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.

4 participants