Skip to content

Commit

Permalink
added uv backend to noxfile
Browse files Browse the repository at this point in the history
  • Loading branch information
santacodes committed Sep 8, 2024
1 parent 55f4cb5 commit 754543b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Empty file removed .github/workflows/build_wheels.yml
Empty file.
8 changes: 4 additions & 4 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@


# Options to modify nox behaviour
nox.options.default_venv_backend = "virtualenv"
nox.options.default_venv_backend = "uv|virtualenv"
nox.options.reuse_existing_virtualenvs = True
if sys.platform != "win32":
nox.options.sessions = ["pre-commit", "pybamm-requires", "unit"]
nox.options.sessions = ["pre-commit", "idaklu-requires", "unit"]
else:
nox.options.sessions = ["pre-commit", "unit"]

Expand Down Expand Up @@ -83,7 +83,7 @@ def set_environment_variables(env_dict, session):
session.env[key] = value


@nox.session(name="pybamm-requires")
@nox.session(name="idaklu-requires")
def run_pybamm_requires(session):
"""Download, compile, and install the build-time requirements for Linux and macOS. Supports --install-dir for custom installation paths and --force to force installation."""
set_environment_variables(PYBAMM_ENV, session=session)
Expand Down Expand Up @@ -128,7 +128,7 @@ def run_pybamm_requires(session):
external=True,
)
else:
session.error("nox -s pybamm-requires is only available on Linux & macOS.")
session.error("nox -s idaklu-requires is only available on Linux & macOS.")

@nox.session(name="unit")
def run_unit(session):
Expand Down

0 comments on commit 754543b

Please sign in to comment.