jusi-shell 0.2.1__tar.gz → 0.2.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: jusi-shell
3
- Version: 0.2.1
3
+ Version: 0.2.2
4
4
  Summary: Shell plugin for Jusi
5
5
  Author: Jusi contributors
6
6
  License: MIT License
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "jusi-shell"
7
- version = "0.2.1"
7
+ version = "0.2.2"
8
8
  description = "Shell plugin for Jusi"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
@@ -1,5 +1,5 @@
1
1
  """Jusi 1.0 interactive shell plugin."""
2
2
 
3
- __version__ = "0.2.0"
3
+ __version__ = "0.2.2"
4
4
 
5
5
  __all__ = ["__version__"]
@@ -4,6 +4,7 @@ import json
4
4
  import os
5
5
  from pathlib import Path
6
6
  import pty
7
+ import re
7
8
  import select
8
9
  import subprocess
9
10
  import sys
@@ -24,6 +25,15 @@ from jusi_shell.kernel import configure_jusi_runtime_v1, jusi_kernel_adapter_v1,
24
25
  from jusi_shell.worker import ShellWorker, _followup_body
25
26
 
26
27
 
28
+ class VersionTest(unittest.TestCase):
29
+ def test_runtime_version_matches_project_metadata(self) -> None:
30
+ pyproject = Path(__file__).parents[1] / "pyproject.toml"
31
+ match = re.search(r'^version = "([^"]+)"$', pyproject.read_text(), re.MULTILINE)
32
+
33
+ self.assertIsNotNone(match)
34
+ self.assertEqual(match.group(1), __version__)
35
+
36
+
27
37
  class FakeIPython:
28
38
  def __init__(self) -> None:
29
39
  self.magics_manager = type("MagicsManager", (), {"magics": {"cell": {}}})()
File without changes
File without changes
File without changes