diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 93f2dd6..d082ffd 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -10,6 +10,9 @@ permissions: jobs: deploy: runs-on: ubuntu-latest + + env: + SEAMLESS_VERSION_ONLY: true steps: - uses: actions/checkout@v4 diff --git a/seamless/__init__.py b/seamless/__init__.py index 4295ac3..ffe50c2 100644 --- a/seamless/__init__.py +++ b/seamless/__init__.py @@ -1,10 +1,10 @@ -from .context import Context -from .core import JS -from .rendering import render -from .core import Component -from .html import * +import os + from .version import version as __version__ +if not os.environ.get("SEAMLESS_VERSION_ONLY", False): + from ._init import * + __all__ = [ "Component", "A", @@ -79,4 +79,5 @@ "Context", "JS", "render", + "__version__", ] diff --git a/seamless/_init.py b/seamless/_init.py new file mode 100644 index 0000000..4295ac3 --- /dev/null +++ b/seamless/_init.py @@ -0,0 +1,82 @@ +from .context import Context +from .core import JS +from .rendering import render +from .core import Component +from .html import * +from .version import version as __version__ + +__all__ = [ + "Component", + "A", + "Abbr", + "Address", + "Area", + "Article", + "Aside", + "B", + "Base", + "BlockQuote", + "Body", + "Br", + "Button", + "Canvas", + "Cite", + "Code", + "Col", + "Div", + "Em", + "Embed", + "Footer", + "Form", + "Fragment", + "H1", + "H2", + "H3", + "H4", + "H5", + "H6", + "Head", + "Header", + "Hr", + "Html", + "I", + "Img", + "Input", + "Label", + "Li", + "Link", + "Main", + "Meta", + "Nav", + "Ol", + "Option", + "P", + "Param", + "Pre", + "Script", + "Section", + "Select", + "Small", + "Source", + "Span", + "Strong", + "Style", + "Sub", + "Sup", + "Table", + "TBody", + "Td", + "TextArea", + "Th", + "THead", + "Time", + "Title", + "Tr", + "Track", + "U", + "Ul", + "Wbr", + "Context", + "JS", + "render", +]