Skip to content

Commit

Permalink
chore: versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
Jhsmit committed Feb 23, 2024
1 parent 46a76de commit 139af27
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
7 changes: 5 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand All @@ -18,6 +21,6 @@ features = ["dev"]

[tool.hatch.build]
only-packages = true
artifacts = ["src/ipymolstar/static/*"]
artifacts = ["src/ipymolstar/*"]


8 changes: 1 addition & 7 deletions src/ipymolstar/__init__.py
Original file line number Diff line number Diff line change
@@ -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"]

0 comments on commit 139af27

Please sign in to comment.