From 2ba0c40f034d3028897481cd9fad9f6a016bf8a8 Mon Sep 17 00:00:00 2001 From: Amnon Grossman Date: Wed, 20 Aug 2025 14:02:55 +0300 Subject: [PATCH 1/2] Fix packaging configuration to include all subdirectories - Change packages = ["onelogin"] to packages = {find = {}} - This ensures onelogin.api and onelogin.models are included in the package - Fixes ImportError: No module named 'onelogin.api' --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 2a7177b..c6e180a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -34,7 +34,7 @@ requires = ["setuptools>=67.7.1", "wheel"] build-backend = "setuptools.build_meta" [tool.setuptools] -packages = ["onelogin"] +packages = {find = {}} package-dir = {"" = "."} include-package-data = true From 13b0dd747fe17208dbbfd2fcd5f228782c28e5f5 Mon Sep 17 00:00:00 2001 From: amnon-jazz Date: Tue, 26 Aug 2025 11:28:51 +0300 Subject: [PATCH 2/2] pyproject.toml: exclude tests and docs directories from package Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index c6e180a..ee8b9e9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -34,7 +34,7 @@ requires = ["setuptools>=67.7.1", "wheel"] build-backend = "setuptools.build_meta" [tool.setuptools] -packages = {find = {}} +packages = {find = {exclude = ["tests*", "docs*"]}} package-dir = {"" = "."} include-package-data = true