Skip to content

Commit d81790e

Browse files
authored
Fix failing tests (pypa#1924)
* Fix failing flit backend test * uv behavior matches pip in uv>=v0.5.23
1 parent 64031c1 commit d81790e

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ dependencies = [
5353
"tomli-w>=1.0",
5454
"tomlkit>=0.11.1",
5555
"userpath~=1.7",
56-
"uv>=0.1.35",
56+
"uv>=0.5.23",
5757
"virtualenv>=20.26.6",
5858
"zstandard<1",
5959
]

tests/cli/project/test_metadata.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def test_other_backend(hatch, temp_dir, helpers):
2828

2929
project = Project(path)
3030
config = dict(project.raw_config)
31-
config['build-system']['requires'] = ['flit-core']
31+
config['build-system']['requires'] = ['flit-core==3.10.1']
3232
config['build-system']['build-backend'] = 'flit_core.buildapi'
3333
config['project']['version'] = '0.0.1'
3434
config['project']['dynamic'] = []

tests/dep/test_sync.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def test_dependency_git_uv(platform, uv_on_path):
9292
check=True,
9393
capture_output=True,
9494
)
95-
assert not dependencies_in_sync([Requirement('requests@git+https://github.com/psf/requests')], venv.sys_path)
95+
assert dependencies_in_sync([Requirement('requests@git+https://github.com/psf/requests')], venv.sys_path)
9696

9797

9898
@pytest.mark.requires_internet
@@ -114,9 +114,7 @@ def test_dependency_git_revision_uv(platform, uv_on_path):
114114
check=True,
115115
capture_output=True,
116116
)
117-
assert not dependencies_in_sync(
118-
[Requirement('requests@git+https://github.com/psf/requests@main')], venv.sys_path
119-
)
117+
assert dependencies_in_sync([Requirement('requests@git+https://github.com/psf/requests@main')], venv.sys_path)
120118

121119

122120
@pytest.mark.requires_internet

0 commit comments

Comments
 (0)