Skip to content

Commit ec8a884

Browse files
author
Alan
committed
Add a logo and add jupyter-releaser as a dev dependency.
1 parent 1112d49 commit ec8a884

File tree

8 files changed

+114
-74
lines changed

8 files changed

+114
-74
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ jobs:
105105
- name: Install Python
106106
uses: actions/setup-python@v5
107107
with:
108-
python-version: '3.9'
108+
python-version: '3.11'
109109
architecture: 'x64'
110110
- uses: actions/download-artifact@v4
111111
with:

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# jupyterlite-async-kernel
22

3-
[![Github Actions Status](https://github.com/jupyterlite/async-kernel/workflows/Build/badge.svg)](https://github.com/jupyterlite/async-kernel/actions/workflows/build.yml)
4-
53
An asynchronous python kernel for JupyterLite.
64

75
## Requirements
@@ -65,7 +63,7 @@ Filename: `'jupyter-lite.json'`
6563
"name": "async",
6664
"display_name": "Python (async)",
6765
"kernelSettings": { "shell.timeout": "1" },
68-
"startInterfaceScript": "import micropip\nimport pathlib\n\ndeps = [f'emfs:./{p}' for p in pathlib.Path('.').glob('**/*.whl')]\ndeps.append('async-kernel')\nawait micropip.install(deps, keep_going=True, reinstall=True)\nfrom async_kernel.interface.callable import CallableKernelInterface\n\nCallableKernelInterface(settings).start(send=send, stopped=stopped)",
66+
"startInterfaceScript": "import micropip\nimport pathlib\n\ndeps = [f'emfs:./{p}' for p in pathlib.Path('.').glob('**/*.whl')]\ndeps.append('async-kernel')\nawait micropip.install(deps, keep_going=True, reinstall=True)\nimport async_kernel.interface\n\nasync_kernel.interface.start_kernel_callable_interface(send=send, stopped=stopped, settings=settings)",
6967
"kernelPostStartScript": ""
7068
}
7169
}

async-kernel-logo.svg

Lines changed: 0 additions & 62 deletions
This file was deleted.

copy_logo_to_defaults.py

100755100644
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#!/usr/bin/python3
2-
31
import base64
42
import json
53
import pathlib
@@ -8,6 +6,6 @@
86
cfg = folder.joinpath('src', 'defaults.json')
97
data = json.loads(cfg.read_bytes())
108

11-
img_data = folder.joinpath("async-kernel-logo.svg").read_bytes()
9+
img_data = folder.joinpath("logo.svg").read_bytes()
1210
data['logo'] = "data:image/svg+xml;base64," + base64.b64encode(img_data).decode()
13-
cfg.write_text(json.dumps(data, indent=2))
11+
cfg.write_text(json.dumps(data, indent=2) + "\n")

logo.svg

Lines changed: 102 additions & 0 deletions
Loading

pyproject.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@ dependencies = [
2626
dynamic = ["version", "description", "authors", "urls", "keywords"]
2727

2828
[dependency-groups]
29-
dev = ["jupyterlite-core[all]", "nodejs-wheel-binaries"]
29+
dev = [
30+
"jupyter-releaser>=1.10.1",
31+
"jupyterlite-core[all]",
32+
"nodejs-wheel-binaries",
33+
]
3034

3135

3236
[tool.hatch.version]

0 commit comments

Comments
 (0)