@@ -213,7 +213,7 @@ def test_nested_path_in_tar_gz(self, tmp_path: Path) -> None:
213213class TestBuildWheel :
214214 def test_wheel_filename_matches_convention (self , tmp_path : Path ) -> None :
215215 whl = build_wheel (b"fake" , tmp_path , "0.15.0" , "linux_amd64" )
216- assert whl .name == "periscope -0.15.0-py3-none-manylinux_2_28_x86_64.whl"
216+ assert whl .name == "periscope_agentsview -0.15.0-py3-none-manylinux_2_28_x86_64.whl"
217217
218218 def test_wheel_is_valid_zip (self , tmp_path : Path ) -> None :
219219 whl = build_wheel (b"fake" , tmp_path , "0.15.0" , "linux_amd64" )
@@ -226,10 +226,10 @@ def test_wheel_contains_expected_files(self, tmp_path: Path) -> None:
226226 assert "periscope/__init__.py" in names
227227 assert "periscope/__main__.py" in names
228228 assert "periscope/bin/periscope" in names
229- assert "periscope -0.15.0.dist-info/METADATA" in names
230- assert "periscope -0.15.0.dist-info/WHEEL" in names
231- assert "periscope -0.15.0.dist-info/entry_points.txt" in names
232- assert "periscope -0.15.0.dist-info/RECORD" in names
229+ assert "periscope_agentsview -0.15.0.dist-info/METADATA" in names
230+ assert "periscope_agentsview -0.15.0.dist-info/WHEEL" in names
231+ assert "periscope_agentsview -0.15.0.dist-info/entry_points.txt" in names
232+ assert "periscope_agentsview -0.15.0.dist-info/RECORD" in names
233233
234234 def test_binary_has_executable_permissions (self , tmp_path : Path ) -> None :
235235 whl = build_wheel (b"fake" , tmp_path , "0.15.0" , "linux_amd64" )
@@ -264,9 +264,9 @@ def test_windows_wheel_uses_exe_binary(self, tmp_path: Path) -> None:
264264 def test_metadata_required_fields (self , tmp_path : Path ) -> None :
265265 whl = build_wheel (b"fake" , tmp_path , "0.15.0" , "linux_amd64" )
266266 with zipfile .ZipFile (whl ) as zf :
267- metadata = zf .read ("periscope -0.15.0.dist-info/METADATA" ).decode ()
267+ metadata = zf .read ("periscope_agentsview -0.15.0.dist-info/METADATA" ).decode ()
268268 assert "Metadata-Version: 2.1" in metadata
269- assert "Name: periscope" in metadata
269+ assert "Name: periscope-agentsview " in metadata
270270 assert "Version: 0.15.0" in metadata
271271 assert "Requires-Python: >=3.9" in metadata
272272 assert "License: MIT" in metadata
@@ -275,21 +275,21 @@ def test_metadata_required_fields(self, tmp_path: Path) -> None:
275275 def test_wheel_file_has_root_is_purelib_false (self , tmp_path : Path ) -> None :
276276 whl = build_wheel (b"fake" , tmp_path , "0.15.0" , "linux_amd64" )
277277 with zipfile .ZipFile (whl ) as zf :
278- wheel_meta = zf .read ("periscope -0.15.0.dist-info/WHEEL" ).decode ()
278+ wheel_meta = zf .read ("periscope_agentsview -0.15.0.dist-info/WHEEL" ).decode ()
279279 assert "Root-Is-Purelib: false" in wheel_meta
280280 assert "Generator: periscope-build-wheels" in wheel_meta
281281
282282 def test_entry_points_correct (self , tmp_path : Path ) -> None :
283283 whl = build_wheel (b"fake" , tmp_path , "0.15.0" , "linux_amd64" )
284284 with zipfile .ZipFile (whl ) as zf :
285- ep = zf .read ("periscope -0.15.0.dist-info/entry_points.txt" ).decode ()
285+ ep = zf .read ("periscope_agentsview -0.15.0.dist-info/entry_points.txt" ).decode ()
286286 assert "[console_scripts]" in ep
287287 assert "periscope = periscope:main" in ep
288288
289289 def test_record_contains_hashes (self , tmp_path : Path ) -> None :
290290 whl = build_wheel (b"fake" , tmp_path , "0.15.0" , "linux_amd64" )
291291 with zipfile .ZipFile (whl ) as zf :
292- record = zf .read ("periscope -0.15.0.dist-info/RECORD" ).decode ()
292+ record = zf .read ("periscope_agentsview -0.15.0.dist-info/RECORD" ).decode ()
293293 # Each non-RECORD entry should have a sha256 hash
294294 lines = [ln for ln in record .splitlines () if ln .strip ()]
295295 record_line = None
@@ -306,7 +306,7 @@ def test_readme_included_in_metadata(self, tmp_path: Path) -> None:
306306 readme = "# periscope\n A great tool."
307307 whl = build_wheel (b"fake" , tmp_path , "0.15.0" , "linux_amd64" , readme = readme )
308308 with zipfile .ZipFile (whl ) as zf :
309- metadata = zf .read ("periscope -0.15.0.dist-info/METADATA" ).decode ()
309+ metadata = zf .read ("periscope_agentsview -0.15.0.dist-info/METADATA" ).decode ()
310310 assert "A great tool." in metadata
311311
312312 def test_init_py_uses_execvp_on_unix (self , tmp_path : Path ) -> None :
@@ -330,12 +330,12 @@ def test_wheel_filename_with_normalized_version(self, tmp_path: Path) -> None:
330330 )
331331 assert (
332332 whl .name
333- == "periscope -0.29.2+periscope.2.258218f5-py3-none-manylinux_2_28_x86_64.whl"
333+ == "periscope_agentsview -0.29.2+periscope.2.258218f5-py3-none-manylinux_2_28_x86_64.whl"
334334 )
335335
336336 def test_wheel_filename_darwin_arm64 (self , tmp_path : Path ) -> None :
337337 whl = build_wheel (b"fake" , tmp_path , "1.0.0" , "darwin_arm64" )
338- assert whl .name == "periscope -1.0.0-py3-none-macosx_11_0_arm64.whl"
338+ assert whl .name == "periscope_agentsview -1.0.0-py3-none-macosx_11_0_arm64.whl"
339339
340340
341341# ---------------------------------------------------------------------------
@@ -381,12 +381,12 @@ def test_correct_wheel_names(self, tmp_path: Path) -> None:
381381 wheels = build_all_wheels (input_dir , output_dir , "0.15.0" )
382382 names = {w .name for w in wheels }
383383 expected = {
384- "periscope -0.15.0-py3-none-manylinux_2_28_x86_64.whl" ,
385- "periscope -0.15.0-py3-none-manylinux_2_28_aarch64.whl" ,
386- "periscope -0.15.0-py3-none-macosx_11_0_x86_64.whl" ,
387- "periscope -0.15.0-py3-none-macosx_11_0_arm64.whl" ,
388- "periscope -0.15.0-py3-none-win_amd64.whl" ,
389- "periscope -0.15.0-py3-none-win_arm64.whl" ,
384+ "periscope_agentsview -0.15.0-py3-none-manylinux_2_28_x86_64.whl" ,
385+ "periscope_agentsview -0.15.0-py3-none-manylinux_2_28_aarch64.whl" ,
386+ "periscope_agentsview -0.15.0-py3-none-macosx_11_0_x86_64.whl" ,
387+ "periscope_agentsview -0.15.0-py3-none-macosx_11_0_arm64.whl" ,
388+ "periscope_agentsview -0.15.0-py3-none-win_amd64.whl" ,
389+ "periscope_agentsview -0.15.0-py3-none-win_arm64.whl" ,
390390 }
391391 assert names == expected
392392
0 commit comments