jpterm 0.2.13__tar.gz → 0.2.15__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.
Files changed (158) hide show
  1. jpterm-0.2.15/.github/workflows/publish.yml +39 -0
  2. {jpterm-0.2.13 → jpterm-0.2.15}/PKG-INFO +2 -2
  3. jpterm-0.2.15/jpterm/__init__.py +0 -0
  4. jpterm-0.2.15/publish.py +40 -0
  5. {jpterm-0.2.13 → jpterm-0.2.15}/pyproject.toml +2 -2
  6. {jpterm-0.2.13 → jpterm-0.2.15}/txl/pyproject.toml +1 -1
  7. jpterm-0.2.15/txl/txl/__init__.py +1 -0
  8. jpterm-0.2.13/.github/workflows/publish.yml +0 -60
  9. jpterm-0.2.13/plugins/widgets/txl_widgets/__init__.py +0 -1
  10. jpterm-0.2.13/txl/txl/__init__.py +0 -1
  11. {jpterm-0.2.13 → jpterm-0.2.15}/.github/workflows/test.yml +0 -0
  12. {jpterm-0.2.13 → jpterm-0.2.15}/.gitignore +0 -0
  13. {jpterm-0.2.13 → jpterm-0.2.15}/.pre-commit-config.yaml +0 -0
  14. {jpterm-0.2.13 → jpterm-0.2.15}/CHANGELOG.md +0 -0
  15. {jpterm-0.2.13 → jpterm-0.2.15}/LICENSE +0 -0
  16. {jpterm-0.2.13 → jpterm-0.2.15}/README.md +0 -0
  17. {jpterm-0.2.13 → jpterm-0.2.15}/config.yaml +0 -0
  18. {jpterm-0.2.13 → jpterm-0.2.15}/docs/assets/logo.png +0 -0
  19. {jpterm-0.2.13 → jpterm-0.2.15}/docs/index.md +0 -0
  20. {jpterm-0.2.13 → jpterm-0.2.15}/docs/install.md +0 -0
  21. {jpterm-0.2.13 → jpterm-0.2.15}/docs/plugins/console.md +0 -0
  22. {jpterm-0.2.13 → jpterm-0.2.15}/docs/plugins/notebook_editor.md +0 -0
  23. {jpterm-0.2.13 → jpterm-0.2.15}/docs/usage/CLI.md +0 -0
  24. {jpterm-0.2.13 → jpterm-0.2.15}/docs/usage/key_bindings.md +0 -0
  25. {jpterm-0.2.13 → jpterm-0.2.15}/examples/button.ipynb +0 -0
  26. {jpterm-0.2.13 → jpterm-0.2.15}/examples/demo.md +0 -0
  27. {jpterm-0.2.13 → jpterm-0.2.15}/examples/jupyter.png +0 -0
  28. {jpterm-0.2.13 → jpterm-0.2.15}/examples/plotext.ipynb +0 -0
  29. {jpterm-0.2.13 → jpterm-0.2.15}/examples/plotext2.ipynb +0 -0
  30. {jpterm-0.2.13 → jpterm-0.2.15}/examples/switch.ipynb +0 -0
  31. {jpterm-0.2.13 → jpterm-0.2.15}/examples/widget.ipynb +0 -0
  32. {jpterm-0.2.13 → jpterm-0.2.15}/jpterm/cli.py +0 -0
  33. {jpterm-0.2.13 → jpterm-0.2.15}/mkdocs.yml +0 -0
  34. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/cell/LICENSE.txt +0 -0
  35. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/cell/README.md +0 -0
  36. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/cell/pyproject.toml +0 -0
  37. {jpterm-0.2.13/jpterm → jpterm-0.2.15/plugins/cell/txl_cell}/__init__.py +0 -0
  38. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/cell/txl_cell/components.py +0 -0
  39. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/console/LICENSE.txt +0 -0
  40. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/console/README.md +0 -0
  41. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/console/pyproject.toml +0 -0
  42. {jpterm-0.2.13/plugins/cell/txl_cell → jpterm-0.2.15/plugins/console/txl_console}/__init__.py +0 -0
  43. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/console/txl_console/components.py +0 -0
  44. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/editors/LICENSE.txt +0 -0
  45. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/editors/README.md +0 -0
  46. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/editors/pyproject.toml +0 -0
  47. {jpterm-0.2.13/plugins/console/txl_console → jpterm-0.2.15/plugins/editors/txl_editors}/__init__.py +0 -0
  48. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/editors/txl_editors/components.py +0 -0
  49. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/file_browser/LICENSE.txt +0 -0
  50. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/file_browser/README.md +0 -0
  51. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/file_browser/pyproject.toml +0 -0
  52. {jpterm-0.2.13/plugins/editors/txl_editors → jpterm-0.2.15/plugins/file_browser/txl_file_browser}/__init__.py +0 -0
  53. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/file_browser/txl_file_browser/components.py +0 -0
  54. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/image_viewer/LICENSE.txt +0 -0
  55. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/image_viewer/README.md +0 -0
  56. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/image_viewer/pyproject.toml +0 -0
  57. {jpterm-0.2.13/plugins/file_browser/txl_file_browser → jpterm-0.2.15/plugins/image_viewer/txl_image_viewer}/__init__.py +0 -0
  58. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/image_viewer/txl_image_viewer/components.py +0 -0
  59. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/jpterm/LICENSE.txt +0 -0
  60. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/jpterm/README.md +0 -0
  61. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/jpterm/pyproject.toml +0 -0
  62. {jpterm-0.2.13/plugins/image_viewer/txl_image_viewer → jpterm-0.2.15/plugins/jpterm/txl_jpterm}/__init__.py +0 -0
  63. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/jpterm/txl_jpterm/components.py +0 -0
  64. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/jpterm/txl_jpterm/footer.py +0 -0
  65. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/jpterm/txl_jpterm/header.py +0 -0
  66. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/jpterm/txl_jpterm/jpterm.css +0 -0
  67. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/jpterm/txl_jpterm/main_area.py +0 -0
  68. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/kernel/LICENSE.txt +0 -0
  69. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/kernel/README.md +0 -0
  70. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/kernel/pyproject.toml +0 -0
  71. {jpterm-0.2.13/plugins/jpterm/txl_jpterm → jpterm-0.2.15/plugins/kernel/txl_kernel}/__init__.py +0 -0
  72. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/kernel/txl_kernel/driver.py +0 -0
  73. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/kernel/txl_kernel/message.py +0 -0
  74. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/launcher/LICENSE.txt +0 -0
  75. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/launcher/README.md +0 -0
  76. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/launcher/pyproject.toml +0 -0
  77. {jpterm-0.2.13/plugins/kernel/txl_kernel → jpterm-0.2.15/plugins/launcher/txl_launcher}/__init__.py +0 -0
  78. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/launcher/txl_launcher/components.py +0 -0
  79. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/local_contents/LICENSE.txt +0 -0
  80. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/local_contents/README.md +0 -0
  81. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/local_contents/pyproject.toml +0 -0
  82. {jpterm-0.2.13/plugins/launcher/txl_launcher → jpterm-0.2.15/plugins/local_contents/txl_local_contents}/__init__.py +0 -0
  83. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/local_contents/txl_local_contents/components.py +0 -0
  84. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/local_kernels/LICENSE.txt +0 -0
  85. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/local_kernels/README.md +0 -0
  86. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/local_kernels/pyproject.toml +0 -0
  87. {jpterm-0.2.13/plugins/local_contents/txl_local_contents → jpterm-0.2.15/plugins/local_kernels/txl_local_kernels}/__init__.py +0 -0
  88. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/local_kernels/txl_local_kernels/components.py +0 -0
  89. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/local_kernels/txl_local_kernels/connect.py +0 -0
  90. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/local_kernels/txl_local_kernels/driver.py +0 -0
  91. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/local_kernels/txl_local_kernels/kernelspec.py +0 -0
  92. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/local_kernels/txl_local_kernels/message.py +0 -0
  93. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/local_kernels/txl_local_kernels/paths.py +0 -0
  94. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/local_terminals/LICENSE.txt +0 -0
  95. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/local_terminals/README.md +0 -0
  96. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/local_terminals/pyproject.toml +0 -0
  97. {jpterm-0.2.13/plugins/local_kernels/txl_local_kernels → jpterm-0.2.15/plugins/local_terminals/txl_local_terminals}/__init__.py +0 -0
  98. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/local_terminals/txl_local_terminals/components.py +0 -0
  99. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/local_terminals/txl_local_terminals/terminal.py +0 -0
  100. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/local_terminals/txl_local_terminals/win_terminal.py +0 -0
  101. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/markdown_viewer/LICENSE.txt +0 -0
  102. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/markdown_viewer/README.md +0 -0
  103. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/markdown_viewer/pyproject.toml +0 -0
  104. {jpterm-0.2.13/plugins/local_terminals/txl_local_terminals → jpterm-0.2.15/plugins/markdown_viewer/txl_markdown_viewer}/__init__.py +0 -0
  105. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/markdown_viewer/txl_markdown_viewer/components.py +0 -0
  106. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/notebook_editor/LICENSE.txt +0 -0
  107. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/notebook_editor/README.md +0 -0
  108. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/notebook_editor/pyproject.toml +0 -0
  109. {jpterm-0.2.13/plugins/markdown_viewer/txl_markdown_viewer → jpterm-0.2.15/plugins/notebook_editor/txl_notebook_editor}/__init__.py +0 -0
  110. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/notebook_editor/txl_notebook_editor/components.py +0 -0
  111. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/notebook_viewer/LICENSE.txt +0 -0
  112. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/notebook_viewer/README.md +0 -0
  113. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/notebook_viewer/pyproject.toml +0 -0
  114. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/notebook_viewer/txl_notebook_viewer/__init__.py +0 -0
  115. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/notebook_viewer/txl_notebook_viewer/components.py +0 -0
  116. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/remote_contents/LICENSE.txt +0 -0
  117. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/remote_contents/README.md +0 -0
  118. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/remote_contents/pyproject.toml +0 -0
  119. {jpterm-0.2.13/plugins/notebook_editor/txl_notebook_editor → jpterm-0.2.15/plugins/remote_contents/txl_remote_contents}/__init__.py +0 -0
  120. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/remote_contents/txl_remote_contents/components.py +0 -0
  121. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/remote_kernels/LICENSE.txt +0 -0
  122. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/remote_kernels/README.md +0 -0
  123. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/remote_kernels/pyproject.toml +0 -0
  124. {jpterm-0.2.13/plugins/remote_contents/txl_remote_contents → jpterm-0.2.15/plugins/remote_kernels/txl_remote_kernels}/__init__.py +0 -0
  125. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/remote_kernels/txl_remote_kernels/components.py +0 -0
  126. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/remote_kernels/txl_remote_kernels/driver.py +0 -0
  127. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/remote_kernels/txl_remote_kernels/message.py +0 -0
  128. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/remote_terminals/LICENSE.txt +0 -0
  129. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/remote_terminals/README.md +0 -0
  130. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/remote_terminals/pyproject.toml +0 -0
  131. {jpterm-0.2.13/plugins/remote_kernels/txl_remote_kernels → jpterm-0.2.15/plugins/remote_terminals/txl_remote_terminals}/__init__.py +0 -0
  132. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/remote_terminals/txl_remote_terminals/components.py +0 -0
  133. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/terminal/LICENSE.txt +0 -0
  134. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/terminal/README.md +0 -0
  135. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/terminal/pyproject.toml +0 -0
  136. {jpterm-0.2.13/plugins/remote_terminals/txl_remote_terminals → jpterm-0.2.15/plugins/terminal/txl_terminal}/__init__.py +0 -0
  137. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/terminal/txl_terminal/components.py +0 -0
  138. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/text_editor/LICENSE.txt +0 -0
  139. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/text_editor/README.md +0 -0
  140. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/text_editor/pyproject.toml +0 -0
  141. {jpterm-0.2.13/plugins/terminal/txl_terminal → jpterm-0.2.15/plugins/text_editor/txl_text_editor}/__init__.py +0 -0
  142. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/text_editor/txl_text_editor/components.py +0 -0
  143. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/text_viewer/LICENSE.txt +0 -0
  144. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/text_viewer/README.md +0 -0
  145. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/text_viewer/pyproject.toml +0 -0
  146. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/text_viewer/txl_text_viewer/__init__.py +0 -0
  147. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/text_viewer/txl_text_viewer/components.py +0 -0
  148. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/widgets/LICENSE.txt +0 -0
  149. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/widgets/README.md +0 -0
  150. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/widgets/pyproject.toml +0 -0
  151. {jpterm-0.2.13/plugins/text_editor/txl_text_editor → jpterm-0.2.15/plugins/widgets/txl_widgets}/__init__.py +0 -0
  152. {jpterm-0.2.13 → jpterm-0.2.15}/plugins/widgets/txl_widgets/components.py +0 -0
  153. {jpterm-0.2.13 → jpterm-0.2.15}/txl/LICENSE.txt +0 -0
  154. {jpterm-0.2.13 → jpterm-0.2.15}/txl/README.md +0 -0
  155. {jpterm-0.2.13 → jpterm-0.2.15}/txl/txl/app.py +0 -0
  156. {jpterm-0.2.13 → jpterm-0.2.15}/txl/txl/base.py +0 -0
  157. {jpterm-0.2.13 → jpterm-0.2.15}/txl/txl/cli.py +0 -0
  158. {jpterm-0.2.13 → jpterm-0.2.15}/txl/txl/text_input.py +0 -0
