File tree Expand file tree Collapse file tree 6 files changed +11
-18
lines changed Expand file tree Collapse file tree 6 files changed +11
-18
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44
55[project ]
66name = " ypywidgets"
7- dynamic = [ " version " ]
7+ version = " 0.9.0 "
88description = " Y-based Jupyter widgets for Python"
99readme = " README.md"
1010license = " MIT"
@@ -31,15 +31,3 @@ dev = [
3131 " pytest" ,
3232 " pytest-asyncio" ,
3333]
34-
35- [tool .hatch .version ]
36- path = " ypywidgets/__init__.py"
37-
38- [tool .hatch .build .targets .sdist ]
39- include = [
40- " /ypywidgets" ,
41- ]
42-
43- [tool .hatch .build .targets .wheel ]
44- ignore-vcs = true
45- packages = [" ypywidgets" ]
Original file line number Diff line number Diff line change 1+ import importlib .metadata
2+
3+ from .widget import Widget as Widget
4+ from .reactive import Reactive as Reactive
5+
6+
7+ try :
8+ __version__ = importlib .metadata .version ("ypywidgets" )
9+ except importlib .metadata .PackageNotFoundError :
10+ __version__ = "unknown"
File renamed without changes.
File renamed without changes.
File renamed without changes.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments