From 81ec0887b99fdd38a1a43678b42384d20c1d7fce Mon Sep 17 00:00:00 2001 From: Ofek Lev Date: Mon, 29 Apr 2024 12:54:34 -0400 Subject: [PATCH] Upgrade virtualenv dependency --- docs/history/hatch.md | 1 + pyproject.toml | 2 +- tests/python/test_core.py | 5 ++++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/history/hatch.md b/docs/history/hatch.md index a7920a5c7..04d4749a8 100644 --- a/docs/history/hatch.md +++ b/docs/history/hatch.md @@ -30,6 +30,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), - Upgrade Ruff to 0.4.1 - Upgrade PyApp to 0.19.0 for binary builds - Bump the minimum supported version of Hatchling to 1.24.2 +- Bump the minimum supported version of virtualenv to 20.26.1 ***Fixed:*** diff --git a/pyproject.toml b/pyproject.toml index bf965bb10..7a9cfc6d3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,7 +52,7 @@ dependencies = [ "tomlkit>=0.11.1", "userpath~=1.7", "uv>=0.1.35", - "virtualenv<20.26.0", + "virtualenv>=20.26.1", "zstandard<1", ] dynamic = ["version"] diff --git a/tests/python/test_core.py b/tests/python/test_core.py index 1fd11d690..0bc78ca03 100644 --- a/tests/python/test_core.py +++ b/tests/python/test_core.py @@ -9,7 +9,10 @@ @pytest.mark.requires_internet @pytest.mark.parametrize('name', ORDERED_DISTRIBUTIONS) -def test_installation(temp_dir, platform, name): +def test_installation(temp_dir, platform, current_arch, name): + if platform.name == 'macos' and current_arch == 'arm64' and name == '3.7': + pytest.skip('No macOS 3.7 distribution for ARM') + # Ensure the source and any parent directories get created manager = PythonManager(temp_dir / 'foo' / 'bar') dist = manager.install(name)