@@ -0,0 +1,39 @@
1
+ name: publish
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+
7
+ jobs:
8
+ build:
9
+ name: Build the source tarball and the wheel
10
+ runs-on: ubuntu-latest
11
+ environment: release
12
+ steps:
13
+ - uses: actions/checkout@v4
14
+ - name: Set up Python
15
+ uses: actions/setup-python@v5
16
+ with:
17
+ python-version: 3.x
18
+ - name: Install dependencies
19
+ run: pip install hatch httpx
20
+ - name: Create packages
21
+ run: python publish.py
22
+ - name: Archive packages
23
+ uses: actions/upload-artifact@v4
24
+ with:
25
+ name: dist
26
+ path: dist
27
+
28
+ publish:
29
+ name: Publish build artifacts to PyPI
30
+ needs: build
31
+ runs-on: ubuntu-latest
32
+ environment: release
33
+ permissions:
34
+ id-token: write
35
+ steps:
36
+ - name: Retrieve packages
37
+ uses: actions/download-artifact@v4
38
+ - name: Upload packages
39
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: jpterm
3
- Version: 0.2.13
3
+ Version: 0.2.15
4
4
  Summary: Jupyter in the terminal
5
5
  Project-URL: Homepage, https://github.com/davidbrochart/jpterm
6
6
  Author-email: David Brochart <david.brochart@gmail.com>
