koatl-kernel 1.0.1__tar.gz → 1.0.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: koatl-kernel
3
- Version: 1.0.1
3
+ Version: 1.0.2
4
4
  Summary: Koatl kernel for Jupyter
5
5
  Project-URL: Homepage, https://github.com/skkestrel/koatl
6
6
  Author-email: Kevin <skkestrel@gmail.com>
@@ -32,6 +32,7 @@ Classifier: Programming Language :: Python :: 3
32
32
  Requires-Python: >=3.8
33
33
  Requires-Dist: ipykernel
34
34
  Requires-Dist: jupyter-client
35
+ Requires-Dist: jupyter-console
35
36
  Requires-Dist: koatl
36
37
  Provides-Extra: test
37
38
  Requires-Dist: jupyter-kernel-test; extra == 'test'
@@ -12,12 +12,6 @@ import shutil
12
12
  from jupyter_client.kernelspec import KernelSpecManager
13
13
  from tempfile import TemporaryDirectory
14
14
 
15
- kernel_json = {
16
- "argv": [sys.executable, "-m", "koatl_kernel", "-f", "{connection_file}"],
17
- "display_name": "Koatl",
18
- "language": "koatl",
19
- }
20
-
21
15
 
22
16
  class CustomHook(BuildHookInterface):
23
17
  def initialize(self, version, build_data):
@@ -25,6 +19,16 @@ class CustomHook(BuildHookInterface):
25
19
  sys.path.insert(0, here)
26
20
  prefix = os.path.join(here, "data_kernelspec")
27
21
 
22
+ kernel_json = {
23
+ "argv": [sys.executable, "-m", "koatl_kernel", "-f", "{connection_file}"],
24
+ "display_name": "Koatl",
25
+ "language": "koatl",
26
+ }
27
+
28
+ # taken from ipykernel
29
+ if version == "standard":
30
+ kernel_json["argv"][0] = "python"
31
+
28
32
  with TemporaryDirectory() as td:
29
33
  os.chmod(td, 0o755) # Starts off as 700, not user readable
30
34
  with open(os.path.join(td, "kernel.json"), "w") as f:
@@ -1,3 +1,3 @@
1
- __version__ = "1.0.1"
1
+ __version__ = "1.0.2"
2
2
 
3
3
  from .kernel import KoatlKernel
@@ -24,6 +24,7 @@ requires-python = ">=3.8"
24
24
  dependencies = [
25
25
  "ipykernel",
26
26
  "jupyter_client",
27
+ "jupyter_console",
27
28
  "koatl"
28
29
  ]
29
30
 
File without changes
File without changes
File without changes