Skip to content

Add a package option to the Python interface - #49

Merged
glopesdev merged 1 commit into
harp-tech:mainfrom
glopesdev:python-package-option
Sep 21, 2026
Merged

glopesdev merged 1 commit into
harp-tech:mainfrom
glopesdev:python-package-option

Conversation

@glopesdev

@glopesdev glopesdev commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

Adds a --package option to generate interface python. With this option set, the interface is written as __init__.py, together with a py.typed marker that declares the package as typed. The output directory alone then determines the import path, and a device repository needs no re-export module.

The generated source is identical in both modes and only the file name differs. The default is unchanged, so an existing invocation still produces a single device.py and no marker.

With the new --package option the interface is generated as __init__.py
together with a py.typed marker. The output directory alone then
determines the import path, and a device repository needs no re-export
module. The default is unchanged.
@glopesdev glopesdev added the feature New planned feature label Sep 21, 2026
@glopesdev
glopesdev merged commit 77575cc into harp-tech:main Sep 21, 2026
8 checks passed
@glopesdev
glopesdev deleted the python-package-option branch September 21, 2026 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New planned feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant