From a500ea3f3f83849c301b174c597eb48d758e7e4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iy=C3=A1n=20M=C3=A9ndez=20Veiga?= Date: Sat, 1 Feb 2025 18:28:11 +0100 Subject: [PATCH] Include .so compiled files to wheel package Apparently, poetry does not include .so files by default when using packages. To solve this, we add an additional include line that ensures the compiled cpython shared libraries are included in the wheel packages. In addition, tests are also included now in the sdist tarball. --- pyproject.toml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 1facdaa..af85dc5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,11 @@ build-backend = "poetry.core.masonry.api" [tool.poetry] name = "python-constraint2" # when set back to "python-constraint", don't forget to remove '2' in other places (e.g. README) -packages = [{ include = "constraint", from = "." }] +packages = [ + { include = "constraint", from = "." }, + { include = "tests", format = "sdist" } +] +include = [{ path = "constraint/*.so", format = "wheel" }] description = "python-constraint is a module for efficiently solving CSPs (Constraint Solving Problems) over finite domains." version = "2.0.1" # adhere to PEP440 versioning: https://packaging.python.org/en/latest/guides/distributing-packages-using-setuptools/#id55 authors = [