From 3b5e909909fc5eeb18fbe26281fd94cc670cad76 Mon Sep 17 00:00:00 2001 From: UebelAndre Date: Wed, 12 Aug 2026 17:18:58 -0700 Subject: [PATCH] Publish wheels over sdist --- .github/workflows/push.yml | 4 ++-- setup.py | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 424132a91..479eea2b3 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -194,7 +194,7 @@ jobs: - name: '🐍 Install dependencies' run: | pip install -U pip - pip install -U setuptools wheel twine + pip install -U build twine - name: '🚀 Build and deploy to PyPI' if: github.repository == 'VUnit/vunit' @@ -203,5 +203,5 @@ jobs: TWINE_PASSWORD: ${{ secrets.VUNIT_HDL_PYPI_DEPLOY_TOKEN }} run: | ./tools/release.py validate - python setup.py sdist + python -m build --wheel twine upload dist/* diff --git a/setup.py b/setup.py index db93bbc7c..fb06e0e19 100644 --- a/setup.py +++ b/setup.py @@ -41,6 +41,8 @@ def find_all_files(directory, endings=None): DATA_FILES += find_all_files(str(Path("vunit") / "vhdl")) DATA_FILES += find_all_files(str(Path("vunit") / "verilog"), endings=[".v", ".sv", ".svh"]) DATA_FILES = [os.path.relpath(file_name, "vunit") for file_name in DATA_FILES] +# PEP 561 marker so downstream projects can pick up vunit's type hints. +DATA_FILES.append("py.typed") setup( version=version(),