Skip to content

Commit 5e9a021

Browse files
committed
Fix bug with --editable
See also: simonw/llm#136
1 parent 37e374e commit 5e9a021

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

docs/cli-reference.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1448,9 +1448,9 @@ See :ref:`cli_install`.
14481448
Install packages from PyPI into the same environment as sqlite-utils
14491449

14501450
Options:
1451-
-U, --upgrade Upgrade packages to latest version
1452-
-e, --editable DIRECTORY Install a project in editable mode from this path
1453-
-h, --help Show this message and exit.
1451+
-U, --upgrade Upgrade packages to latest version
1452+
-e, --editable TEXT Install a project in editable mode from this path
1453+
-h, --help Show this message and exit.
14541454

14551455

14561456
.. _cli_ref_uninstall:

sqlite_utils/cli.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2800,7 +2800,6 @@ def _analyze(db, tables, columns, save, common_limit=10, no_most=False, no_least
28002800
@click.option(
28012801
"-e",
28022802
"--editable",
2803-
type=click.Path(readable=True, exists=True, dir_okay=True, file_okay=False),
28042803
help="Install a project in editable mode from this path",
28052804
)
28062805
def install(packages, upgrade, editable):
@@ -2809,7 +2808,7 @@ def install(packages, upgrade, editable):
28092808
if upgrade:
28102809
args += ["--upgrade"]
28112810
if editable:
2812-
args += ["--editable", str(editable)]
2811+
args += ["--editable", editable]
28132812
args += list(packages)
28142813
sys.argv = args
28152814
run_module("pip", run_name="__main__")

0 commit comments

Comments
 (0)