From 606c71acce93d04e778cdbdea16231b36d6b870f Mon Sep 17 00:00:00 2001 From: Dan Strokirk Date: Tue, 8 Nov 2022 01:49:03 +0100 Subject: [PATCH] Refactor nox requirements to use requirements files (#609) Closes #601 --- noxfile.py | 4 ++-- tests/requirements.txt | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 tests/requirements.txt diff --git a/noxfile.py b/noxfile.py index cd334173..1636d7d0 100644 --- a/noxfile.py +++ b/noxfile.py @@ -28,7 +28,7 @@ def tests(session): def coverage(*args): session.run("python", "-m", "coverage", *args) - session.install("coverage[toml]>=5.0.0", "pretend", "pytest>=6.2.0", "pip>=9.0.2") + session.install("-r", "tests/requirements.txt") session.install(".") if "pypy" not in session.python: @@ -69,7 +69,7 @@ def lint(session): @nox.session(python="3.9") def docs(session): shutil.rmtree("docs/_build", ignore_errors=True) - session.install("furo") + session.install("-r", "docs/requirements.txt") session.install("-e", ".") variants = [ diff --git a/tests/requirements.txt b/tests/requirements.txt new file mode 100644 index 00000000..6f001195 --- /dev/null +++ b/tests/requirements.txt @@ -0,0 +1,4 @@ +coverage[toml]>=5.0.0 +pip>=9.0.2 +pretend +pytest>=6.2.0