|
1 | | -from pkg_resources import ( |
2 | | - get_distribution as _get_distribution, |
3 | | - DistributionNotFound as _DistributionNotFound, |
4 | | -) |
| 1 | +from pkg_resources import DistributionNotFound as _DistributionNotFound |
| 2 | +from pkg_resources import get_distribution as _get_distribution |
5 | 3 |
|
6 | 4 | try: |
7 | 5 | __version__: str = _get_distribution(__name__).version |
8 | 6 | except _DistributionNotFound: # pragma: no cover |
9 | 7 | # package is not installed |
10 | 8 | __version__ = "0.0.0" |
11 | 9 |
|
12 | | -from .utils import Ref, html_to_vdom |
13 | | - |
14 | | -from .core.component import component, Component |
15 | | -from .core.events import event, Events |
16 | | -from .core.layout import Layout |
17 | | -from .core.vdom import vdom, VdomDict |
| 10 | +from .client.module import Import, Module, install |
18 | 11 | from .core import hooks |
19 | | - |
| 12 | +from .core.component import Component, component |
| 13 | +from .core.events import Events, event |
| 14 | +from .core.layout import Layout |
| 15 | +from .core.vdom import VdomDict, vdom |
| 16 | +from .server.prefab import run |
| 17 | +from .utils import Ref, html_to_vdom |
20 | 18 | from .widgets.html import html |
21 | 19 | from .widgets.utils import hotswap, multiview |
22 | 20 |
|
23 | | -from .client.module import Module, Import, install |
24 | | - |
25 | | -from .server.prefab import run |
26 | | - |
27 | | -from . import widgets |
28 | | - |
29 | 21 | # try to automatically setup the dialect's import hook |
30 | 22 | try: |
| 23 | + import htm |
31 | 24 | import pyalect |
32 | 25 | import tagged |
33 | | - import htm |
34 | 26 | except ImportError: # pragma: no cover |
35 | 27 | pass |
36 | 28 | else: |
|
0 commit comments