File tree Expand file tree Collapse file tree 3 files changed +24
-0
lines changed Expand file tree Collapse file tree 3 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,10 @@ setup_requires =
38
38
[options.packages.find]
39
39
where = src
40
40
41
+ [options.entry_points]
42
+ qutip.family =
43
+ qutip_qtrl = qutip_qtrl.family
44
+
41
45
[options.extras_require]
42
46
tests =
43
47
pytest>=5.2
Original file line number Diff line number Diff line change
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__
Original file line number Diff line number Diff line change
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 )
You can’t perform that action at this time.
0 commit comments