Skip to content

Commit

Permalink
Merge pull request #75 from Ericgig/misc.familly
Browse files Browse the repository at this point in the history
Add entry point for qutip-family
  • Loading branch information
Ericgig authored Jan 15, 2025
2 parents c52d9e5 + addcfdd commit b6f6bc1
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
4 changes: 4 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ setup_requires =
[options.packages.find]
where = src

[options.entry_points]
qutip.family =
qutip_jax = qutip_jax.family

[options.extras_require]
tests =
pytest>=6.0
Expand Down
8 changes: 8 additions & 0 deletions src/qutip_jax/family.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
"""QuTiP family package entry point."""

from . import __version__


def version():
"""Return information to include in qutip.about()."""
return "qutip-jax", __version__
12 changes: 12 additions & 0 deletions tests/test_family.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
""" Tests for qutip_jax.family. """

import re

from qutip_jax import family


class TestVersion:
def test_version(self):
pkg, version = family.version()
assert pkg == "qutip-jax"
assert re.match(r"\d+\.\d+\.\d+.*", version)

0 comments on commit b6f6bc1

Please sign in to comment.