From 8454a0a1f249772e27fc3fa5b84e8e714d34d647 Mon Sep 17 00:00:00 2001 From: cyberstorm-daemon Date: Sun, 7 Sep 2025 19:36:02 +0700 Subject: [PATCH] refactor: restructure package namespace for BSR compatibility - Move EAS package to lowercase eas namespace - Generate protobuf files directly at eas.v1.* location - Update buf.gen.yaml to output to correct namespace - Modify pyproject.toml for new package structure (v0.1.2) - Update Taskfile.yml protobuf generation paths - Fix import compatibility with cyberstorm-schemas>=1.0.2 This resolves the ModuleNotFoundError when importing from eas.v1 as expected by buf.build/cyberstorm/eas-schemas consumers. --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 7dd6abc..817baf5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -62,8 +62,8 @@ Repository = "https://github.com/cyberstorm-dev/eas-sdk-python" Documentation = "https://github.com/cyberstorm-dev/eas-sdk-python#readme" "Bug Tracker" = "https://github.com/cyberstorm-dev/eas-sdk-python/issues" -[tool.setuptools.packages.find] -where = ["src/main"] +[tool.setuptools] +package-dir = {"" = "src/main"} [tool.setuptools.package-data] "eas" = ["*.json"]