Skip to content

Copy stubs to bindings path after generation at build#18

Merged
JPEWdev merged 2 commits intospdx:mainfrom
bact:copy-stub
Feb 25, 2026
Merged

Copy stubs to bindings path after generation at build#18
JPEWdev merged 2 commits intospdx:mainfrom
bact:copy-stub

Conversation

@bact
Copy link
Collaborator

@bact bact commented Feb 23, 2026

  • Add *.pyi to artifacts list in build script settings,
    to instruct the build script to copy type stubs (if any) to output path.
  • Add py.typed PEP 561 marker file

The marker file is to indicate type support.
While the actual type information are in the stubs.

This will assist static type checkers and code completion.

Add *.pyi to artifacts list in build script setting

Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
PEP 561 marker file to signal that the library has type information to support type checking

Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
@bact bact added the enhancement New feature or request label Feb 25, 2026
@JPEWdev JPEWdev merged commit 2ec512b into spdx:main Feb 25, 2026
4 checks passed
@bact bact deleted the copy-stub branch February 25, 2026 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants