Skip to content

Commit

Permalink
fix playground build
Browse files Browse the repository at this point in the history
  • Loading branch information
lbeurerkellner committed Oct 13, 2023
1 parent 929f7a1 commit a4eba85
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 20 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ As demonstrated by this file, also try to implement your tests using `lmql.model
your test code can be run without actually using an LLM or external API, and that it can be re-run
deterministically.

**[Optional] Web Build Testing:** If you are working on a feature that is available in the web playground of LMQL (e.g. also works with API-based (OpenAI) models only), you can also test the web build with `scripts/serve-all.py`, by typing `bb` for browser build into the script's prompt. This will build and serve the WebAssembly/Pyodide version of LMQL on `http://localhost:8081/playground/`. Please see `web/deploy.sh` for the build process and requirements of the web playground, which may require you to install additional dependencies.
**[Optional] Web Build Testing:** If you are working on a feature that is available in the web playground of LMQL (e.g. also works with API-based (OpenAI) models only), you can also test the web build with `scripts/serve-all.py`, by typing `bb` for browser build into the script's prompt. This will build and serve the WebAssembly/Pyodide version of LMQL on `http://localhost:8081/playground/`. Please see `scripts/deploy-web.sh` for the build process and requirements of the web playground, which may require you to install additional dependencies.

## Licensing

Expand Down
8 changes: 5 additions & 3 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
include src/lmql/ui/*
recursive-exclude src/lmql/ui/playground/node_modules/*
recursive-exclude web *
recursive-exclude src/lmql/ui/vscode/*
recursive-include src/lmql/ui/playground/ *
recursive-include src/lmql/ui/live/ *
recursive-exclude src/lmql/ui/live/node_modules/ *
recursive-exclude src/lmql/ui/playground/node_modules/ *
recursive-exclude src/lmql/ui/vscode/ *
5 changes: 0 additions & 5 deletions scripts/serve-all.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,6 @@
elif command == "docs-clean":
# docs/ make clean
subprocess.run(["make", "clean", "html"], cwd="docs")
elif command == "web-clean":
# rm -rf web-deploy/*
subprocess.run(["rm", "-rf", "web-deploy/*"])
# rm web/browser-build/temp
subprocess.run(["rm", "-rf", "web/browser-build/temp"])
else:
print(termcolor.colored("Unknown command!", "red"))
except KeyboardInterrupt:
Expand Down
11 changes: 0 additions & 11 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,6 @@ install_requires =
numpy
tiktoken

[options.extras_require]
docs =
ipython
myst-parser
nbsphinx
pandoc
pydata-sphinx-theme
shibuya
sphinx_book_theme

# When updating version requirements for optional dependencies, also update flake.d/pyproject.toml
hf =
accelerate
Expand All @@ -56,7 +46,6 @@ tests =
where = src
exclude =
**/node_modules/*
**/web/**/*
**/vscode/**/*

[options.entry_points]
Expand Down

0 comments on commit a4eba85

Please sign in to comment.