Skip to content

Commit 76e0bf9

Browse files
committed
Merge branch 'master' into qutip-qtrl-0.1.X
2 parents 24e0515 + b1e6746 commit 76e0bf9

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

setup.cfg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ setup_requires =
3838
[options.packages.find]
3939
where = src
4040

41+
[options.entry_points]
42+
qutip.family =
43+
qutip_qtrl = qutip_qtrl.family
44+
4145
[options.extras_require]
4246
tests =
4347
pytest>=5.2

src/qutip_qtrl/family.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
"""QuTiP family package entry point."""
2+
3+
from . import __version__
4+
5+
6+
def version():
7+
"""Return information to include in qutip.about()."""
8+
return "qutip-qtrl", __version__

tests/test_family.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
"""Tests for qutip_qtrl.family."""
2+
3+
import re
4+
5+
from qutip_qtrl import family
6+
7+
8+
class TestVersion:
9+
def test_version(self):
10+
pkg, version = family.version()
11+
assert pkg == "qutip-qtrl"
12+
assert re.match(r"\d+\.\d+\.\d+.*", version)

0 commit comments

Comments
 (0)