|
22 | 22 |
|
23 | 23 |
|
24 | 24 | def source_metadata(*, stable: bool = False) -> SourceMetadata: |
25 | | - version = "2.0.0" if stable else "2.0.0-rc.31" |
26 | | - registry_version = "2.0.0" if stable else "2.0.0rc31" |
| 25 | + version = "2.0.0" if stable else "2.0.0-rc.32" |
| 26 | + registry_version = "2.0.0" if stable else "2.0.0rc32" |
27 | 27 | return SourceMetadata( |
28 | 28 | commit="a" * 40, |
29 | 29 | name="durable-workflow", |
@@ -163,7 +163,7 @@ def resolve(requirement: str, *, prerelease: bool) -> object: |
163 | 163 | monkeypatch.setattr("scripts.check_pypi_project_surface._pip_report", resolve) |
164 | 164 | monkeypatch.setattr("scripts.check_pypi_project_surface.time.sleep", sleeps.append) |
165 | 165 |
|
166 | | - with pytest.raises(ProjectSurfaceError, match="pip selected 2.0.0rc23; expected 2.0.0rc31"): |
| 166 | + with pytest.raises(ProjectSurfaceError, match="pip selected 2.0.0rc23; expected 2.0.0rc32"): |
167 | 167 | main(["--source-ref", "release-source", "--attempts", "30", "--interval-seconds", "10"]) |
168 | 168 |
|
169 | 169 | assert requirements == [ |
@@ -191,14 +191,14 @@ def run_pip(command: list[str], **_: object) -> subprocess.CompletedProcess[str] |
191 | 191 | if "==" in requirement and pip_attempts[requirement] == 1: |
192 | 192 | detail = ( |
193 | 193 | f"ERROR: Could not find a version that satisfies the requirement {requirement} " |
194 | | - "(from versions: 0.4.106, 2.0.0rc30)\n" |
| 194 | + "(from versions: 0.4.106, 2.0.0rc31)\n" |
195 | 195 | f"ERROR: No matching distribution found for {requirement}\n" |
196 | 196 | ) |
197 | 197 | return subprocess.CompletedProcess(command, 1, stdout="", stderr=detail) |
198 | 198 |
|
199 | 199 | version = source.registry_version |
200 | 200 | if "~=" in requirement and pip_attempts[requirement] == 1: |
201 | | - version = "2.0.0rc30" |
| 201 | + version = "2.0.0rc31" |
202 | 202 | report_path = Path(command[command.index("--report") + 1]) |
203 | 203 | report_path.write_text(json.dumps(pip_report(version)), encoding="utf-8") |
204 | 204 | return subprocess.CompletedProcess(command, 0, stdout="", stderr="") |
@@ -262,7 +262,7 @@ def test_exact_pip_semantic_mismatch_fails_without_retrying(monkeypatch: pytest. |
262 | 262 | ) |
263 | 263 | monkeypatch.setattr("scripts.check_pypi_project_surface.time.sleep", sleeps.append) |
264 | 264 |
|
265 | | - with pytest.raises(ProjectSurfaceError, match="pip selected 2.0.0rc24; expected 2.0.0rc31"): |
| 265 | + with pytest.raises(ProjectSurfaceError, match="pip selected 2.0.0rc24; expected 2.0.0rc32"): |
266 | 266 | main(["--source-ref", "release-source", "--attempts", "30", "--interval-seconds", "10"]) |
267 | 267 |
|
268 | 268 | assert requirements == [f"{source.name}=={source.registry_version}"] |
|
0 commit comments