Skip to content

Generated stubs inject sys.path globally and shadow other packages #44

@zeevdr

Description

@zeevdr

Description

sdk/src/opendecree/_generated/__init__.py:13-18 calls sys.path.insert at import time, exposing <site-packages>/opendecree/_generated globally. Any other package named centralconfig or v1 in the same environment is shadowed — including the server's own stubs in a shared venv. This is a blocker for shipping the SDK to PyPI.

Acceptance criteria

  • Regenerate stubs with absolute imports (from opendecree._generated.centralconfig.v1 import ...) — buf plugin option or post-process step
  • Drop the sys.path injection entirely
  • Add a test that imports both the SDK and a hypothetical second centralconfig package and asserts no shadowing

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority: P0Blocks alpha or releasesize: MModerate — a day or two, clear scope

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions