From 8aa38659a6f6123398269cf44f378f8fd908569c Mon Sep 17 00:00:00 2001 From: Gagan Deep Date: Tue, 4 Aug 2026 21:53:31 +0530 Subject: [PATCH] fix: check py.typed on disk instead of via pip show pip show -f doesn't reliably list py.typed in the package directory. Check the file directly on disk where the package is installed. --- .github/workflows/smoke-test.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/smoke-test.yml b/.github/workflows/smoke-test.yml index f75e99c..1be41d3 100644 --- a/.github/workflows/smoke-test.yml +++ b/.github/workflows/smoke-test.yml @@ -96,12 +96,9 @@ jobs: - name: Verify py.typed ships in wheel run: | python -c " - import zipfile, modelfuzz, pathlib - wheel = next(pathlib.Path(modelfuzz.__path__[0]).parent.glob('modelfuzz-*.dist-info/../..')) - # Find the wheel via pip show - import subprocess, json - loc = subprocess.check_output(['pip', 'show', '-f', 'modelfuzz'], text=True) - assert 'py.typed' in loc, 'py.typed not found in installed files' + import pathlib, modelfuzz + marker = pathlib.Path(modelfuzz.__path__[0]) / 'py.typed' + assert marker.exists(), f'py.typed not found at {marker}' print('py.typed: present') "