Skip to content

Commit

Permalink
Upgrade imjoy-rpc
Browse files Browse the repository at this point in the history
  • Loading branch information
oeway committed Jul 10, 2023
1 parent b3a5fe9 commit 3fbd160
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docs/hypha-in-pyodide.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Pyodide is a Python runtime for the web, which allows you to run Python code in
```python
import micropip

await micropip.install(['hypha>=0.5.30.post0', 'imjoy-rpc'])
await micropip.install(['hypha>=0.5.31', 'imjoy-rpc'])

import asyncio
from imjoy_rpc.hypha import login, connect_to_server
Expand Down
2 changes: 1 addition & 1 deletion hypha/built-in/echo-service.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<title>ImJoy Plugin Template</title>
<meta name="description" content="Template for ImJoy plugin">
<meta name="author" content="ImJoy-Team">
<script src="https://cdn.jsdelivr.net/npm/imjoy-rpc@0.5.30/dist/hypha-rpc-websocket.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/imjoy-rpc@0.5.31/dist/hypha-rpc-websocket.min.js"></script>
</head>

<body>
Expand Down
2 changes: 1 addition & 1 deletion hypha/built-in/imjoy-plugin-parser.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<title>ImJoy Plugin Template</title>
<meta name="description" content="Template for ImJoy plugin">
<meta name="author" content="ImJoy-Team">
<script src="https://cdn.jsdelivr.net/npm/imjoy-rpc@0.5.30/dist/hypha-rpc-websocket.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/imjoy-rpc@0.5.31/dist/hypha-rpc-websocket.min.js"></script>
<scrpt src="https://cdn.jsdelivr.net/npm/imjoy-core@0.13.82/src/pluginParser.js"></scrpt>
</head>

Expand Down
2 changes: 1 addition & 1 deletion hypha/built-in/playground.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<meta name="description" content="A playground for developing ImJoy plugins">
<meta name="author" content="ImJoy-Team">
<link rel="stylesheet" data-name="vs/editor/editor.main" href="https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.20.0/min/vs/editor/editor.main.min.css">
<script src="https://cdn.jsdelivr.net/npm/imjoy-rpc@0.5.30/dist/hypha-rpc-websocket.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/imjoy-rpc@0.5.31/dist/hypha-rpc-websocket.min.js"></script>
<scrpt src="https://cdn.jsdelivr.net/npm/imjoy-core@0.13.82/src/pluginParser.js"></scrpt>
<script>
window.default_plugin = `
Expand Down
2 changes: 1 addition & 1 deletion hypha/built-in/test.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<title>ImJoy Plugin Template</title>
<meta name="description" content="Template for ImJoy plugin">
<meta name="author" content="ImJoy-Team">
<script src="https://cdn.jsdelivr.net/npm/imjoy-rpc@0.5.30/dist/hypha-rpc-websocket.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/imjoy-rpc@0.5.31/dist/hypha-rpc-websocket.min.js"></script>
</head>

<body>
Expand Down
2 changes: 1 addition & 1 deletion hypha/templates/web-python-plugin.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
async def run():
try:
await micropip.install(["imjoy-rpc==0.5.30.post0", {% for req in requirements %}"{{req}}", {% endfor %}])
await micropip.install(["imjoy-rpc==0.5.31", {% for req in requirements %}"{{req}}", {% endfor %}])
js.__resolve()
except Exception as e:
js.__reject(traceback.format_exc())
Expand Down
2 changes: 1 addition & 1 deletion hypha/templates/web-worker-plugin.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
self.onmessage = function(e) {
const config = e.data

importScripts("https://cdn.jsdelivr.net/npm/imjoy-rpc@0.5.30/dist/hypha-rpc-websocket.min.js")
importScripts("https://cdn.jsdelivr.net/npm/imjoy-rpc@0.5.31/dist/hypha-rpc-websocket.min.js")

hyphaWebsocketClient.connectToServer(config).then(async (api)=>{
await hyphaWebsocketClient.loadRequirements([{% for req in requirements %}"{{req}}", {% endfor %}])
Expand Down
2 changes: 1 addition & 1 deletion hypha/templates/window-plugin.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<title>ImJoy Plugin (window)</title>
<meta name="description" content="Template for ImJoy plugin">
<meta name="author" content="ImJoy-Team">
<script src="https://cdn.jsdelivr.net/npm/imjoy-rpc@0.5.30/dist/hypha-rpc-websocket.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/imjoy-rpc@0.5.31/dist/hypha-rpc-websocket.min.js"></script>
</head>

<body>
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ aioboto3==11.0.1
aiofiles==23.1.0
base58==2.1.1
fastapi==0.98.0
imjoy-rpc==0.5.30.post0
imjoy-rpc==0.5.31
jinja2==3.1.2
lxml==4.9.2
msgpack==1.0.5
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
REQUIREMENTS = [
"aiofiles",
"fastapi>=0.70.0",
"imjoy-rpc>=0.5.30.post0",
"imjoy-rpc>=0.5.31",
"msgpack>=1.0.2",
"numpy",
"pydantic[email]>=1.8.2,<2.0.0",
Expand Down Expand Up @@ -62,6 +62,7 @@
"server-apps": [
"redis>=4.5.5",
"aiobotocore>=2.1.0",
"aiortc>=1.5.0",
"requests>=2.26.0",
"playwright>=1.18.1",
"base58>=2.1.0",
Expand Down

0 comments on commit 3fbd160

Please sign in to comment.