-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add family package entry point with about information (#261)
- Loading branch information
Showing
3 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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-qip", __version__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
""" Tests for qutip_qip.family. """ | ||
|
||
import re | ||
|
||
from qutip_qip import family | ||
|
||
|
||
class TestVersion: | ||
def test_version(self): | ||
pkg, version = family.version() | ||
assert pkg == "qutip-qip" | ||
assert re.match(r"\d+\.\d+\.\d+.*", version) |