@@ -35,7 +35,7 @@ Requires-Dist: txl-remote-terminals==0.2.13
35
35
  Requires-Dist: txl-terminal==0.2.13
36
36
  Requires-Dist: txl-text-editor==0.2.13
37
37
  Requires-Dist: txl-widgets==0.2.13
38
- Requires-Dist: txl==0.2.13
38
+ Requires-Dist: txl==0.2.15
39
39
  Provides-Extra: docs
40
40
  Requires-Dist: mkdocs; extra == 'docs'
41
41
  Requires-Dist: mkdocs-material; extra == 'docs'
File without changes
@@ -0,0 +1,40 @@
1
+ import subprocess
2
+ from pathlib import Path
3
+
4
+ import httpx
5
+ import tomllib
6
+
7
+
8
+ def run(cmd: str, cwd: str | None = None) -> list[str]:
9
+ res = subprocess.run(cmd.split(), capture_output=True, cwd=cwd)
10
+ return res.stdout.decode().splitlines()
11
+
12
+
13
+ pyproject = tomllib.load(open("pyproject.toml", "rb"))
14
+ for dependency in pyproject["project"]["dependencies"]:
15
+ idx = dependency.find("==")
16
+ version = dependency[idx + 2:].strip()
17
+ package = dependency[:idx].strip()
18
+ if package.startswith("txl"):
19
+ response = httpx.get(f"https://pypi.org/pypi/{package}/json")
20
+ releases = response.json()["releases"].keys()
21
+ if version not in releases:
22
+ print(f"Building {package}-{version}")
23
+ package_dir = Path()
24
+ dist_dir = "../dist"
25
+ if package != "txl":
26
+ package_dir /= "plugins"
27
+ dist_dir = f"../{dist_dir}"
28
+ package_dir /= package
29
+ run(f"hatch build {dist_dir}", cwd=str(package_dir))
30
+ for path in Path("dist").iterdir():
31
+ if f"{package}-{version}" in path.name:
32
+ break
33
+ else:
34
+ raise RuntimeError(
35
+ f"Wrong version for package {package}: did you forget to bump it to {version}?"
36
+ )
37
+
38
+
39
+ print("Building jpterm")
40
+ run("hatch build")
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "jpterm"
7
- dynamic = ["version"]
7
+ version = "0.2.15"
8
8
  description = "Jupyter in the terminal"
