Skip to content

Commit

Permalink
adding version and test. (#656)
Browse files Browse the repository at this point in the history
  • Loading branch information
weinbe58 authored Sep 29, 2023
1 parent 6d561af commit 3bba7e9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/bloqade/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
import bloqade.ir as _ir
from bloqade.constants import RB_C6

import importlib.metadata

__version__ = importlib.metadata.version("bloqade")


def tree_depth(depth: int = None):
"""Setting globally maximum depth for tree printing
Expand Down
6 changes: 6 additions & 0 deletions tests/test_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import bloqade


def test_version():
print(bloqade.__version__)
assert bloqade.__version__

0 comments on commit 3bba7e9

Please sign in to comment.