From e5f5f79cdd860a820324431b58e746685e2c3e66 Mon Sep 17 00:00:00 2001 From: coletdjnz Date: Fri, 26 Sep 2025 18:10:04 +1200 Subject: [PATCH] Fix pip install --- README.md | 12 +++++++++--- pyproject.toml | 5 ++--- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index db39310..d803428 100644 --- a/README.md +++ b/README.md @@ -7,11 +7,17 @@ External JavaScript for yt-dlp supporting many runtimes ## Manual Installation -In the yt-dlp repository, install the python package, directly: +In the yt-dlp repository, install the python package, either directly or from url: ```console -npm install -pip install . +pip install git+https://github.com/yt-dlp/ejs@main +``` + +## Build scripts + +``` +deno install +deno task bundle ``` ## Tests diff --git a/pyproject.toml b/pyproject.toml index bd4da24..4a84615 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,13 +39,12 @@ source = "vcs" version-file = "yt_dlp_ejs/_version.py" [[tool.hatch.build.hooks.build-scripts.scripts]] -work_dir = "dist" out_dir = "yt_dlp_ejs/" commands = [ "deno install", "deno task bundle", ] artifacts = [ - "yt.solver.core.min.js", - "yt.solver.lib.min.js", + "dist/yt.solver.core.min.js", + "dist/yt.solver.lib.min.js", ]