9
9
  readme = "README.md"
10
10
  license = { text = "MIT" }
@@ -25,7 +25,7 @@ keywords = [
25
25
  ]
26
26
  dependencies = [
27
27
  "rich-click >=1.6.0",
28
- "txl ==0.2.13",
28
+ "txl ==0.2.15",
29
29
  "txl_cell ==0.2.13",
30
30
  "txl_console ==0.2.13",
31
31
  "txl_editors ==0.2.13",
@@ -23,7 +23,7 @@ classifiers = [
23
23
  ]
24
24
  dependencies = [
25
25
  "asphalt >=4.12.0,<5",
26
- "textual[syntax] >=0.70.0,<0.71.0",
26
+ "textual[syntax] >=0.72.0,<0.73.0",
27
27
  ]
28
28
  dynamic = ["version"]
29
29
 
@@ -0,0 +1 @@
1
+ __version__ = "0.2.15"
@@ -1,60 +0,0 @@
1
- name: publish
2
-
3
- on:
4
- release:
5
- types: [published]
6
-
7
- jobs:
8
- build:
9
- name: Build the source tarball and the wheel
10
- runs-on: ubuntu-latest
11
- environment: release
12
- steps:
13
- - uses: actions/checkout@v4
14
- - name: Set up Python
15
- uses: actions/setup-python@v5
16
- with:
17
- python-version: 3.x
18
- - name: Install dependencies
19
- run: pip install hatch
20
- - name: Create packages
21
- run: |
22
- hatch build
23
- cd txl; hatch build ../dist; cd ..
24
- cd plugins/cell; hatch build ../../dist; cd ../..
25
- cd plugins/console; hatch build ../../dist; cd ../..
26
- cd plugins/editors; hatch build ../../dist; cd ../..
27
- cd plugins/file_browser; hatch build ../../dist; cd ../..
28
- cd plugins/image_viewer; hatch build ../../dist; cd ../..
29
- cd plugins/jpterm; hatch build ../../dist; cd ../..
30
- cd plugins/kernel; hatch build ../../dist; cd ../..
31
- cd plugins/local_contents; hatch build ../../dist; cd ../..
32
- cd plugins/local_terminals; hatch build ../../dist; cd ../..
33
- cd plugins/local_kernels; hatch build ../../dist; cd ../..
34
- cd plugins/notebook_editor; hatch build ../../dist; cd ../..
35
- cd plugins/remote_contents; hatch build ../../dist; cd ../..
36
- cd plugins/remote_terminals; hatch build ../../dist; cd ../..
37
- cd plugins/remote_kernels; hatch build ../../dist; cd ../..
38
- cd plugins/text_editor; hatch build ../../dist; cd ../..
39
- cd plugins/markdown_viewer; hatch build ../../dist; cd ../..
40
- cd plugins/terminal; hatch build ../../dist; cd ../..
41
- cd plugins/launcher; hatch build ../../dist; cd ../..
42
- cd plugins/widgets; hatch build ../../dist; cd ../..
43
- - name: Archive packages
44
- uses: actions/upload-artifact@v4
45
- with:
46
- name: dist
47
- path: dist
48
-
49
- publish:
50
- name: Publish build artifacts to PyPI
51
- needs: build
52
- runs-on: ubuntu-latest
53
- environment: release
54
- permissions:
55
- id-token: write
56
- steps:
57
- - name: Retrieve packages
58
- uses: actions/download-artifact@v4
59
- - name: Upload packages
60
- uses: pypa/gh-action-pypi-publish@release/v1
@@ -1 +0,0 @@
1
- __version__ = "0.2.13"
@@ -1 +0,0 @@
1
- __version__ = "0.2.13"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes