Skip to content

Commit

Permalink
fix: Manually install DLomix in Nox session
Browse files Browse the repository at this point in the history
Since nox-poetry skips URL constraints (cjolowicz/nox-poetry#308),
DLomix could not be installed from source in a Nox session as without a
constraint, pip would fall back to PyPI. See pypa/pip#8210
and pypa/pip#8253 for further context.

Manually invoking pip in a session prevents this.
  • Loading branch information
JSchlensok committed Aug 7, 2024
1 parent 46efe67 commit c6e5f3e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ def mypy(session: Session) -> None:
def tests(session: Session) -> None:
"""Run the test suite."""
session.install(".")
session.run("pip", "install", "dlomix[rltl-report,wandb]@git+https://github.com/wilhelm-lab/dlomix.git@feature/bmpc")
session.install("coverage[toml]", "pytest", "pygments")
try:
session.run("coverage", "run", "--parallel", "-m", "pytest", *session.posargs)
Expand Down

0 comments on commit c6e5f3e

Please sign in to comment.