From 540e7925e90a95ce3a0b5958b5e2b3ad4621d950 Mon Sep 17 00:00:00 2001 From: f-trycua Date: Sun, 2 Feb 2025 13:02:26 +0100 Subject: [PATCH] Fix lume binary not in wheel --- .github/workflows/publish.yml | 9 +++++++++ MANIFEST.in | 1 + pyproject.toml | 9 ++++++++- 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 MANIFEST.in diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 7922c10..2524815 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -60,4 +60,13 @@ jobs: run: | poetry config pypi-token.pypi $PYPI_TOKEN poetry build + + # Verify the binary is in the wheel + python -m pip install wheel + wheel unpack dist/*.whl --dest temp_wheel + echo "Listing contents of wheel directory:" + find temp_wheel -type f + test -f temp_wheel/pylume-*/pylume/lume || { echo "lume binary not found in wheel"; exit 1; } + rm -rf temp_wheel + poetry publish diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..0000ac0 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1 @@ +include pylume/lume \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index c528d16..a933529 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,8 +18,15 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", ] + +packages = [ + { include = "pylume" } +] + +# This should be at the root level of tool.poetry include = [ - "pylume/lume" + { path = "pylume/lume", format = "sdist" }, + { path = "pylume/lume", format = "wheel" } ] [tool.poetry.dependencies]