From 139af27a9ef0ea37a5908b667ac1736cf1d7730e Mon Sep 17 00:00:00 2001 From: Jochem Smit Date: Fri, 23 Feb 2024 16:16:00 +0100 Subject: [PATCH] chore: versioning --- pyproject.toml | 7 +++++-- src/ipymolstar/__init__.py | 8 +------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 24e02d6..0ca8f39 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,9 +4,12 @@ build-backend = "hatchling.build" [project] name = "ipymolstar" -version = "0.0.0" dependencies = ["anywidget"] readme = "README.md" +dynamic = ['version'] + +[tool.hatch.version] +path = "src/ipymolstar/__init__.py" [project.optional-dependencies] dev = ["watchfiles", "jupyterlab"] @@ -18,6 +21,6 @@ features = ["dev"] [tool.hatch.build] only-packages = true -artifacts = ["src/ipymolstar/static/*"] +artifacts = ["src/ipymolstar/*"] diff --git a/src/ipymolstar/__init__.py b/src/ipymolstar/__init__.py index eba18a1..2ad767b 100644 --- a/src/ipymolstar/__init__.py +++ b/src/ipymolstar/__init__.py @@ -1,10 +1,4 @@ -import importlib.metadata - -try: - __version__ = importlib.metadata.version("ipymolstar") -except importlib.metadata.PackageNotFoundError: - __version__ = "unknown" - from ipymolstar.widget import PDBeMolstar +__version__ = "0.0.1" __all__ = ["PDBeMolstar"]