Skip to content

Commit

Permalink
Move sources to src, make package version static (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbrochart authored Sep 12, 2024
1 parent a4df6c5 commit 3e7be53
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 18 deletions.
14 changes: 1 addition & 13 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "ypywidgets"
dynamic = ["version"]
version = "0.9.0"
description = "Y-based Jupyter widgets for Python"
readme = "README.md"
license = "MIT"
Expand All @@ -31,15 +31,3 @@ dev = [
"pytest",
"pytest-asyncio",
]

[tool.hatch.version]
path = "ypywidgets/__init__.py"

[tool.hatch.build.targets.sdist]
include = [
"/ypywidgets",
]

[tool.hatch.build.targets.wheel]
ignore-vcs = true
packages = ["ypywidgets"]
10 changes: 10 additions & 0 deletions src/ypywidgets/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import importlib.metadata

from .widget import Widget as Widget
from .reactive import Reactive as Reactive


try:
__version__ = importlib.metadata.version("ypywidgets")
except importlib.metadata.PackageNotFoundError:
__version__ = "unknown"
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 0 additions & 5 deletions ypywidgets/__init__.py

This file was deleted.

0 comments on commit 3e7be53

Please sign in to comment.