Skip to content

Commit 792ea0f

Browse files
committed
chore: return the description
1 parent b81f2ab commit 792ea0f

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

wheel_server.py

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
# This script is used to serve the static files from the 'dist' directory for installation of python wheels.
2+
# 1. Install deps with `pip install ".[dev]"`,
3+
# 2. Install build tool with `pip install build`
4+
# 3. Run `python -m build`
5+
# You should see something alongside:
6+
# ```Successfully built mat3ra_api_examples-dev9+g7c6e8d9.tar.gz and
7+
# mat3ra_api_examples-dev9+g7c6e8d9-py3-none-any.whl
8+
# ```
9+
# 4. Copy the wheel file name
10+
# 5. Run the server with `python wheel_server.py`
11+
# The server will be available at http://localhost:8080,
12+
# 6. use micropip in pyodide to install wheel from that URL `<server_url>/<wheel_file_name>`, i.e:
13+
# await micropip.install("http://localhost:8080/mat3ra_api_examples-dev9+g7c6e8d9-py3-none-any.whl", deps=False)
14+
115
import argparse
216
import glob
317
import os

0 commit comments

Comments
 (0)