Skip to content

Create package for stub files, use sphinx-autoapi for processing.#74

Merged
jonnor merged 2 commits intoemlearn:masterfrom
Josverl:package_stubs
May 10, 2026
Merged

Create package for stub files, use sphinx-autoapi for processing.#74
jonnor merged 2 commits intoemlearn:masterfrom
Josverl:package_stubs

Conversation

@Josverl
Copy link
Copy Markdown
Contributor

@Josverl Josverl commented May 10, 2026

This PR adds a package for the stub files to allow them to be installed locally or from a github+ URI.
Also this would allow the stub package to be published to PyPI if desired.

As stub files are required to be .pyi files they need to be reamed.

To allow the API documentation to be generated This also updated the documentation generation process to utilize sphinx-autoapi.
relevant configuration was migrated from sphinx-autodoc to -autoapi

The same document structure is retained.

Josverl added 2 commits May 10, 2026 17:14
This also requires renaming to .pyi

Signed-off-by: Jos Verlinde <Jos_Verlinde@hotmail.com>
Signed-off-by: Jos Verlinde <Jos_Verlinde@hotmail.com>
@jonnor
Copy link
Copy Markdown
Contributor

jonnor commented May 10, 2026

Hi @Josverl and thank you for the contribution! I built the docs locally with this change, looks all good to me.

@jonnor jonnor merged commit 4fc1311 into emlearn:master May 10, 2026
8 checks passed
@jonnor
Copy link
Copy Markdown
Contributor

jonnor commented May 10, 2026

I will try setting up pushing the stubs package also to PyPI on releases. Maybe next week. Will ping you when it is there, then you can add it to the playground.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants