Skip to content

Commit

Permalink
Install current project with --editable (#131)
Browse files Browse the repository at this point in the history
Fixes #125
  • Loading branch information
lordmauve authored Feb 3, 2025
1 parent 8d27d73 commit 358aa49
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion thx/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ async def prepare_virtualenv(context: Context, config: Config) -> AsyncIterator[
proj = f"{config.root}[{','.join(config.extras)}]"
else:
proj = str(config.root)
await check_command([pip, "install", "-U", proj])
await check_command([pip, "install", "--editable", proj])

# timestamp marker
content = f"{time.time_ns()}\n"
Expand Down
4 changes: 2 additions & 2 deletions thx/tests/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ async def fake_check_command(cmd: Sequence[StrPath]) -> CommandResult:
"setuptools",
]
),
call([pip, "install", "-U", str(config.root) + "[more]"]),
call([pip, "install", "--editable", str(config.root) + "[more]"]),
],
)

Expand Down Expand Up @@ -457,7 +457,7 @@ async def fake_check_command(cmd: Sequence[StrPath]) -> CommandResult:
]
),
call([pip, "install", "-U", "-r", reqs]),
call([pip, "install", "-U", str(config.root)]),
call([pip, "install", "--editable", str(config.root)]),
]
)

Expand Down

0 comments on commit 358aa49

Please sign in to comment.